Maven3 doesn't fail build when a pom from transitive dependency can't be found
------------------------------------------------------------------------------

                 Key: MNG-4522
                 URL: http://jira.codehaus.org/browse/MNG-4522
             Project: Maven 2 & 3
          Issue Type: Bug
    Affects Versions: 3.0-alpha-6
            Reporter: Damian Bradicich


Using maven 2.2.1 if i build my test plugin that has a dependency on a project, 
which has a dependency on another project that is inaccessible for whatever 
reason, the build fails w/ an error as i would expect

Downloading: 
http://repository.sonatype.org/content/groups/forge/org/codehaus/swizzle/swizzle-parent/1-SNAPSHOT/swizzle-parent-1-SNAPSHOT.pom
[INFO] Unable to find resource 
'org.codehaus.swizzle:swizzle-parent:pom:1-SNAPSHOT' in repository 
sonatype-forge (http://repository.sonatype.org/content/groups/forge)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.codehaus.swizzle:swizzle-jira:jar:1.3.3-sonatype-2

Reason: Cannot find parent: org.codehaus.swizzle:swizzle-parent for project: 
org.codehaus.swizzle:swizzle-jira:jar:1.3.3-sonatype-2 for project 
org.codehaus.swizzle:swizzle-jira:jar:1.3.3-sonatype-2


[INFO] ------------------------------------------------------------------------

Doing this same build in maven3 gives me a warning rather than error, and the 
build continues

[WARNING] Invalid artifact metadata for 
org.codehaus.swizzle:swizzle-jira:jar:1.3.3-sonatype-2, transitive dependencies 
(if any) will not be available, enable debug logging for more details

This seems to me, that it is kind of hiding an error

-- 
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

        

Reply via email to