Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-beta-7
-
Fix Version/s: 2.0-beta-8
-
Component/s: scm
-
Labels:None
-
Environment:Win XP SP2, SUN JDK 1.5.0_16-b02, mvn 2.1.0-M1
-
Number of attachments :
Description
Running the release:perform mojo from command line in an empty directory (no pom) with the -DworkingDirectory flag, the specified workingDirectory is not picked up. This results in the workingDirectory being used something like 'CUR_DIR/null/target/checkout'.
The command being issued:
mvn release:perform -DconnectionUrl="scm:clearcase:VIEW_NAME:load /VOB/PATH" -Dtag=TAG_NAME -DworkingDirectory=c:\mvn-test\checkout
If I have a pom in the current directory in which I specify workingDirectory (see below) it works. Why not from command line?
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>a.b.c.maven.dev</groupId>
<artifactId>release-test</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<name>Test of release</name>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.0-beta-7</version>
<configuration>
<workingDirectory>c:\mvn-release</workingDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-plugin</artifactId>
<version>1.1</version>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>