After many hours of messing around, I was able to isolate the following:
1) Have a top level POM with the following:
 
    

        parentDir
        MickeyMouse
        2.0.0.0


2) In a child module, define:
MickeyMouse


Works fine using mvn. Dies a horrible death using the plugin. eg. if I
change the name of either (from MickeyMouse to MinneMouse, no problem. But
keep them the same, and I get the exception below.

Any help/suggestions would be great. The top level POM which contains the
dependency management code is shared by a large number of sub-modules. Since
this works fine in mvn command-line, I am leary of making any changes...

Thanks,
Peter

Diagnosis: Error assembling JAR
FATAL ERROR: Error executing Maven for a project
org.apache.maven.lifecycle.LifecycleExecutionException: Error assembling JAR
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
        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.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)
        at 
org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)
        at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling
JAR
        at
org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:162)
        at
org.apache.maven.plugin.jar.AbstractJarMojo.execute(AbstractJarMojo.java:174)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
        ... 8 more
Caused by: java.lang.NullPointerException
        at
org.apache.maven.artifact.ArtifactUtils.copyArtifact(ArtifactUtils.java:109)
        at org.apache.maven.project.MavenProject.(MavenProject.java:251)
        at
org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:284)
        at
org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:155)
        ... 11 more
-- 
View this message in context: 
http://www.nabble.com/Error-with-modules....org.apache.maven.lifecycle.LifecycleExecutionException-tf3025711.html#a8405782
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.

Reply via email to