You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Ridgway, Jamie Mr CONT USAAC" <JA...@USAAC.ARMY.MIL> on 2007/05/16 19:18:33 UTC

[Axis2] AAR maven2 plugin problem

We are experiencing problems trying to execute the Axis2 AAR plugin for
Maven2. For some reason, the Maven archiver class cannot be found by the
plugin. We are attempting to execute this during Packaging. 

I have included an isolated section of the stack trace as well as the
full stack trace below. If further information is helpful, please let me
know.

Any help or insight into this problem is appreciated.

Thanks,
Jamie Ridgway


-->> The apparent root cause.

Caused by: java.lang.NoClassDefFoundError:
org/apache/maven/archiver/MavenArchiv
eConfiguration
        at org.apache.axis2.maven2.aar.AarMojo.<init>(AarMojo.java:69)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)



-->> Full Stack trace below

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Internal error in the plugin manager executing goal
'org.apache.axis2:axi
s2-aar-maven-plugin:1.2:aar': Unable to find the mojo
'org.apache.axis2:axis2-aa r-maven-plugin:1.2:aar' in the plugin
'org.apache.axis2:axis2-aar-maven-plugin'
org/apache/maven/archiver/MavenArchiveConfiguration
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Internal error
in the pl ugin manager executing goal
'org.apache.axis2:axis2-aar-maven-plugin:1.2:aar': U nable to find the
mojo 'org.apache.axis2:axis2-aar-maven-plugin:1.2:aar' in the plugin
'org.apache.axis2:axis2-aar-maven-plugin'
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:543)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
        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: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 mo jo 'org.apache.axis2:axis2-aar-maven-plugin:1.2:aar' in the
plugin 'org.apache.a xis2:axis2-aar-maven-plugin'
        at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:571)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:421)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
        ... 16 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupExc
eption: Unable to lookup component
'org.apache.maven.plugin.Mojoorg.apache.axis2
:axis2-aar-maven-plugin:1.2:aar', it could not be created
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:335)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:440)
        at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(Defaul
tPluginManager.java:562)
        ... 18 more
Caused by:
org.codehaus.plexus.component.factory.ComponentInstantiationException
: Could not instanciate component: role: 'null', implementation:
'org.apache.axi s2.maven2.aar.AarMojo'
        at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeE
xception(JavaComponentFactory.java:77)
        at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn
stance(JavaComponentFactory.java:62)
        at
org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(De
faultPlexusContainer.java:1464)
        at
org.codehaus.plexus.component.manager.AbstractComponentManager.create
ComponentInstance(AbstractComponentManager.java:93)
        at
org.codehaus.plexus.component.manager.PerLookupComponentManager.getCo
mponent(PerLookupComponentManager.java:48)
        at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContai
ner.java:331)
        ... 20 more
Caused by: java.lang.NoClassDefFoundError:
org/apache/maven/archiver/MavenArchiv
eConfiguration
        at org.apache.axis2.maven2.aar.AarMojo.<init>(AarMojo.java:69)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)

        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at
java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at java.lang.Class.newInstance0(Class.java:350)
        at java.lang.Class.newInstance(Class.java:303)
        at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newIn
stance(JavaComponentFactory.java:44)
        ... 24 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Tue May 15 11:09:58 EDT 2007 [INFO] Final Memory:
6M/19M [INFO]
------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org