When building a style swf with 4.0-snapshot & flex sdk 3.5 I get this
NoClassDefFound error.  Any ideas?

[ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-
plugin:4.0-SNAPSHOT:compile-swf (default-compile-swf) on project pl-
console-flex-components-styles: java.lang.NoClassDefFoundError: flex2/
tools/Mxmlc: flex2.tools.Mxmlc -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0-
SNAPSHOT:compile-swf (default-compile-swf) on project pl-console-flex-
components-styles: java.lang.NoClassDefFoundError: flex2/tools/Mxmlc
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
584)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
323)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:247)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:104)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:427)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:157)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:121)
        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.MojoExecutionException:
java.lang.NoClassDefFoundError: flex2/tools/Mxmlc
        at
org.sonatype.flexmojos.plugin.compiler.AbstractMavenFlexCompilerConfiguration.checkResult(AbstractMavenFlexCompilerConfiguration.java:
1394)
        at
org.sonatype.flexmojos.plugin.compiler.AbstractMavenFlexCompilerConfiguration.executeCompiler(AbstractMavenFlexCompilerConfiguration.java:
1447)
        at
org.sonatype.flexmojos.plugin.compiler.MxmlcMojo.execute(MxmlcMojo.java:
142)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:
105)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
576)
        ... 14 more
Caused by: java.lang.Exception: java.lang.NoClassDefFoundError: flex2/
tools/Mxmlc
        at org.sonatype.flexmojos.compiler.DefaultFlexCompiler
$7.uncaughtException(DefaultFlexCompiler.java:155)
        at java.lang.Thread.dispatchUncaughtException(Thread.java:1855)
Caused by: java.lang.NoClassDefFoundError: flex2/tools/Mxmlc
        at org.sonatype.flexmojos.compiler.DefaultFlexCompiler
$2.command(DefaultFlexCompiler.java:59)
        at org.sonatype.flexmojos.compiler.DefaultFlexCompiler
$6.run(DefaultFlexCompiler.java:131)
        at java.lang.Thread.run(Thread.java:637)
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)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:398)



n 3?  If so, anyway it can on maven 2?
>
> -al
>
> On Mar 27, 12:21 am, alpduhuez <[email protected]> wrote:
>
> > Ah, I see.  Yea, that is exactly what we need.  I was just waiting for
> > flexmojos 4.0 to come out of alpha.
>
> > I tried using 4.0-SNAPSHOT but our repository proxies the flexmojos
> > one and can't find 4.0-SNAPSHOT.  I'll have to talk to our repo man on
> > Monday to see what url he has for the flexmojos repository, it seems
> > it might be wrong.
>
> > We are trying to 
> > hit:http://repository.sonatype.org/content/groups/public//org/sonatype/fl...
>
> > but 4.0 this seems to be under 
> > here:http://repository.sonatype.org/content/groups/flexgroup/org/sonatype/...
>
> > Thanks
> > -al
>
> > On Mar 26, 5:25 pm, Marvin Froeder <[email protected]> wrote:
>
> > > On Fri, Mar 26, 2010 at 7:31 PM, alpduhuez <[email protected]> wrote:
> > > > Yea, I looked @ that.  The option looks awesome, we are using
> > > > FlexMojos 3.5 & FlexSDK 3.5 now though.  We can't upgrade to 4 for
> > > > awhile.
>
> > > 4 Flex? or 4 Flexmojos?
>
> > > > I don't see the keepAs3 though, the sample app link points into svn &
> > > > is prompting for credentials.  Based on that though it is not using
> > > > Flex2.tools.API.optimize anymore though right?
>
> > >http://repository.sonatype.org/content/sites/flexmojos-site/4.0-SNAPS...
>
> > > No Flexmojos 4 is not using that.
>
> > > And I fixed the wiki link.
>
> > > > Either way, we need to get our custom As3 tags in w/ the current 3.x
> > > > version as we need to ship the feature.  I will see about adding the
> > > > as3 tag.  The docs on the flex compiler api seem scarce, please
> > > > forgive a simple question.  I can just create a new configuration from
> > > > a Library w/o setting a bunch of properties.  I see that is done in
> > > > the Library & Application Mojos.
>
> > > > thanks.
> > > > -al
>
> > > > On Mar 26, 1:23 pm, Marvin Froeder <[email protected]> wrote:
> > > > > For sure is much better just adding the as3 tag.... optimizer doesn't
> > > > need
> > > > > anything from compiler to justify extending it...
>
> > > > > But, I would look at this before doing any work...
> > > >https://docs.sonatype.org/display/FLEXMOJOS/Extreme+Optimization
>
> > > > > It already has the keepAs3
>
> > > > > VELO
>
> > > > > On Fri, Mar 26, 2010 at 5:10 PM, alpduhuez <[email protected]> 
> > > > > wrote:
> > > > > > Hello...
> > > > > > We ran into a case where we added metadata tags to classes that are 
> > > > > > in
> > > > > > a .swc that is optimzed using the flexmojos:optimize goal.  As per
> > > > > > Adobe docs all the debug & meta data is removed, including the built
> > > > > > in metadata tags.  You need to specify the metadata tags to keep 
> > > > > > when
> > > > > > you optimize.
>
> > > > > >http://livedocs.adobe.com/flex/3/html/help.html?content=rsl_07.html
>
> > > > > > I synced up to the trunk flexmojos and see that the OptimizeMojo now
> > > > > > just uses the optimize() method that takes an input & output 
> > > > > > streams.
> > > > > > I was looking and the flex2.tools.API class and there is an overload
> > > > > > that takes an Configuration object.  I was thinking of adding the
> > > > > > Configuration to the OptimizeMojo.  I will do it and provide a 
> > > > > > patch.
>
> > > > > > So then a quick question on how to:  Looking through the code, would
> > > > > > it be easier to make OptimizeMojo extend AbstractFlexCompilerMojo to
> > > > > > setup the Configuration to pass or better to just add a property for
> > > > > > the as3 tags to keep and build the Configuration manually in
> > > > > > OptimizeMojo?
>
> > > > > > Thanks.
> > > > > > -al
>
> > > > > > --
> > > > > > 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]<flex-mojos%[email protected]>
> > > > <flex-mojos%[email protected]<flex-mojos%[email protected]>
>
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/flex-mojos
>
> > > > > >http://flexmojos.sonatype.org/
>
> > > > > > To unsubscribe from this group, send email to flex-mojos+
> > > > > > unsubscribegooglegroups.com or reply to this email with the words
> > > > "REMOVE
> > > > > > ME" as the subject.
>
> > > > --
> > > > 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]<flex-mojos%[email protected]>
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/flex-mojos
>
> > > >http://flexmojos.sonatype.org/
>
> > > > To unsubscribe from this group, send email to flex-mojos+
> > > > unsubscribegooglegroups.com or reply to this email with the words 
> > > > "REMOVE
> > > > ME" as the subject.

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

To unsubscribe from this group, send email to 
flex-mojos+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to