You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@continuum.apache.org by "Maria Odea Ching (JIRA)" <ji...@codehaus.org> on 2009/01/16 12:35:19 UTC
[jira] Commented: (CONTINUUM-1321) Improve error message when
perform release fails due to missing distributionManagement
[ http://jira.codehaus.org/browse/CONTINUUM-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161157#action_161157 ]
Maria Odea Ching commented on CONTINUUM-1321:
---------------------------------------------
Hi Gwen, I tried your patch and it's displaying the correct output when the cause of error is the missing <distributionManagement>. However, it still shows that same error message even though the actual cause of error is different. In the case I tried, the actual error is a connection refused, as shown below:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error deploying artifact: Error transferring file
Connection refused
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18 seconds
[INFO] Finished at: Fri Jan 16 19:30:05 PHT 2009
[INFO] Final Memory: 14M/82M
[INFO] ------------------------------------------------------------------------
But the release output shows this:
RROR] org.apache.continuum.release.exception.ContinuumReleaseExecutionException: Check that the following section of the pom.xml is present and correct:
<distributionManagement>
<!-- use the following if you're not using a snapshot version. -->
<repository>
<id>repo</id>
<name>Repository Name</name>
<url>scp://host/path/to/repo</url>
</repository>
<!-- use the following if you ARE using a snapshot version. -->
<snapshotRepository>
<id>repo</id>
<name>Repository Name</name>
<url>scp://host/path/to/repo</url>
</snapshotRepository>
</distributionManagement>
at org.apache.continuum.release.phase.AbstractContinuumRunGoalsPhase.execute(AbstractContinuumRunGoalsPhase.java:88)
at org.apache.continuum.release.phase.RunPerformGoalsPhase.execute(RunPerformGoalsPhase.java:62)
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:89)
at org.apache.maven.continuum.release.executors.AbstractReleaseTaskExecutor.executeTask(AbstractReleaseTaskExecutor.java:68)
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:178)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
at java.lang.Thread.run(Thread.java:595)
> Improve error message when perform release fails due to missing distributionManagement
> --------------------------------------------------------------------------------------
>
> Key: CONTINUUM-1321
> URL: http://jira.codehaus.org/browse/CONTINUUM-1321
> Project: Continuum
> Issue Type: Improvement
> Components: Release
> Affects Versions: 1.1-alpha-2
> Reporter: Wendy Smoak
> Assignee: Maria Odea Ching
> Priority: Minor
> Fix For: 1.x
>
> Attachments: CONTINUUM-1321.patch, continuum.png
>
>
> When 'perform release' fails because there is no distributionManagment section in the pom, all you get in 'View Output' is the following:
> {noformat}
> [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
> {noformat}
> The log file shows the actual error:
> {noformat}
> 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] ------------------------------------------------------------------------
> {noformat}
--
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