You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Allison, Bob" <ro...@qwest.com> on 2005/11/03 17:09:19 UTC

[m2] Strange Build Error

I am experimenting with a directory archiver for plexus, and built a new
snapshot version of the component.  When I did a "mvn install" in that
directory, the install placed the jar where I expected it:

[INFO] [install:install]
[INFO] Installing
/net/home/allisord/src/plugins/plexus-archiver/target/plexus-archiver-1.
0-alpha-4-SNAPSHOT.jar to
/home/allisord/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-al
pha-4-SNAPSHOT/plexus-archiver-1.0-alpha-4-SNAPSHOT.jar


The strange part is when I went to compile against the component.  I
changed the project to declare a dependency to
org.codehaus.plexus:plexus-archiver:1.0-alpha-4-SNAPSHOT (instead of
1.0-alpha-3) and got the following:

[allisord@qadev21 rpm]$ mvn -X compile
+ Error stacktraces are turned on.
[DEBUG] Building Maven user-level plugin registry from:
'/home/allisord/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'/opt/maven/2/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Using parent-POM from the project hierarchy at: '../pom.xml' for
project: qaccess.plugins:maven-rpm-plugin:maven-plugin:1.0.0
[INFO]
------------------------------------------------------------------------
----
[INFO] Building RPM Plugin for Maven
[INFO]    task-segment: [compile]
[INFO]
------------------------------------------------------------------------
----
[DEBUG] maven-plugin-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-plugin-plugin:maven-plugin:2.0
[DEBUG] maven-resources-plugin: resolved to version 2.1 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-resources-plugin:maven-plugin:2.1
[DEBUG] maven-compiler-plugin: resolved to version 2.0 from repository
central
[DEBUG] Retrieving parent-POM from the repository for project:
null:maven-compiler-plugin:maven-plugin:2.0
[DEBUG] Skipping disabled repository central
[DEBUG] Skipping disabled repository central
[DEBUG] plexus-archiver: using locally installed snapshot
[DEBUG] Retrieving parent-POM from the repository for project:
null:plexus-archiver:jar:1.0-alpha-4-SNAPSHOT
[DEBUG] Retrieving parent-POM from the repository for project:
org.codehaus.plexus:plexus-components:pom:1.1.4
[DEBUG] plexus-archiver: using locally installed snapshot
[INFO]
------------------------------------------------------------------------
----
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
----
[INFO] null
[INFO]
------------------------------------------------------------------------
----
[DEBUG] Trace
java.lang.NullPointerException
        at
org.apache.maven.plugin.DefaultPluginManager.addPlugin(DefaultPluginMana
ger.java:292)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(Defau
ltPluginManager.java:198)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM
anager.java:163)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:1095)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycl
e(DefaultLifecycleExecutor.java:1060)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMa
ppings(DefaultLifecycleExecutor.java:869)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:447)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:301)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:268)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:137)
        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.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)
[INFO]
------------------------------------------------------------------------
----
[INFO] Total time: 4 seconds
[INFO] Finished at: Thu Nov 03 08:56:09 MST 2005
[INFO] Final Memory: 3M/55M
[INFO]
------------------------------------------------------------------------
----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org