Uploaded image for project: 'Maven JAR Plugin'
  1. Maven JAR Plugin
  2. MJAR-192

Sporadic NPE in maven-jar-plugin:2.5:jar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.5
    • None
    • None
    • None
    • win 2008 server x64 java 8u25 maven 3.2.5

    Description

      Strange npe at jar goal:

      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
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alex_ashitkin Alexander Ashitkin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: