You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeffrey N Hagelberg <jn...@us.ibm.com> on 2009/06/16 19:29:40 UTC

Clearcase with maven release plugin


Hi,

I'm wondering if anyone has been able to successfully use clearcase with
the maven release plugin.  We're trying to figure out how to do it and
investigating the various options.  If you've been able get this to work,
could you please share how you were able to make it work?

Thanks,

-Jeff
Jeffrey Hagelberg, Software Engineer
XMeta Development
IBM Software Group
Phone: 978-899-2055 T/L:276-2055)
Email:jnhagelb@us.ibm.com

Re: Clearcase with maven release plugin

Posted by Anders Hammar <an...@hammar.net>.
> > However, it does only work on the 'main' branch.
> >
>
> What do you mean by "it only works on the 'main' branch? What are the
> limitations?
>
>
The mail you've found is old and I wrote it when I had just started to use
the release plugin with clearcase. Since then I've learned more on using
that combination as well as there has been new releases of the release
plugin as well as the scm parts.
So, it works on any branch, not just the main branch. (However, you cannot
make a branch.) As long as the view you're using is set up correctly, things
will work with the release plugin.


> > Some quick things:
> > * Create $user.home/.scm/clearcase-settings.xml containing
> > <clearcase-settings>
> >   <useVWSParameter>false</useVWSParameter>
> > </clearcase-settings>
> >
>
> I've created the clearcase-settings.xml file in %HOME% on my Windows
> machine. And because I found a post somewhere, where they've put it in a
> .scm directory, so I copied it there.
>
> But I keep getting the following error:
>
> [INFO] Unable to checkout from SCM
> Provider message:
> The cleartool command failed.
> Command output:
> cleartool: Error: Unrecognized command option: "-vws".
>
> I have the feeling that my settings file is ignored
> Do you have an idea how I should proceed?
>
>
Sorry, no. If the file is stored as $user.home/.scm/clearcase-settings.xml
it should be picked up. Are you sure it is in the right location (for the
right user)? Execute Maven in debug mode (-X) and possibly you could get
more info.
According to the doc, you could put the file in
$maven.home/conf/clearcase-settings.xml
as well. You could try that to get something working.
Here's the doc that's available:
http://maven.apache.org/scm/clearcase.html

/Anders

Re: Clearcase with maven release plugin

Posted by Jeroen Lankheet <je...@lankheet.com>.
Hi Anders,


Anders Hammar wrote:
> 
> However, it does only work on the 'main' branch.
> 

What do you mean by "it only works on the 'main' branch? What are the
limitations?



Anders Hammar wrote:
> 
> Some quick things:
> * Create $user.home/.scm/clearcase-settings.xml containing
> <clearcase-settings>
>   <useVWSParameter>false</useVWSParameter>
> </clearcase-settings>
> 

I've created the clearcase-settings.xml file in %HOME% on my Windows
machine. And because I found a post somewhere, where they've put it in a
.scm directory, so I copied it there.

But I keep getting the following error:

[INFO] Unable to checkout from SCM
Provider message:
The cleartool command failed.
Command output:
cleartool: Error: Unrecognized command option: "-vws".

I have the feeling that my settings file is ignored
Do you have an idea how I should proceed?

Thanks,
Jeroen.


-- 
View this message in context: http://old.nabble.com/Clearcase-with-maven-release-plugin-tp24059139p28169971.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


Re: Clearcase with maven release plugin

Posted by Anders Hammar <an...@hammar.net>.
Hi,

Yes, I've done it for a customer. I use version 2.0-beta-8 of the
release-plugin and found some issues, but they were possible to solve.
However, it does only work on the 'main' branch.

Some quick things:
* Create $user.home/.scm/clearcase-settings.xml containing
<clearcase-settings>
  <useVWSParameter>false</useVWSParameter>
</clearcase-settings>

* Configure the scm connection as:
<scm>
  <developerConnection>scm:clearcase:load
/[VOB_NAME]/[PROJ_PATH]</developerConnection>
</scm>

* Be sure to specify the version 2.0-beta-8 (or newer) of the plugin
in your pom. Earlier versions had bugs that made it not work for us.

To do a release:
1. Create the view to use, either a dynamic or a snapshot view.
2. mvn release:prepare
3. mvn release:perform –DworkingDirectory=[DIR_PATH]
   This will create a new snapshot view named as
'username-hostname-maven-checkoutdir'. You can define that view name
through the connectionUrl on the command line (you most likely don't
what to do this in the pom):
   mvn release:perform –DworkingDirectory=[DIR_PATH]
-DconnectionUrl="scm:clearcase:[VIEW_NAME]:load
/[VOB_NAME]/[PROJ_PATH]"
4. In the end you get a NPE (in 2.0-beta-8) but the artifacts should
already be built by then.

What doesn't work for you?

/Anders

On Tue, Jun 16, 2009 at 19:29, Jeffrey N
Hagelberg<jn...@us.ibm.com> wrote:
>
>
> Hi,
>
> I'm wondering if anyone has been able to successfully use clearcase with
> the maven release plugin.  We're trying to figure out how to do it and
> investigating the various options.  If you've been able get this to work,
> could you please share how you were able to make it work?
>
> Thanks,
>
> -Jeff
> Jeffrey Hagelberg, Software Engineer
> XMeta Development
> IBM Software Group
> Phone: 978-899-2055 T/L:276-2055)
> Email:jnhagelb@us.ibm.com

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