maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Ashitkin (JIRA)" <j...@codehaus.org>
Subject [jira] (MJAR-192) Sporadic NPE in maven-jar-plugin:2.5:jar
Date Wed, 07 Jan 2015 14:52:18 GMT

    [ https://jira.codehaus.org/browse/MJAR-192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=360884#comment-360884
] 

Alexander Ashitkin commented on MJAR-192:
-----------------------------------------

Please notice the issue SUREFIRE-1132 which also traced down to mp cause in MavenProject#getArtifacts

> Sporadic NPE in maven-jar-plugin:2.5:jar
> ----------------------------------------
>
>                 Key: MJAR-192
>                 URL: https://jira.codehaus.org/browse/MJAR-192
>             Project: Maven JAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.5
>         Environment: win 2008 server x64 java 8u25 maven 3.2.5
>            Reporter: Alexander Ashitkin
>
> Strange npe at jar goal:
> {code}
> 16:41:50 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-jar-plugin:2.5:jar
(default-jar) on project my-model: Error assembling JAR: NullPointerException -> [Help
1]
> 16:41:50 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.apache.maven.plugins:maven-jar-plugin:2.5:jar (default-jar) on project my-model: Error
assembling JAR
> 16:41:50 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
> 16:41:50 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> 16:41:50 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> 16:41:50 	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
> 16:41:50 	at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:188)
> 16:41:50 	at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call(MultiThreadedBuilder.java:184)
> 16:41:50 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 16:41:50 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> 16:41:50 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 16:41:50 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 16:41:50 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 16:41:50 	at java.lang.Thread.run(Thread.java:745)
> 16:41:50 Caused by: org.apache.maven.plugin.MojoExecutionException: Error assembling
JAR
> 16:41:50 	at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:233)
> 16:41:50 	at org.apache.maven.plugin.jar.AbstractJarMojo.execute(AbstractJarMojo.java:251)
> 16:41:50 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
> 16:41:50 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> 16:41:50 	... 11 more
> 16:41:50 Caused by: java.lang.NullPointerException
> 16:41:50 	at org.apache.maven.project.MavenProject.getArtifacts(MavenProject.java:715)
> 16:41:50 	at org.apache.maven.project.MavenProject.deepCopy(MavenProject.java:1218)
> 16:41:50 	at org.apache.maven.project.MavenProject.<init>(MavenProject.java:197)
> 16:41:50 	at org.apache.maven.archiver.MavenArchiver.createArchive(MavenArchiver.java:501)
> 16:41:50 	at org.apache.maven.plugin.jar.AbstractJarMojo.createArchive(AbstractJarMojo.java:226)
> 16:41:50 	... 14 more
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message