If you're not using AspectJ in your project, you can safely remove (or comment out) the aspectj-mave-plugin in your pom.xml.

Matt

On Dec 3, 2007, at 10:59 PM, Stephiems wrote:


I'm using Netbeans 6.0 with the maven plugin. I've downloaded maven 2.0.8 and
have set the maven plugin to use the downloaded version of maven. The
internal one seemed to be less then the required version 2.0.6. On build I
get the following error:

Internal error in the plugin manager executing goal
'org.codehaus.mojo:aspectj-maven-plugin:1.0-beta-2:compile': Unable to find the mojo 'org.codehaus.mojo:aspectj-maven-plugin:1.0- beta-2:compile' in the
plugin 'org.codehaus.mojo:aspectj-maven-plugin'
org/aspectj/bridge/IMessageHolder


I then ran the build with -e and got the following:

Internal error in the plugin manager executing goal
'org.codehaus.mojo:aspectj-maven-plugin:1.0-beta-2:compile': Unable to find the mojo 'org.codehaus.mojo:aspectj-maven-plugin:1.0- beta-2:compile' in the
plugin 'org.codehaus.mojo:aspectj-maven-plugin'
org/aspectj/bridge/IMessageHolder
---------------------------------------------------------------------- --
Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in
the plugin manager executing goal
'org.codehaus.mojo:aspectj-maven-plugin:1.0-beta-2:compile': Unable to find the mojo 'org.codehaus.mojo:aspectj-maven-plugin:1.0- beta-2:compile' in the
plugin 'org.codehaus.mojo:aspectj-maven-plugin'
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:543)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLif ecycle(DefaultLifecycleExecutor.java:480)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal (DefaultLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHand leFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegment s(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute (DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java: 126)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
        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:585)
        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.PluginManagerException: Unable to find the mojo 'org.codehaus.mojo:aspectj-maven-plugin:1.0- beta-2:compile' in the
plugin 'org.codehaus.mojo:aspectj-maven-plugin'
        at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo (DefaultPluginManager.java:575)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo (DefaultPluginManager.java:425)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals (DefaultLifecycleExecutor.java:539)
        ... 16 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupExce ption:
Unable to lookup component
'org.apache.maven.plugin.Mojoorg.codehaus.mojo:aspectj-maven-plugin: 1.0-beta-2:compile',
it could not be created
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:335)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:440)
        at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo (DefaultPluginManager.java:566)
        ... 18 more
Caused by:
org.codehaus.plexus.component.factory.ComponentInstantiationException: Could
not instanciate component: role: 'null', implementation:
'org.codehaus.mojo.aspectj.AjcCompileMojo'
        at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeEx ception(JavaComponentFactory.java:77)
        at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIns tance(JavaComponentFactory.java:62)
        at
org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance (DefaultPlexusContainer.java:1464)
        at
org.codehaus.plexus.component.manager.AbstractComponentManager.createC omponentInstance(AbstractComponentManager.java:93)
        at
org.codehaus.plexus.component.manager.PerLookupComponentManager.getCom ponent(PerLookupComponentManager.java:48)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup (DefaultPlexusContainer.java:331)
        ... 20 more
Caused by: java.lang.NoClassDefFoundError: org/aspectj/bridge/ IMessageHolder
        at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors (Class.java:2357)
        at java.lang.Class.getConstructor0(Class.java:2671)
        at java.lang.Class.newInstance0(Class.java:321)
        at java.lang.Class.newInstance(Class.java:303)
        at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIns tance(JavaComponentFactory.java:44)
        ... 24 more


I have searched all over the place and just can't seem to figure out what is
wrong. Any ideas? I don't have much experience with appfuse or maven.

Thanks,
Stephanie
--
View this message in context: http://www.nabble.com/Getting-build- error-with-aspectj-maven-plugin-tf4941472s2369.html#a14145643
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to