[
https://jira.codehaus.org/browse/MDEP-448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karl-Heinz Marbaise closed MDEP-448.
------------------------------------
Resolution: Fixed
Cool so i can close the issue and start to prepare a new release. Thanks for
your help.
> 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)