Uploaded image for project: 'Maven Release Plugin'
  1. Maven Release Plugin
  2. MRELEASE-725

Releasing a specific module-based project fails (Regression from 2.1)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2, 2.2.1, 2.2.2
    • 2.3
    • perform
    • None
    • Mac OS X 10.7.2
      Apache Maven 3.0.3
      Subversion 1.6.16 (r1073529)

    Description

      We can not release our project with a version of the release plugin greater than 2.1.

      I have distilled the problem to a small example project (attached as zip). The project has a core module (with code) and an aggregating build project, like this:

      -> build
      -> release
      -> pom.xml
      -> core
      -> hello-world
      -> pom.xml
      -> src/main/java/HelloWorld.java

      where "hello-world" is a module of "release".

      It looks like release:perform tries to build in the wrong directory:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.2:perform (default-cli) on project release: Error executing Maven. Working directory "/Development/maven-release-bug/trunk/build/release/target/checkout/build/release/build/release" does not exist! -> [Help 1]

      I have also attached a transscript with some easy steps to reproduce the problem. First, a local svn repo is created. Then, the working release with 2.1 is demonstrated. Then the plugin version in the pom is changed and the error is shown.

      Attachments

        1. transscript.txt
          37 kB
          Philipp Paland
        2. trunk.zip
          3 kB
          Philipp Paland

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ppaland Philipp Paland
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: