Maven
  1. Maven
  2. MNG-4522

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

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-alpha-6
    • Fix Version/s: 3.0-alpha-7
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      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

        Issue Links

          Activity

          Hide
          Benjamin Bentmann added a comment -

          Fixed in r902573.

          Show
          Benjamin Bentmann added a comment - Fixed in r902573 .

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              Damian Bradicich
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: