Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4660

Use of --resume-from in multi-module project fails with missing inter-module dependencies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1, 3.0-beta-1
    • 4.0.0, 4.0.0-alpha-1
    • Reactor and Workspace
    • None

    Description

      In a simple multi-module project with a parent pom "modules-parent", two sub modules "module-a" and "module-b", where B depends on A, I've not been able to get the Maven "--resume-from" feature to work.

      Specifically, I expect:

      > mvn --resume-from module-b test

      would resume execution of the "test" goal in "module-b". Instead it fails with a missing artifact error:

      > [INFO] Failed to resolve artifact.
      >
      > Missing:
      > ----------
      > 1) org.test:module-a:jar:0.0.1-SNAPSHOT

      Why isn't Maven resolving the within-multi-module dependency? I've attached a simple project that reproduces the problem with Maven 2.2.1 and Maven 3.0-beta-1.

      Attachments

        1. modules-parent.tar.gz
          1 kB
          Brian Ferris

        Issue Links

          Activity

            People

              rfscholte Robert Scholte
              bdferris@gmail.com Brian Ferris
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m