Hi, 

I´m actually using the maven-release-plugin with Base ClearCase, but with 
some (known) limitations:

- i could only release modules within a tree, not a flat directory 
hierarchy
- i could only release modules at the main branch; releasing at a branch 
is not possible due to the configspec generaration - you need to release 
per hand
- i could only release modules one can load with a simple load rule; 
defining multiple load rules in the <scm> section is not expected.

For bootstrapping (mvn scm:bootstrap ) my configuration looks like:

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

For releasing afterwards (mvn release:prepare, mvn release:perform), my 
configuration looks like

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-release-plugin</artifactId>
        <configuration>
                <!-- sonst kann selbst bei SNAPSHOT-plugins nichts 
released werden -->
 <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
 
<workingDirectory>c:\LocalViewsRelease\${artifactId}-${version}</workingDirectory>
 
                <!-- sonst funktioniert der MultiModule build im Release 
nicht -->
                <preparationGoals>clean install</preparationGoals>
        </configuration> 
</plugin>

Doing so, there were two Snapshot Views being created:

C:\LocalViewsMaven\myproject-1.0-SNAPSHOT       (mvn scm:bootstrap)
C:\LocalViewsRelease\myproject-1.1-SNAPSHOT     (mvn release:perform)

As you can see, the name of the "Release Snapshot view" is bad - it better 
would be C:\LocalViewsRelease\myproject-1.0 but I dont know how to do 
that.
After releasing your project you than have to delete those created 
Snapshot Views, because otherwise you would run into problems, when trying 
to  release it the next time:

C:\LocalViewsMaven\myproject-1.1-SNAPSHOT       (mvn scm:bootstrap)
C:\LocalViewsRelease\myproject-1.2-SNAPSHOT     (mvn release:perform)

=> a snapshot view with "myproject-1.1-SNAPSHOT" already exists (name of 
the release snapshot view from the last release phase)

have fun, 

Torsten



Hi Torsten,

I've been trying to get the maven-release-plugin working with ClearCase 
and came across this message:
http://www.mail-archive.com/[email protected]/msg79519.html

Wanted to find out if you'd had any luck solving this problem - I get a 
similar error trying to do release:perform.

Cheers,
Todd

Reply via email to