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

Perform fails with flat directory structure in multi module project using mercurial

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.2.1
    • None
    • perform
    • None
    • Windows 7 x64, Eclipse Ide and command line attempts.

    Description

      Three projects with a flat structure
      Scenario 1:
      ../parente-pom [parent pom of module1 and multimodule projects]
      ../module1 [a jar module]
      ../multimodule [a multimodule pom project that included submodules both parent-pom and module1]
      Scenario 2:
      ../parente-pom [parent pom of module1 with submodule module1]
      ../module1 [a jar module]

      Both scenarios use mercurial with the following configuration:

      <!-- in the scenario 1, this config is in the multimodule pom-->
      <!-- in the scenario 2, this config is in the parent pom-->

      <scm>
      <connection>scm:hg:d:\projects\pocs\maven-release-with-hg</connection>
      <developerConnection>scm:hg:d:\projects\pocs\maven-release-with-hg</developerConnection>
      </scm>

      <distributionManagement>
      <repository>
      <id>local.releases</id>
      <name>ent local releases repository</name>
      <url>file:d:/projects/maven-local-repositories/poc</url>
      </repository>
      </distributionManagement>

      <build>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-release-plugin</artifactId>
      <version>2.2.1</version>
      </plugin>
      </plugins>
      </build>

      <modules>
      <module>../mavenreleasehg.module1</module>
      <!-- here parent would be included in the scenario 1-->
      </modules>

      In both cases, the prepare goal work fine

      When it comes to the perform goal, both cases fails.
      I'm attaching the failed execution with the -X command.
      For what I can see (target\checkout\mavenreleasehg.multimodule\mavenreleasehg.multimodule" does not exist!) it is duplicating part of the path and fails to locate it. The checkout directory contains all three/two projects, but it duplicates part of it (the last two directories in the path).

      Hope this helps.

      Attachments

        1. failed_release.log
          26 kB
          Ezequiel Ballesi

        Activity

          People

            Unassigned Unassigned
            ezequielb Ezequiel Ballesi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: