*
The moose likes Ant, Maven and Other Build Tools and the fly likes mvn release:prepare with CVS extssh Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "mvn release:prepare with CVS extssh" Watch "mvn release:prepare with CVS extssh" New topic
Author

mvn release:prepare with CVS extssh

Salomo Petrus
Greenhorn

Joined: Dec 07, 2006
Posts: 6
Does anybody know how to get extssh to work with the maven release:prepare plug-in.

If I use a developersConnection like this:


It tries to execute the following command:


The plug-in throws the following exception:
org.netbeans.lib.cvsclient.connection.AuthenticationException:
Failed to execute: /bin/ssh username@server cvs server

When I try to with the option -Dmaven.scm.provider.cvs.implementation=cvs_native

Maven hangs here:


Anyone have an idea how to fix this?

Thanks in advance.

Cheers
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

Funny you should ask. I spent most of yesterday learning how to use this feature. Unfortunately, the archive I was using was subversion-based.

There are 2 things you might look at, though:

1. Instead of "ssh", try "extssh" in the scm URL.

2. I'm not sure that "web/cvs/:module" is valid. Shouldn't it just be "/web/cvs/module"?


Customer surveys are for companies who didn't pay proper attention to begin with.
Salomo Petrus
Greenhorn

Joined: Dec 07, 2006
Posts: 6
Your lucky.. subversion is much easier to configure.

I now got the authentication to work but now it cannot commit the changed POM file

Now I get this:


If you put extssh which I tried before Maven starts complaining that it's not supported.

The Maven documentation states that the format should be like this:


Anyone a clue how to fix this problem?

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15960
    
  19

The message you're getting indicates that you're successfully connecting to the CVS server.

However it doesn't look like the directory /web/cvs on that machine is a CVS archive. There should be a /web/cvs/CVSROOT directory on that machine. If there is, make sure that the userID you're connecting with has read/write writes to both that directory and the /web/cvs directory.
Salomo Petrus
Greenhorn

Joined: Dec 07, 2006
Posts: 6
Well I use my own developer account which is already able to checkout and commit to the CVS repository so I don't think that could be the issue.

The directory excists and I double checked the permissions and everyhting seems to be ok.

Do you have any other idea why this is happening?
 
jQuery in Action, 2nd edition
 
subject: mvn release:prepare with CVS extssh
 
Similar Threads
mvn release:prepare fails when project was checked out by Eclipse
maven subversion
Wagon-ssh with Maven 2.2
Problem with SSH/CVS on Eclipse 3.0
maven subversion