[ 
https://jira.codehaus.org/browse/MSHADE-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kristian Rosenvold closed MSHADE-127.
-------------------------------------

    Resolution: Duplicate
      Assignee: Kristian Rosenvold
    
> NPE if shade plugin runs in artifact with packaging pom
> -------------------------------------------------------
>
>                 Key: MSHADE-127
>                 URL: https://jira.codehaus.org/browse/MSHADE-127
>             Project: Maven 2.x Shade Plugin
>          Issue Type: Bug
>    Affects Versions: 1.7.1
>            Reporter: Radim Kolar
>            Assignee: Kristian Rosenvold
>            Priority: Blocker
>         Attachments: pom.xml
>
>
> If you run shade plugin in artifact with <packaging>pom</packaging> it fails 
> during replace step:
> [INFO] Replacing original artifact with shaded artifact.
> [INFO] Replacing null with 
> C:\apache-nutch\nutch\runtime\deploy\runtime-1.5-SNAPSHOT-shaded.pom
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Total time: 12.422s
> [INFO] Finished at: Mon Aug 06 15:44:11 CEST 2012
> [INFO] Final Memory: 4M/62M
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-shade-plugin:1.7.1:shade (make-shaded-jar) on 
> project runtime: Error creating shaded jar: null: NullPointerException -> 
> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-shade-plugin:1.7.1:shade 
> (make-shaded-jar) on project runtime: Error creating shaded jar: null
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>       at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>       at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>       at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>       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:597)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>       at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating 
> shaded jar: null
>       at 
> org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:556)
>       at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>       ... 19 more
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.maven.plugins.shade.mojo.ShadeMojo.replaceFile(ShadeMojo.java:570)
>       at 
> org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:536)
>       ... 21 more

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to