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

Karl-Heinz Marbaise edited comment on MDEP-448 at 9/6/14 8:28 AM:
------------------------------------------------------------------

I have taken [your 
example|https://github.com/khmarbaise/mdep/tree/master/mdep-448] and can 
reproduce your problem. I have made a fix for this problem in 
[r1622859|http://svn.apache.org/r1622859]. 
Is it possible that you can check via a 2.9-SNAPSHOT of the 
maven-dependency-plugin. I have provided a SNAPSHOT version containing the fix. 
It would be nice if you can give feedback if successful or not.


was (Author: khmarbaise):
I have taken [your 
example|https://github.com/khmarbaise/mdep/tree/master/mdep-448] and can 
reproduce your problem. I have made a fix for this problem in 
[r1622859|http://svn.apache.org/r1622859]. 
Is it possible that you can check via a 2.9-SNAPSHOT of the 
maven-dependency-plugin if you problem is solved?

> NullPointerException when classifier sources was chosen
> -------------------------------------------------------
>
>                 Key: MDEP-448
>                 URL: https://jira.codehaus.org/browse/MDEP-448
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: copy-dependencies
>    Affects Versions: 2.8
>         Environment: windows 7 x64, mvn 3.0.5, java 7.0.51
>            Reporter: Reguel Wermelinger
>            Assignee: Karl-Heinz Marbaise
>             Fix For: 2.9
>
>         Attachments: copy-dependcy-npe-sample.zip
>
>
> The execution of the copy-dependencies goal fails if the classifier "sources" 
> is selected the mojo fails with a NullPointerException.
> Somehow i can work around the bug by removing the classifier afterwards: 
> <stripClassifier>true</stripClassifier>. 
> But then the <overwriteIfNewer> flag is ignored. which results in lot's of 
> unwanted file copy changes during my builds.
> {code:xml}[ERROR] Failed to execute goal 
> org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies 
> (thirdparty) on project ch.ivyteam.testarea.depency: Execution thirdparty of 
> goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies 
> failed. NullPointerException -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies 
> (thirdparty) on project ch.ivyteam.testarea.depency: Execution thirdparty of 
> goal org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies 
> failed.
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>       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:57)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:606)
>       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.PluginExecutionException: Execution 
> thirdparty of goal 
> org.apache.maven.plugins:maven-dependency-plugin:2.8:copy-dependencies failed.
>       at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>       at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>       ... 19 more
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.maven.plugin.dependency.fromDependencies.CopyDependenciesMojo.doExecute(CopyDependenciesMojo.java:156)
>       at 
> org.apache.maven.plugin.dependency.AbstractDependencyMojo.execute(AbstractDependencyMojo.java:167)
>       at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>       ... 20 more
> {code}



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

Reply via email to