Hi, 

my "solution" is the following configuration in my parent pom
As you can see, the "checkoutDirectory" and "workingDirectory" parameters 
are configured in the pom.xml - they couldn´t be passed as argument via 
CmdLine,
but I don´t remember exactly why, I guess that´s just a bug.

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-scm-plugin</artifactId>
        <configuration>
          <goals>install</goals>
 
<checkoutDirectory>c:\LocalViewsMaven\${artifactId}-${version}</checkoutDirectory>
        </configuration>
      </plugin>

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
                <!-- otherwise you could not release, caused by 
SNAPSHOT-plugins ...-->
 <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
 
<workingDirectory>c:\LocalViewsRelease\${artifactId}-${version}</workingDirectory>
 
                <!-- additional goals for a multimodule build -->
                <preparationGoals>clean install</preparationGoals>
                </configuration> 
</plugin>

When I release a module from within a ClearCase Snapshot View I call

1.) mvn scm:bootstrap           => create a new fresh ClearCase Snapshot 
View at "C:\LocalViewsMaven\..........."
2.) cd C:\LocalViewsMaven\.......
3.) mvn release:prepare         => change version number and so on
4.) mvn release:perform

All that works fine, with the known constraints (only main-Branch, no 
branch support)

Hope that´ll help you, 

torsten




"Tutuianu, Danut" <[EMAIL PROTECTED]> 
28.04.2008 23:22

An
<[EMAIL PROTECTED]>
Kopie

Thema
Maven release:perform - Clearcase error






Hi Torsten. 
I try to use maven to checkout from Clearcase and I have the same error 
you previoulsy had: 
Hi, 
any solution in sight? I have exactly the same problem, using 
maven-release-plugin:2.0-beta-7 
C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-common>mvn 
-Dbasedir=C:\Release -DworkingDirectory=C:\Release -X release:perform 
[DEBUG] Configuring mojo 
'org.apache.maven.plugins:maven-release-plugin:2.0-beta-7:perform' --> 
[DEBUG] (s) basedir = 
C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-common [DEBUG] 
(f) project = MavenProject: com.gide.common:gide-common:3.2.0-SNAPSHOT @ 
C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-common\pom.xml 
[DEBUG] (f) reactorProjects = [MavenProject: 
com.gide.common:gide-common:3.2.0-SNAPSHOT @ 
C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-common\pom.xml] 
[DEBUG] (f) scmCommentPrefix = [maven-release-plugin] [DEBUG] (f) settings 
= [EMAIL PROTECTED] [DEBUG] (f) useReleaseProfile 
= true [DEBUG] (f) workingDirectory =
C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-common\target\
checkout [DEBUG] -- end configuration -- [INFO] [release:perform] [INFO] 
Checking out the project to perform the release ... [DEBUG] viewName = 
'reinhart-d167961-maven' ; configSpec = 'load 
/pdv_cms/GDCAMS/src/gide-common' [DEBUG] executing checkout command... 
[DEBUG] Tag: gide-common-3.1.0 [DEBUG] Running with CLEARCASE null [INFO] 
Executing:
C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-common\target>>cleartool
 
mkview -snapshot -tag reinhart-d167961-maven-checkout -vws 
\\d167961\kmdata\reinhart-d167961-maven-checkout.vws
C:\LocalViewsMaven\gide-common-main\pdv_cms\GDCAMS\src\gide-common\target\
checkout [ERROR] The cleartool command failed. [INFO] 
------------------------------------------------------------------------ 
[ERROR] BUILD FAILURE [INFO] 
------------------------------------------------------------------------ 
[INFO] UnabletocheckoutfromSCM Provider message: The cleartool command 
failed. Command output: cleartool: Error: A view cannot be created under 
another view's storage directory or snapshot view storage directory. 
[INFO] 
------------------------------------------------------------------------ 
[DEBUG] Trace 
org.apache.maven.BuildFailureException:UnabletocheckoutfromSCM Provider 
message: The cleartool command failed. Command output: 
=> The parameters -Dbasedir and -DworkingDirectory are not passed to the 
plugin. 
thanx, Torsten 

Did you find a solution to this issue? 
Thanks, 
Danut. 

Reply via email to