activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: fix for m2 builds when making wars...
Date Mon, 03 Jul 2006 15:56:37 GMT
Did you try a 'mvn -U install' to see if that fixed it?

On 7/3/06, Bruce Snyder <bruce.snyder@gmail.com> wrote:
> On 6/28/06, James Strachan <james.strachan@gmail.com> wrote:
> > I just experienced a temporary glitch in the m2 build when making
> > activemq-web-demo. If this has failed for you today you might wanna
> > try the following which fixed it for me...
> >
> > rm -rf ~/.m2/repository/org/apache/maven/plugins/maven-assembly-plugin/
>
> James,
>
> I've removed the maven-asssembly-plugin and I'm still getting the
> following failure:
>
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building ActiveMQ :: Web Demo
> [INFO]    task-segment: [clean, install]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [clean:clean]
> [INFO] Deleting directory
> /Users/bsnyder/src/activemq/trunk/activemq-web-demo/target
> [INFO] Deleting directory
> /Users/bsnyder/src/activemq/trunk/activemq-web-demo/target/classes
> [INFO] Deleting directory
> /Users/bsnyder/src/activemq/trunk/activemq-web-demo/target/test-classes
> [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking
> for updates from central
> [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking
> for updates from mortbay-repo
> [INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking
> for updates from apache-snapshots
> Downloading: http://people.apache.org/maven-snapshot-repository//org/apache/maven/plugins/maven-war-plugin/2.0.1/maven-war-plugin-2.0.1.pom
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Not compiling test sources
> [INFO] [surefire:test]
> [INFO] Tests are skipped.
> -----------------------------------------------------
> this realm = app0.child-container[org.apache.maven.plugins:maven-war-plugin]
> urls[0] = file:/Users/bsnyder/.m2/repository/org/apache/maven/plugins/maven-war-plugin/2.0.1/maven-war-plugin-2.0.1.jar
> Number of imports: 0
>
>
> this realm = plexus.core.maven
> urls[0] = file:/Users/bsnyder/m2/lib/commons-cli-1.0.jar
> urls[1] = file:/Users/bsnyder/m2/lib/doxia-sink-api-1.0-alpha-7.jar
> urls[2] = file:/Users/bsnyder/m2/lib/jsch-0.1.24.jar
> urls[3] = file:/Users/bsnyder/m2/lib/maven-artifact-2.0.4.jar
> urls[4] = file:/Users/bsnyder/m2/lib/maven-artifact-manager-2.0.4.jar
> urls[5] = file:/Users/bsnyder/m2/lib/maven-core-2.0.4.jar
> urls[6] = file:/Users/bsnyder/m2/lib/maven-error-diagnostics-2.0.4.jar
> urls[7] = file:/Users/bsnyder/m2/lib/maven-model-2.0.4.jar
> urls[8] = file:/Users/bsnyder/m2/lib/maven-monitor-2.0.4.jar
> urls[9] = file:/Users/bsnyder/m2/lib/maven-plugin-api-2.0.4.jar
> urls[10] = file:/Users/bsnyder/m2/lib/maven-plugin-descriptor-2.0.4.jar
> urls[11] = file:/Users/bsnyder/m2/lib/maven-plugin-parameter-documenter-2.0.4.jar
> urls[12] = file:/Users/bsnyder/m2/lib/maven-plugin-registry-2.0.4.jar
> urls[13] = file:/Users/bsnyder/m2/lib/maven-profile-2.0.4.jar
> urls[14] = file:/Users/bsnyder/m2/lib/maven-project-2.0.4.jar
> urls[15] = file:/Users/bsnyder/m2/lib/maven-reporting-api-2.0.4.jar
> urls[16] = file:/Users/bsnyder/m2/lib/maven-repository-metadata-2.0.4.jar
> urls[17] = file:/Users/bsnyder/m2/lib/maven-settings-2.0.4.jar
> urls[18] = file:/Users/bsnyder/m2/lib/plexus-interactivity-api-1.0-alpha-4.jar
> urls[19] = file:/Users/bsnyder/m2/lib/wagon-file-1.0-alpha-7.jar
> urls[20] = file:/Users/bsnyder/m2/lib/wagon-http-lightweight-1.0-alpha-6.jar
> urls[21] = file:/Users/bsnyder/m2/lib/wagon-provider-api-1.0-alpha-6.jar
> urls[22] = file:/Users/bsnyder/m2/lib/wagon-ssh-1.0-alpha-7.jar
> urls[23] = file:/Users/bsnyder/m2/lib/wagon-ssh-external-1.0-alpha-6.jar
> Number of imports: 0
>
>
> this realm = plexus.core
> urls[0] = file:/Users/bsnyder/m2/core/plexus-container-default-1.0-alpha-9.jar
> urls[1] = file:/Users/bsnyder/m2/core/plexus-utils-1.1.jar
> Number of imports: 0
> -----------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Internal error in the plugin manager executing goal
> 'org.apache.maven.plugins:maven-war-plugin:2.0.1:war': Unable to find
> the mojo 'org.apache.maven.plugins:maven-war-plugin:2.0.1:war' in the
> plugin 'org.apache.maven.plugins:maven-war-plugin'
> org/codehaus/plexus/archiver/ArchiverException
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Internal error
> in the plugin manager executing goal
> 'org.apache.maven.plugins:maven-war-plugin:2.0.1:war': Unable to find
> the mojo 'org.apache.maven.plugins:maven-war-plugin:2.0.1:war' in the
> plugin 'org.apache.maven.plugins:maven-war-plugin'
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:538)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
>         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.apache.maven.plugins:maven-war-plugin:2.0.1:war' in
> the plugin 'org.apache.maven.plugins:maven-war-plugin'
>         at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:533)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:390)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
>         ... 16 more
> Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException:
> Unable to lookup component
> 'org.apache.maven.plugin.Mojoorg.apache.maven.plugins:maven-war-plugin:2.0.1:war',
> 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:524)
>         ... 18 more
> Caused by: org.codehaus.plexus.component.factory.ComponentInstantiationException:
> Could not instanciate component: role: 'null', implementation:
> 'org.apache.maven.plugin.war.WarMojo'
>         at org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeException(JavaComponentFactory.java:77)
>         at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
>         at org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
>         at org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
>         at org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
>         at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>         ... 20 more
> Caused by: java.lang.NoClassDefFoundError:
> org/codehaus/plexus/archiver/ArchiverException
>         at java.lang.Class.getDeclaredConstructors0(Native Method)
>         at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
>         at java.lang.Class.getConstructor0(Class.java:2640)
>         at java.lang.Class.newInstance0(Class.java:321)
>         at java.lang.Class.newInstance(Class.java:303)
>         at org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:44)
>         ... 24 more
>
> I've searched all the maven-*-plugin.jar files for the
> org/codehaus/plexus/archiver/ArchiverException but I'm not finding it
> anywhere. Looks like I may need to bounce this off of the Maven team.
>
> Bruce
> --
> perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://incubator.apache.org/activemq/
> Apache ServiceMix - http://incubator.apache.org/servicemix/
> Castor - http://castor.org/
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message