continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendy Smoak (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (CONTINUUM-1321) Improve error message when perform release fails due to missing distributionManagement
Date Fri, 16 Jan 2009 15:27:19 GMT

    [ http://jira.codehaus.org/browse/CONTINUUM-1321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161196#action_161196
] 

Wendy Smoak commented on CONTINUUM-1321:
----------------------------------------

Looking at the patch, it hard-codes the log output in the original error report.  That's only
one of many things that can go wrong during a release.

The problem is that you have to look at the log file to find out what really happened.  We
need to somehow capture the actual output from the forked process that  executes the release,
and display that instead.

Also, there's some noise in the patch -- looks like some inadvertent whitespace changes.

> 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

        

Mime
View raw message