[ http://jira.codehaus.org/browse/MNG-4522?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-4522. ---------------------------------- Resolution: Fixed Fix Version/s: 2.2.2 Assignee: Benjamin Bentmann Fixed in [r902573|http://svn.apache.org/viewvc?view=revision&revision=902573]. > 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 > Assignee: Benjamin Bentmann > Fix For: 2.2.2 > > > 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