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

Regression: Maven drops dependencies in multi-module build

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.0.7, 2.0.8, 3.0-alpha-1
    • 2.0.9
    • Dependencies
    • None

    Description

      Under some circumstances Maven "forgets" about test dependencies in multi-module builds. The affected module can be build only if the build is started from its local project directory. If the build is run from a parent directory, the test fails because of missing classes. This issue applies to M207 and recent M208-RC1, the project can be build without problems with M205 (M206 is completely bogus). The problem was for us already the show stopper for M207 and I thought with some of the now resolved issues it has been gone, but I was wrong. I did not report it earlier, because I was never able to reproduce the problem with a minimal build ... until now and it took me about 3 days to create a demonstrating multi module project.

      Attachments

        1. MNG-3259.zip
          23 kB
          Joerg Schaible
        2. MNG-3259-2.zip
          23 kB
          Joerg Schaible

        Issue Links

          Activity

            People

              jdcasey John Dennis Casey
              joehni Joerg Schaible
              Votes:
              6 Vote for this issue
              Watchers:
              6 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 - 5h
                  5h