NPE when deploying to remoteRepository w/o distributionManagement set
---------------------------------------------------------------------
Key: MNG-1160
URL: http://jira.codehaus.org/browse/MNG-1160
Project: Maven 2
Type: Bug
Components: maven-artifact-ant
Versions: 2.0-beta-3
Reporter: Dave Brondsema
Invoking 'deploy' with this:
<artifact:deploy
file="${dist.home}/${app.name}.${jar.dist.suffix}">
<remoteRepository refid="jar.repo.cu"/>
<pom refid="jar.pom"/>
</artifact:deploy>
My POM has no distributionManagement node. So I get this
java.lang.NullPointerException
at org.apache.maven.artifact.ant.DeployTask.execute(DeployTask.java:69)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]