You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Reguel Wermelinger (JIRA)" <ji...@codehaus.org> on 2014/06/05 14:35:10 UTC
[jira] (MDEP-448) NullPointerException when classifier sources was
chosen
Reguel Wermelinger created MDEP-448:
---------------------------------------
Summary: 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
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
[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
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)