Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1-alpha-2
-
None
-
Patch
Description
When 'perform release' fails because there is no distributionManagment section in the pom, all you get in 'View Output' is the following:
[ERROR] org.apache.maven.shared.release.ReleaseExecutionException: Maven execution failed, exit code: '1' at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:66) at org.apache.maven.shared.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:57) at org.apache.maven.shared.release.DefaultReleaseManager.perform(DefaultReleaseManager.java:319) at org.apache.maven.shared.release.DefaultReleaseManager.performWithResult(DefaultReleaseManager.java:279) at org.apache.maven.continuum.release.executors.PerformReleaseTaskExecutor.execute(PerformReleaseTaskExecutor.java:82) at org.apache.maven.continuum.release.executors.AbstractReleaseTaskExecutor.executeTask(AbstractReleaseTaskExecutor.java:67) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116) at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.maven.shared.release.exec.MavenExecutorException: Maven execution failed, exit code: '1' at org.apache.maven.shared.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:103) at org.apache.maven.shared.release.exec.ForkedMavenExecutor.executeGoals(ForkedMavenExecutor.java:121) at org.apache.maven.shared.release.phase.AbstractRunGoalsPhase.execute(AbstractRunGoalsPhase.java:59) ... 11 more
The log file shows the actual error:
INFO | jvm 1 | 2007/06/19 17:19:37 | [INFO] ------------------------------------------------------------------------ INFO | jvm 1 | 2007/06/19 17:19:37 | [ERROR] BUILD ERROR INFO | jvm 1 | 2007/06/19 17:19:37 | [INFO] ------------------------------------------------------------------------ INFO | jvm 1 | 2007/06/19 17:19:37 | [INFO] Failed to configure plugin parameters for: org.apache.maven.plugins:maven-deploy-plugin:2.3 INFO | jvm 1 | 2007/06/19 17:19:37 | INFO | jvm 1 | 2007/06/19 17:19:37 | check that the following section of the pom.xml is present and correct: INFO | jvm 1 | 2007/06/19 17:19:37 | INFO | jvm 1 | 2007/06/19 17:19:37 | <distributionManagement> INFO | jvm 1 | 2007/06/19 17:19:37 | <!-- use the following if you're not using a snapshot version. --> INFO | jvm 1 | 2007/06/19 17:19:37 | <repository> INFO | jvm 1 | 2007/06/19 17:19:37 | <id>repo</id> INFO | jvm 1 | 2007/06/19 17:19:37 | <name>Repository Name</name> INFO | jvm 1 | 2007/06/19 17:19:37 | <url>scp://host/path/to/repo</url> INFO | jvm 1 | 2007/06/19 17:19:37 | </repository> INFO | jvm 1 | 2007/06/19 17:19:37 | <!-- use the following if you ARE using a snapshot version. --> INFO | jvm 1 | 2007/06/19 17:19:37 | <snapshotRepository> INFO | jvm 1 | 2007/06/19 17:19:37 | <id>repo</id> INFO | jvm 1 | 2007/06/19 17:19:37 | <name>Repository Name</name> INFO | jvm 1 | 2007/06/19 17:19:37 | <url>scp://host/path/to/repo</url> INFO | jvm 1 | 2007/06/19 17:19:37 | </snapshotRepository> INFO | jvm 1 | 2007/06/19 17:19:37 | </distributionManagement> INFO | jvm 1 | 2007/06/19 17:19:37 | INFO | jvm 1 | 2007/06/19 17:19:37 | Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated INFO | jvm 1 | 2007/06/19 17:19:37 | [INFO] ------------------------------------------------------------------------ INFO | jvm 1 | 2007/06/19 17:19:37 | [INFO] For more information, run Maven with the -e switch INFO | jvm 1 | 2007/06/19 17:19:37 | [INFO] ------------------------------------------------------------------------ INFO | jvm 1 | 2007/06/19 17:19:37 | [INFO] Total time: 5 seconds INFO | jvm 1 | 2007/06/19 17:19:37 | [INFO] Finished at: Tue Jun 19 17:19:37 PDT 2007 INFO | jvm 1 | 2007/06/19 17:19:37 | [INFO] Final Memory: 9M/17M INFO | jvm 1 | 2007/06/19 17:19:37 | [INFO] ------------------------------------------------------------------------