Maven Release Plugin
  1. Maven Release Plugin
  2. MRELEASE-3

release:prepare should not require multimodule artifacts to be in the local repository

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Component/s: prepare
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Currently, if you try to run release:prepare on a multimodule project after removing any of that build's artifacts from the local repository, it will fail. Investigate why release:prepare needs the multimodule artifacts installed in the local repository before it can succeed.

      To reproduce, comment the following line in it2002/test.sh:

      mvn clean install

      NOTE: This may have to do with the version resolution code, which is used to resolve SNAPSHOT versions.

        Issue Links

          Activity

          Hide
          Dan Tran added a comment -

          setting preparationGoals="clean install" will work, but for a large project with daily release, the build time is double.

          Show
          Dan Tran added a comment - setting preparationGoals="clean install" will work, but for a large project with daily release, the build time is double.
          Hide
          Olivier Lamy added a comment -

          IMHO again it's more a MNG issue !

          Show
          Olivier Lamy added a comment - IMHO again it's more a MNG issue !
          Hide
          Job de Noo added a comment -

          have te same issue that it will not resolve reactor dependencies in maven 2.2

          Show
          Job de Noo added a comment - have te same issue that it will not resolve reactor dependencies in maven 2.2
          Hide
          Youri De Bondt added a comment - - edited

          -DpreparationGoals="clean install" doesn't work for me.
          I have to perform a clean install first, then release:prepare (which will check if the modules are installed, and also runs clean install)

          Show
          Youri De Bondt added a comment - - edited -DpreparationGoals="clean install" doesn't work for me. I have to perform a clean install first, then release:prepare (which will check if the modules are installed, and also runs clean install)
          Hide
          Brett Porter added a comment -

          See the following thread for the planned resolution to this: http://mail-archives.apache.org/mod_mbox/maven-dev/201001.mbox/%3C4B56E5A7.9050806@udo.edu%3E

          Show
          Brett Porter added a comment - See the following thread for the planned resolution to this: http://mail-archives.apache.org/mod_mbox/maven-dev/201001.mbox/%3C4B56E5A7.9050806@udo.edu%3E

            People

            • Assignee:
              Brett Porter
              Reporter:
              John Casey
            • Votes:
              20 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: