Flexmojos 4 == maven 3 Flexmojos 3 = maven 2.0.9 VELO
On Mon, Oct 4, 2010 at 4:15 PM, Bryan Turner <[email protected]> wrote: > Will FlexMojos build with Maven 2 (which it appears you are using) or does > it require Maven 3 to build, since it is a Maven 3 plugin? > On Oct 4, 2010 12:11 PM, "harish.dhina" <[email protected]> wrote: > > Hi Velo > > > > I'm stiil having issues bulding successfully. I ran using the mvn -X > > option and came across these errors: > > > > > > INFO] Building DataCollection - Flex > > [INFO] task-segment: [clean, install] > > [INFO] > > ------------------------------------------------------------------------ > > [DEBUG] Error looking up lifecycle mapping to retrieve optional mojos. > > Lifecycle ID: clean. Error: Component descriptor cannot be found in > > the component repository: > > org.apache.maven.lifecycle.mapping.LifecycleMappingswf. > > > org.codehaus.plexus.component.repository.exception.ComponentLookupException: > > Component descriptor cannot be found in the component repository: > > org.apache.maven.lifecycle.mapping.LifecycleMappingswf. > > at > > > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java: > > 323) > > at > > > org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java: > > 440) > > at org.apache.maven.execution.MavenSession.lookup(MavenSession.java: > > 138) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.findOptionalMojosForLifecycle(DefaultLifecycleExecutor.java: > > 1404) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java: > > 1294) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java: > > 1275) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java: > > 534) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java: > > 387) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java: > > 348) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java: > > 180) > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > > at > > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java: > > 60) > > 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:592) > > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java: > > 315) > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: > > 430) > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > > > > > And in the end it fails with: > > > > > > [WARNING] C:\harish\flex\apps\workspace\dataCollection- > > flexUserInterface\src\com\newwavetechnologies\events\MainViewEvent.as: > > [54,23] variable 'TOGGLE_SAVE_STATUS' has no type declaration. public > > static const TOGGLE_SAVE_STATUS = "toggleSaveStatus"; > > [WARNING] C:\harish\flex\apps\workspace\dataCollection- > > flexUserInterface\src\com\newwavetechnologies\events\MainViewEvent.as: > > [113,76] String used where a Boolean value was expected. The > > expression will be type coerced to Boolean. return new > > MainViewEvent(type, title, view, uid, bubbles, selectedInfo, > > currentState); > > [ERROR] C:\harish\flex\apps\workspace\dataCollection-flexUserInterface > > \src\com\newwavetechnologies\models\ModelLocator.as:[1,1] Type was not > > found or was not a compile-time constant: User.package > > com.newwavetechnologies.models > > [ERROR] C:\harish\flex\apps\workspace\dataCollection-flexUserInterface > > \src\com\newwavetechnologies\models\ModelLocator.as:[1,1] Type was not > > found or was not a compile-time constant: User.package > > com.newwavetechnologies.models > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] BUILD ERROR > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Error compiling! > > [INFO] > > ------------------------------------------------------------------------ > > [DEBUG] Trace > > org.apache.maven.lifecycle.LifecycleExecutionException: Error > > compiling! > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: > > 719) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java: > > 556) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java: > > 535) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java: > > 387) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java: > > 348) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java: > > 180) > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) > > at > > org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java: > > 60) > > 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:592) > > at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java: > > 315) > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java: > > 430) > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > Caused by: org.apache.maven.plugin.MojoExecutionException: Error > > compiling! > > at > > > org.sonatype.flexmojos.compiler.AbstractCompilerMojo.callCompiler(AbstractCompilerMojo.java: > > 1141) > > at > > > org.sonatype.flexmojos.compiler.AbstractCompilerMojo.run(AbstractCompilerMojo.java: > > 2404) > > at > > org.sonatype.flexmojos.AbstractIrvinMojo.execute(AbstractIrvinMojo.java: > > 155) > > at > > > org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: > > 490) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java: > > 694) > > ... 17 more > > > > > > Do these errors give some more information of why the build fails? > > > > > > Thanks > > > > Harish > > > > On Oct 1, 3:52 pm, Marvin Froeder <[email protected]> wrote: > >> No idea, run mvn -X and check if flexmojos got the configuration.... > >> > >> VELO > >> > > > > -- > > 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/ > > -- > 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/ > -- 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/
