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

Mojo in forked lifecycle invoked in reactor build cannot find reactor dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.2
    • 3.0-alpha-3
    • Reactor and Workspace
    • None

    Description

      In multiproject I have two modules. One of them (lets name it "main") depends on the second one ("util").
      If I bind forking lifecycle mojo in the "main" artifact pom, that mojo does not find "util" artifact and tries to find it in local and remote repositories.
      If the same mojo does not for lifecycle, reactor build finishes with success.

      I attach an example:

      • plugin with two mojos writing something to the log, one of them forks lifecycle, second - does not
      • test multiproject using test mojo

      There are some plugins forking lifecycles, so I think this can be serious problem.
      I would love to see its priority to "Blocker" for Maven 2.0.3

      Attachments

        1. test.zip
          4 kB
          Grzegorz Slowikowski

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              gslowikowski Grzegorz Slowikowski
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: