Maven
  1. Maven
  2. MNG-2424

Classpath in reactor builds differ from dependency resolution

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Duplicate
    • Affects Version/s: 2.0.4
    • Fix Version/s: 2.0.5
    • Component/s: Reactor and workspace
    • Labels:
      None

      Description

      The classpath used to compile and test a module is wrong, if the module uses a released version of another module in the reactor build. If the module is build locally, the correct depednencies are on the classpath. This currently breaks our complete development and results makes e.g. EJBs useless (MEJB-18).

      1. MNG-2424.zip
        6 kB
        Joerg Schaible

        Issue Links

          Activity

          Hide
          Joerg Schaible added a comment -

          Attachment contains thw same minimal project in two steps. To demonstrate the poroblem run in step-1 "mvn install" and then do the same in step-2. You will see the unit test of the issue-client in step-2 failing. Go to the issue-client and run "mvn clean install" and the build has no problems. The problem in step 2 is the undesired usage of the SNAPSHOT version of "issue-core" in the classpath, although it is nowhere referenced. The client never stopped to demand the released version created in step-1.

          Show
          Joerg Schaible added a comment - Attachment contains thw same minimal project in two steps. To demonstrate the poroblem run in step-1 "mvn install" and then do the same in step-2. You will see the unit test of the issue-client in step-2 failing. Go to the issue-client and run "mvn clean install" and the build has no problems. The problem in step 2 is the undesired usage of the SNAPSHOT version of "issue-core" in the classpath, although it is nowhere referenced. The client never stopped to demand the released version created in step-1.
          Hide
          Joerg Schaible added a comment -

          Might be related to MNG-1245

          Show
          Joerg Schaible added a comment - Might be related to MNG-1245
          Hide
          Joerg Schaible added a comment -

          This is just another result of the problem described in MNG-1245. That fix solves also this issue.

          Show
          Joerg Schaible added a comment - This is just another result of the problem described in MNG-1245 . That fix solves also this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Joerg Schaible
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development