I would assume that you are somehow including the flex2 compatability
layer ... could you please post your pom.xml?

Chris

2012/8/7 nfahem <[email protected]>:
> Hi,
>
>
>
>
>
> I'm trying to compile my flex project using maven but i'm getting this error
>
>
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.sonatype.flexmojos:flexmojos-maven-plugin
>
> kspaceFlex: java.lang.NoClassDefFoundError: flex2/tools/Mxmlc
>
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
> .java:217)
>
>         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.buildProje
> ct(LifecycleModuleBuilder.java:84)
>
>         at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
> ct(LifecycleModuleBuilder.java:59)
>
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
> ild(LifecycleStarter.java:183)
>
>         at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
> eStarter.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(DelegatingMethodAcces
> sorImpl.java:25)
>
>         at java.lang.reflect.Method.invoke(Method.java:597)
>
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
> cher.java:290)
>
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav a:230)
>
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
> uncher.java:409)
>
>         at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 352)
>
> Caused by: org.apache.maven.plugin.MojoExecutionException:
> java.lang.NoClassDefFoundError: flex2/tools/Mxmlc
>
>         at
> org.sonatype.flexmojos.plugin.AbstractMavenMojo.checkResult(AbstractM
> avenMojo.java:288)
>
>         at
> org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.execu
> teCompiler(AbstractFlexCompilerMojo.java:164
>
>         at
> org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody0(
> MxmlcMojo.java:152)
>
>         at
> org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody1$
> advice(MxmlcMojo.java:36)
>
>         at
> org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody2(
> MxmlcMojo.java:146)
>
>         at
> org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody3$
> advice(MxmlcMojo.java:14)
>
>         at
> org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody4(
> MxmlcMojo.java:1)
>
>         at
> org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute_aroundBody5$
> advice(MxmlcMojo.java:17)
>
>         at
> org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.ja va:1)
>
>         at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
> BuildPluginManager.java:101)
>
>         at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
> .java:209)
>
>         ... 19 more
>
> Caused by: java.lang.Exception: java.lang.NoClassDefFoundError:
> flex2/tools/Mxmlc
>
>         at
> org.sonatype.flexmojos.compiler.command.CommandUtil$2.uncaughtExcepti
> on(CommandUtil.java:61)
>
>         at java.lang.Thread.dispatchUncaughtException(Thread.java:1874)
>
> Caused by: java.lang.NoClassDefFoundError: flex2/tools/Mxmlc
>
>         at
> org.sonatype.flexmojos.compiler.DefaultFlexCompiler$2.command(Default
> FlexCompiler.java:59)
>
>         at
> org.sonatype.flexmojos.compiler.command.CommandUtil$1.run(CommandUtil
> .java:33)
>
>         at java.lang.Thread.run(Thread.java:662)
>
> Caused by: java.lang.ClassNotFoundException: flex2.tools.Mxmlc
>
>         at
> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(
> SelfFirstStrategy.java:50)
>
>         at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm
> .java:244)
>
>         at
> org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm
> .java:230)
>
>         ... 3 more
>
>
>
>
>
> Flex SDK : 3.2
>
> Flash Builder : 4.5.1
>
>
>
>
>
> Any Idea ???
>
>
>
>
>
> Kind 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/

-- 
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