You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Anders Hammar <an...@hammar.net> on 2008/10/23 10:03:57 UTC

Re: Experience in maven-release-plugin using ClearCase SCM

Hi Torsten,

Found this old post. Any progress? I'm looking into this for a customer and
is working on some best practise for releasing with clearcase through Maven.
Have you tried working with branches?

/Anders


torsten.reinhard wrote:
> 
> Hi, 
> 
> I´m trying to establish our ReleaseBuild with the maven-release-plugin and 
> ClearCase (using Snapshot views)
> I´m using maven-release-plugin:2.0-beta-7
> 
> The first Snapshotview (Developer SnapshotView) actually resides at
> 
> C:\LocalViews\username_pcname_viewname\VOB_name\projectname
> 
> In the pom.xml I have:
> 
>         ...
>         <scm>
>         <!-- scm:checkout 
> -DcheckoutDirectory=C:\LocalViewsMaven\gide-common-view -->
>         <connection>scm:clearcase:load 
> /pdv_cms/GDCAMS/src/gide-common</connection>
>         <developerConnection>scm:clearcase:load 
> /pdv_cms/GDCAMS/src/gide-common</developerConnection>
>         <tag/>
>         <url/>
>         </scm> 
>         ...
> 
> now i can "mvn scm:checkout 
> -DcheckoutDirectory=C:\LocalViewsMaven\viewname" 
> 
> The second Snapshowview (for Maven Release purposes) now resides at
> 
> C:\LocalViewsMaven\viewname
> 
> now i can "mvn release:prepare" and the magic with the pom.xml 
> manipulation starts successfully.
> 
> Finally, I want to "mvn release:perform" where I run into problems, 
> because ClearCase cannot checkout in the same directory of an existing 
> view.
> Therefore I configured in the pom.xml
> 
> <build>
>     <plugins>
>         <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-release-plugin</artifactId>
>                 <version>2.0-beta-7</version>
>                 <configuration>
>  <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
>  <workingDirectory>c:\Release\${artifactId}\${version}</workingDirectory>
>                 </configuration> 
>         </plugin>
>     </plugins>
> <build>
> 
> At this point, I couldn´t pass the workingDirectory via CommandLine 
> arguments....
> 
> The third Snapshotview is now created, but at .....\nextRelease-SNAPSHOT, 
> containing the Release version.....
> 
> Is that the right way? Or am I doing something wrong / too much?
> Has anyone experience (and success) in using maven-release-plugin with 
> ClearCase?
> 
> Any complete sample configuration ?
> 
> Thanx, Torsten
> 
> 
> 
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Experience-in-maven-release-plugin-using-ClearCase-SCM-tp15137971p20126232.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org