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
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0-alpha-6
    • Fix Version/s: 3.0-alpha-7
    • Component/s: None
    • Labels:
      None

      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

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Closed Closed
          16d 18h 27m 1 Benjamin Bentmann 24/Jan/10 08:25
          Mark Thomas made changes -
          Workflow jira [ 12952422 ] Default workflow, editable Closed status [ 12989769 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Workflow jira [ 12714822 ] Default workflow, editable Closed status [ 12754474 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Benjamin Bentmann made changes -
          Link This issue is related to MNG-1108 [ MNG-1108 ]
          Benjamin Bentmann made changes -
          Link This issue relates to MNG-4593 [ MNG-4593 ]
          Benjamin Bentmann made changes -
          Fix Version/s 2.2.2 [ 15472 ]
          Fix Version/s 3.0-alpha-7 [ 16087 ]
          Benjamin Bentmann made changes -
          Field Original Value New Value
          Fix Version/s 2.2.2 [ 15472 ]
          Resolution Fixed [ 1 ]
          Assignee Benjamin Bentmann [ bentmann ]
          Status Open [ 1 ] Closed [ 6 ]
          Hide
          Benjamin Bentmann added a comment -

          Fixed in r902573.

          Show
          Benjamin Bentmann added a comment - Fixed in r902573 .
          dbradicich created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development