Re: scm cvs provider native java implementation?

2007-04-27 Thread Knut Forkalsrud

Emmanuel Venisse wrote:

Canyou send your logs (with debug mode)


Ok, I attached the output from "mvn -X -Dusername=knut scm:changelog"
Looking at the stack trace and browsing the source code online suggests
that CvsLoginCommand.java line 53 calls CvsCommandUtils, which assumes
command line CVS.

-Knut

+ Error stacktraces are turned on.
Maven version: 2.0.6
[DEBUG] Building Maven user-level plugin registry from: 
'/Users/knut/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: 
'/usr/local/maven-2.0.6/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Searching for parent-POM: estalea:estalea-master::1.5 of project: 
estalea:estalea-bucket:jar:8.0.25 in relative path: ../estalea-master/pom.xml
[DEBUG] Using parent-POM from the project hierarchy at: 
'../estalea-master/pom.xml' for project: estalea:estalea-bucket:jar:8.0.25
[DEBUG] Adding managed depedendencies for estalea:estalea-bucket
[DEBUG]   estalea:estalea-bucket:jar:8.0.25
[DEBUG]   estalea:estalea-base:jar:10.0.17
[DEBUG]   estalea:estalea-summer:jar:8.0.5
[DEBUG]   estalea:estalea-core:jar:12.0.7
[DEBUG]   estalea:estalea-datatransfer:jar:10.0.24
[INFO] Searching repository for plugin with prefix: 'scm'.
[DEBUG] Retrieving parent-POM: org.apache.maven.scm:maven-scm::1.0-rc1 for 
project: org.apache.maven.plugins:maven-scm-plugin:maven-plugin:1.0-rc1 from 
the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project: 
org.apache.maven.scm:maven-scm:pom:1.0-rc1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: 
org.apache.maven:maven-parent:pom:5 from the repository.
[INFO] 

[INFO] Building bucket
[INFO]task-segment: [scm:changelog] (aggregator-style)
[INFO] 

[DEBUG] org.apache.maven.plugins:maven-scm-plugin:maven-plugin:1.0-rc1:runtime 
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.codehaus.plexus:plexus::1.0.4 for project: 
null:plexus-utils:jar:1.1 from the repository.
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.1:runtime (selected for 
runtime)
[DEBUG] Retrieving parent-POM: 
org.apache.maven.scm:maven-scm-providers::1.0-rc1 for project: 
null:maven-scm-provider-starteam:jar:1.0-rc1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven.scm:maven-scm::1.0-rc1 for 
project: null:maven-scm-providers:pom:1.0-rc1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project: 
org.apache.maven.scm:maven-scm:pom:1.0-rc1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: 
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG]   org.apache.maven.scm:maven-scm-provider-starteam:jar:1.0-rc1:runtime 
(selected for runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven.scm:maven-scm::1.0-rc1 for 
project: null:maven-scm-api:jar:1.0-rc1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project: 
org.apache.maven.scm:maven-scm:pom:1.0-rc1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: 
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG] org.apache.maven.scm:maven-scm-api:jar:1.0-rc1:runtime (selected 
for runtime)
[DEBUG] Retrieving parent-POM: 
org.apache.maven.scm:maven-scm-providers::1.0-rc1 for project: 
org.apache.maven.scm:maven-scm-provider-synergy:jar:1.0-rc1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven.scm:maven-scm::1.0-rc1 for 
project: null:maven-scm-providers:pom:1.0-rc1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project: 
org.apache.maven.scm:maven-scm:pom:1.0-rc1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: 
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG]   org.apache.maven.scm:maven-scm-provider-synergy:jar:1.0-rc1:runtime 
(selected for runtime)
[DEBUG] Retrieving parent-POM: 
org.apache.maven.scm:maven-scm-providers-cvs::1.0-rc1 for project: 
null:maven-scm-provider-cvsjava:jar:1.0-rc1 from the repository.
[DEBUG] Retrieving parent-POM: 
org.apache.maven.scm:maven-scm-providers::1.0-rc1 for project: 
null:maven-scm-providers-cvs:pom:1.0-rc1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven.scm:maven-scm::1.0-rc1 for 
project: null:maven-scm-providers:pom:1.0-rc1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::5 for project: 
org.apache.maven.scm:maven-scm:pom:1.0-rc1 from the repository.
[DEBUG] Retrieving parent-POM: org.apache:apache::3 for project: 
org.apache.maven:maven-parent:pom:5 from the repository.
[DEBUG]   org.apache.maven.scm:maven-scm-provider-cvsjava:jar:1.0-rc1:runtime 
(selected for runtime)
[DEBUG] Retrieving parent-POM: 
org.apache.maven.scm:maven-scm-providers-cvs::1.0-r

Re: scm cvs provider native java implementation?

2007-04-27 Thread Emmanuel Venisse

Canyou send your logs (with debug mode)

Emmanuel

Knut Forkalsrud a écrit :

Yes, I'm pretty sure I do, I have the plugin defined as follows:


   org.apache.maven.plugins
   maven-scm-plugin
 1.0-rc1
 
install
 
 

And maven did download a bunch of jars that seemed to be for the CVS 
integration, including some ssh stuff.  But then, when actually running 
the CVS command it seems to go with the command line version anyway.


-Knut




Emmanuel Venisse wrote:
Are you sure you use Maven-SCM 1.0-rc1? The java implementation is 
only in this version.


Emmanuel

Knut Forkalsrud a écrit :
I'm trying to get maven2 (version 2.0.6) working and I can't get the 
CVS integration to work.  It seems to insist on using the native cvs 
command line program every time.  The documentation at 
http://maven.apache.org/scm/cvs.html claims the default is a native 
Java implementation, but that can be overridden with a system property.


My scm url is:
   scm:cvs:pserver:cvs.hostname.domain:/path/to:${pom.name}
I'm on Mac OSX (10.4.9)

I moved my command line cvs client out of the way by renaming it to 
"cvs2", and now the following scm commands:


mvn -Dmaven.scm.provider.cvs.implementation=cvs -Dusername=knut 
scm:status
mvn -Dmaven.scm.provider.cvs.implementation=cvs_native 
-Dusername=knut scm:status


both fail with messages:

...
[INFO] Cannot run status command :
Embedded error: Exception while executing SCM command.
cvs: not found
...

I tried to find more detailed information, without any direct luck.  
My guess is that the following source lines are supposed to make the 
difference:


http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvsjava/src/main/java/org/apache/maven/scm/provider/cvslib/cvsjava/CvsJavaScmProvider.java?view=annotate#l41 



http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvsexe/src/main/java/org/apache/maven/scm/provider/cvslib/cvsexe/CvsExeScmProvider.java?view=annotate#l41 




Do anyone have any hints for me on how I can make the Java based CVS 
integration work?



Thanks in advance,

Knut Forkalsrud












Re: scm cvs provider native java implementation?

2007-04-25 Thread Emmanuel Venisse

Are you sure you use Maven-SCM 1.0-rc1? The java implementation is only in this 
version.

Emmanuel

Knut Forkalsrud a écrit :
I'm trying to get maven2 (version 2.0.6) working and I can't get the CVS 
integration to work.  It seems to insist on using the native cvs command 
line program every time.  The documentation at 
http://maven.apache.org/scm/cvs.html claims the default is a native Java 
implementation, but that can be overridden with a system property.


My scm url is:
   scm:cvs:pserver:cvs.hostname.domain:/path/to:${pom.name}
I'm on Mac OSX (10.4.9)

I moved my command line cvs client out of the way by renaming it to 
"cvs2", and now the following scm commands:


mvn -Dmaven.scm.provider.cvs.implementation=cvs -Dusername=knut scm:status
mvn -Dmaven.scm.provider.cvs.implementation=cvs_native -Dusername=knut 
scm:status


both fail with messages:

...
[INFO] Cannot run status command :
Embedded error: Exception while executing SCM command.
cvs: not found
...

I tried to find more detailed information, without any direct luck.  My 
guess is that the following source lines are supposed to make the 
difference:


http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvsjava/src/main/java/org/apache/maven/scm/provider/cvslib/cvsjava/CvsJavaScmProvider.java?view=annotate#l41

http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-scm-providers-cvs/maven-scm-provider-cvsexe/src/main/java/org/apache/maven/scm/provider/cvslib/cvsexe/CvsExeScmProvider.java?view=annotate#l41


Do anyone have any hints for me on how I can make the Java based CVS 
integration work?



Thanks in advance,

Knut Forkalsrud