jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Continuum
  • CONTINUUM-1511

Improve error handling when not able to resolv artifacts

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.2
  • Component/s: None
  • Labels:
    None
  • Complexity:
    Intermediate

Description

When not able to resolve artifact, dump info about the artifact that was supposed to be resolved and the stack trace into the build log instead of getting "build error" and a stack trace in wrapper.log like this:

INFO   | jvm 1    | 2007/10/05 10:11:12 | 2007-10-05 10:11:12,431 [pool-1-thread-1] ERROR BuildController:default        - Error executing action update-project-from-working-directory '
INFO   | jvm 1    | 2007/10/05 10:11:12 | org.codehaus.plexus.taskqueue.execution.TaskExecutionException: Error executing action 'update-project-from-working-directory'
INFO   | jvm 1    | 2007/10/05 10:11:12 |       at org.apache.maven.continuum.buildcontroller.DefaultBuildController.performAction(DefaultBuildController.java:443)
INFO   | jvm 1    | 2007/10/05 10:11:12 |       at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:148)
INFO   | jvm 1    | 2007/10/05 10:11:12 |       at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:50)
INFO   | jvm 1    | 2007/10/05 10:11:12 |       at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
INFO   | jvm 1    | 2007/10/05 10:11:12 |       at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
INFO   | jvm 1    | 2007/10/05 10:11:12 |       at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
INFO   | jvm 1    | 2007/10/05 10:11:12 |       at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
INFO   | jvm 1    | 2007/10/05 10:11:12 |       at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
INFO   | jvm 1    | 2007/10/05 10:11:12 |       at java.lang.Thread.run(Thread.java:595)
INFO   | jvm 1    | 2007/10/05 10:11:12 | Caused by: org.apache.maven.continuum.execution.ContinuumBuildExecutorException: Error while mapping metadata:add.project.artifact.not.found.error
INFO   | jvm 1    | 2007/10/05 10:11:12 | add.project.unknown.error
INFO   | jvm 1    | 2007/10/05 10:11:12 | 
INFO   | jvm 1    | 2007/10/05 10:11:12 |       at org.apache.maven.continuum.execution.maven.m2.MavenTwoBuildExecutor.updateProjectFromCheckOut(MavenTwoBuildExecutor.java:168)
INFO   | jvm 1    | 2007/10/05 10:11:12 |       at org.apache.maven.continuum.core.action.UpdateProjectFromWorkingDirectoryContinuumAction.execute(UpdateProjectFromWorkingDirectoryContinuumAction.java
:75)
INFO   | jvm 1    | 2007/10/05 10:11:12 |       at org.apache.maven.continuum.buildcontroller.DefaultBuildController.performAction(DefaultBuildController.java:417)
INFO   | jvm 1    | 2007/10/05 10:11:12 |       ... 8 more

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Olivier Lamy added a comment - 06/Jun/08 3:52 PM

fixed in rev 664117
The stack trace will now contains the error message from maven :

2008-06-06 22:40:53,343 [addMavenTwoProjectBackgroundThread] INFO  continuum  -
org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download
 the artifact from any repository

  ghd:non-exists:pom:2.6.267676-beta-754-alpha-95

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)
Show
Olivier Lamy added a comment - 06/Jun/08 3:52 PM fixed in rev 664117 The stack trace will now contains the error message from maven :
2008-06-06 22:40:53,343 [addMavenTwoProjectBackgroundThread] INFO  continuum  -
org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download
 the artifact from any repository

  ghd:non-exists:pom:2.6.267676-beta-754-alpha-95

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

People

  • Assignee:
    Olivier Lamy
    Reporter:
    Trygve Laugstol
Vote (6)
Watch (6)

Dates

  • Created:
    05/Oct/07 3:33 AM
    Updated:
    06/Jun/08 3:52 PM
    Resolved:
    06/Jun/08 3:52 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.