[ http://jira.codehaus.org/browse/MNG-784?page=all ]
John Casey closed MNG-784:
--------------------------
Resolution: Fixed
should retrieve root cause in addition to printing top-level exception message
now.
> Bad pom in dependent file produces useless error messages at info level
> -----------------------------------------------------------------------
>
> Key: MNG-784
> URL: http://jira.codehaus.org/browse/MNG-784
> Project: Maven 2
> Type: Bug
> Components: maven-artifact, maven-artifact-ant
> Versions: 2.0-alpha-3
> Reporter: Steve Loughran
> Assignee: John Casey
> Fix For: 2.0-beta-4
>
> Original Estimate: 2 hours
> Time Spent: 2 hours
> Remaining: 0 minutes
>
> If a dependent artifact has a bad pom, this is not displayed at info level,
> instead all you get is something like
> muse-libraries:
> [m2-libraries] Resolving dependencies...
> BUILD FAILED - at 25/08/05 14:22
> /home/slo/Projects/SmartFrog/Forge/core/components/deployapi/build.xml:102:
> Unable to resolve artifact
> you need to run at -v level to extract some meaning
> Caused by:
> org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: Unable
> to read the metadata file
> at
> org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:88)
> at
> org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:151)
> ... 20 more
> Caused by: org.apache.maven.project.ProjectBuildingException: Failed to
> validate POM for 'Artifact [directory-naming:naming-java:pom:0.8]'.
> Reason(s):
> [0] 'modelVersion' is missing.
> [1] 'groupId' is missing.
> [2] 'version' is missing.
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:439)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:317)
> at
> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:220)
> at
> org.apache.maven.project.artifact.MavenMetadataSource.retrieve(MavenMetadataSource.java:81)
> ... 21 more
> Recommend the underlying cause is retained and displayed
--
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]