Hi all ,

I would like to compile my flex Lib using maven

below is my pom

<?xml version="1.0" encoding="UTF-8"?>
<!--

        Copyright 2008 Marvin Herman Froeder
        Licensed under the Apache License, Version 2.0 (the "License");
        you may not use this file except in compliance with the License.
        You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
        See the License for the specific language governing permissions and
        limitations under the License.

-->
<project xmlns="http://maven.apache.org/POM/4.0.0";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd";>
        <modelVersion>4.0.0</modelVersion>

        <groupId>com.ss.workspace</groupId>
        <artifactId>woga</artifactId>
        <version>1.0-SNAPSHOT</version>
        <packaging>swc</packaging>




        <name>Workspace</name>
        <properties>
                <flex.fwk.version>4.5.1.21328</flex.fwk.version>
                <flexmojos.version>4.0-RC2</flexmojos.version>
                <flex.ds.version>3.0.1.1755</flex.ds.version>
        </properties>

        <build>
                <sourceDirectory>src/main/flex</sourceDirectory>
                <testSourceDirectory>src/test/flex</testSourceDirectory>
                <plugins>
                        <plugin>
                                <groupId>org.sonatype.flexmojos</groupId>
                                <artifactId>flexmojos-maven-plugin</artifactId>
                                <version>${flexmojos.version}</version>
                                <extensions>true</extensions>
                                <dependencies>
                                        <dependency>
                                                
<groupId>com.adobe.flex</groupId>
                                                
<artifactId>compiler</artifactId>
                                                
<version>${flex.fwk.version}</version>
                                                <type>pom</type>
                                        </dependency>
                                </dependencies>
                        </plugin>
                </plugins>
        </build>

        <dependencies>
                <dependency>
                        <groupId>com.adobe.flex.framework</groupId>
                        <artifactId>flex-framework</artifactId>
                        <version>${flex.fwk.version}</version>
                        <type>pom</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.cairngorm</groupId>
                        <artifactId>cairngorm</artifactId>
                        <version>2.2.1</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex.datavisualization</groupId>
                        <artifactId>datavisualization</artifactId>
                        <version>3.4.0.9271</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex.datavisualization</groupId>
                        <artifactId>datavisualization_rb</artifactId>
                        <version>3.4.0.9271</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex</groupId>
                        <artifactId>fds</artifactId>
                        <version>${flex.ds.version}</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex</groupId>
                        <artifactId>playerfds</artifactId>
                        <version>${flex.ds.version}</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flex</groupId>
                        <artifactId>fds_rb</artifactId>
                        <version>${flex.ds.version}</version>
                        <type>swc</type>
                </dependency>
                <dependency>
                        <groupId>com.adobe.flexunit</groupId>
                        <artifactId>flexunit</artifactId>
                        <version>0.85</version>
                        <type>swc</type>
                        <scope>test</scope>
                </dependency>
        </dependencies>

</project>


but i get error :

[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
woga ---
[debug] execute contextualize
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!
[INFO] Copying 9 resources
[INFO]
[INFO] --- flexmojos-maven-plugin:4.0-RC2:compile-swc (default-compile-
swc) @ woga ---
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:58.016s
[INFO] Finished at: Wed Feb 22 14:39:19 CET 2012
[INFO] Final Memory: 9M/26M
[INFO]
------------------------------------------------------------------------
[WARNING] The requested profile "jboss" could not be activated because
it does not exist.
[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
plugin:4.0-RC2:compile-swc (default-compile-swc) on project woga:
Execution default-compile-swc of goal org.so
natype.flexmojos:flexmojos-maven-plugin:4.0-RC2:compile-swc failed:
Flex compiler and flex framework versions doesn't match. Compiler:
'4.5.1.21328' - Framework: '3.2.0.3958'.
[ERROR] You can use
'iKnowWhatImDoingPleaseBreakMyBuildIwontBlameFlexmojosForStopWorking'
to disable this check.  Please refer to Flexmojos maven doc.
[ERROR] If you prefer fixing it instead of ignoring, take a look at:
https://docs.sonatype.org/display/FLEXMOJOS/How+to+set+Flex+SDK+version
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-
RC2:compile-swc (default-compile-swc) on project wo
ga: Execution default-compile-swc of goal
org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:compile-swc
failed: Flex compiler and flex framework versions doesn't match.
Compile
r: '4.5.1.21328' - Framework: '3.2.0.3958'.
 You can use
'iKnowWhatImDoingPleaseBreakMyBuildIwontBlameFlexmojosForStopWorking'
to disable this check.  Please refer to Flexmojos maven doc.
If you prefer fixing it instead of ignoring, take a look at:
https://docs.sonatype.org/display/FLEXMOJOS/How+to+set+Flex+SDK+version
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
225)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
153)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
145)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
84)
        at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:
59)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:
183)
        at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:
161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:
290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:
409)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution
default-compile-swc of goal org.sonatype.flexmojos:flexmojos-maven-
plugin:4.0-RC2:compile-swc failed: Flex co
mpiler and flex framework versions doesn't match. Compiler:
'4.5.1.21328' - Framework: '3.2.0.3958'.
 You can use
'iKnowWhatImDoingPleaseBreakMyBuildIwontBlameFlexmojosForStopWorking'
to disable this check.  Please refer to Flexmojos maven doc.
If you prefer fixing it instead of ignoring, take a look at:
https://docs.sonatype.org/display/FLEXMOJOS/How+to+set+Flex+SDK+version
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
110)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
209)
        ... 19 more
Caused by: java.lang.IllegalStateException: Flex compiler and flex
framework versions doesn't match. Compiler: '4.5.1.21328' - Framework:
'3.2.0.3958'.
 You can use
'iKnowWhatImDoingPleaseBreakMyBuildIwontBlameFlexmojosForStopWorking'
to disable this check.  Please refer to Flexmojos maven doc.
If you prefer fixing it instead of ignoring, take a look at:
https://docs.sonatype.org/display/FLEXMOJOS/How+to+set+Flex+SDK+version
        at
org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.versionCheck(AbstractFlexCompilerMojo.java:
3398)
        at
org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody3$advice(CompcMojo.java:
12)
        at
org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody4(CompcMojo.java:
1)
        at
org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody5$advice(CompcMojo.java:
17)
        at
org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute(CompcMojo.java:
1)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
101)
        ... 20 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
C:\Flex_4.5_Workflow\workspaceFlex\woga>


Can anyone tell me what the problem exactly


regards

-- 
You received this message because you are subscribed to the Google
Groups "Flex Mojos" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/flex-mojos

http://flexmojos.sonatype.org/

Reply via email to