<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>scm-users@maven.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/"/>
<id>http://mail-archives.apache.org/mod_mbox/maven-scm-users/</id>
<updated>2009-12-08T22:27:38Z</updated>
<entry>
<title>SCM CM/Synergy Provider</title>
<author><name>&lt;subir.sasikumar@wipro.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200912.mbox/%3c647BABB6DB048B48AF0B2A659E344E3B026C29E0@HYD-MDP-MBX01.wipro.com%3e"/>
<id>urn:uuid:%3c647BABB6DB048B48AF0B2A659E344E3B026C29E0@HYD-MDP-MBX01-wipro-com%3e</id>
<updated>2009-12-07T08:49:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
 
Hi,
 
Incase i want to customise CM/Synergy provider plugin used with Maven
SCM plugin, what are the minimum steps i should do?
 
Can any of the developers/users tell me some useful steps OR links/urls
to proceed with my coding?
 
I want to know basically how to setup my environment to do some coding
with Maven SCM and/or SCM providers project.
 
I have installed tortoiseSVN (using Windows platform).
 
Regards
Subir

Please do not print this email unless it is absolutely necessary. =0A=
=0A=
The information contained in this electronic message and any attachments to=
 this message are intended for the exclusive use of the addressee(s) and may=
 contain proprietary, confidential or privileged information. If you are not=
 the intended recipient, you should not disseminate, distribute or copy this=
 e-mail. Please notify the sender immediately and destroy all copies of this=
 message and any attachments. =0A=
=0A=
WARNING: Computer viruses can be transmitted via email. The recipient should=
 check this email and any attachments for the presence of viruses. The compa=
ny accepts no liability for any damage caused by any virus transmitted by th=
is email. =0A=
=0A=
www.wipro.com


</pre>
</div>
</content>
</entry>
<entry>
<title>SCM CM/Synergy Provider</title>
<author><name>&lt;subir.sasikumar@wipro.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200912.mbox/%3c647BABB6DB048B48AF0B2A659E344E3B026C29DC@HYD-MDP-MBX01.wipro.com%3e"/>
<id>urn:uuid:%3c647BABB6DB048B48AF0B2A659E344E3B026C29DC@HYD-MDP-MBX01-wipro-com%3e</id>
<updated>2009-12-07T08:46:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
 
Incase i want to customise CM/Synergy provider plugin used with Maven
SCM plugin, what are the minimum steps i should do?
 
Can any of the developers/users tell me some useful steps OR links/urls
to proceed with my coding?
 
I want to know basically how to setup my environment to do some coding
with Maven SCM and/or SCM providers project.
 
I have installed tortoiseSVN (using Windows platform).
 
Regards
Subir

Please do not print this email unless it is absolutely necessary. =0A=
=0A=
The information contained in this electronic message and any attachments to=
 this message are intended for the exclusive use of the addressee(s) and may=
 contain proprietary, confidential or privileged information. If you are not=
 the intended recipient, you should not disseminate, distribute or copy this=
 e-mail. Please notify the sender immediately and destroy all copies of this=
 message and any attachments. =0A=
=0A=
WARNING: Computer viruses can be transmitted via email. The recipient should=
 check this email and any attachments for the presence of viruses. The compa=
ny accepts no liability for any damage caused by any virus transmitted by th=
is email. =0A=
=0A=
www.wipro.com


</pre>
</div>
</content>
</entry>
<entry>
<title>unable to build</title>
<author><name>Roger Pack &lt;rogerdpack2@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200912.mbox/%3c87d974fd0912011452p501d90a0jed623d00c87de351@mail.gmail.com%3e"/>
<id>urn:uuid:%3c87d974fd0912011452p501d90a0jed623d00c87de351@mail-gmail-com%3e</id>
<updated>2009-12-01T22:52:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I was a bit surprised by the following when running the unit tests


-----------------------------------------
Standard error:
-----------------------------------------
C: Unknown Host

rsh.exe: can't establish connection

cvs [checkout aborted]: end of file from server (consult above messages if any)

-----------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 5.016
sec &lt;&lt;&lt; FAILURE!

Results :

Failed tests:
  testCheckOutWithoutTag(org.apache.maven.scm.provider.cvslib.cvsexe.command.checkout.CvsExeCheckoutCommandTest)
  testCheckOutWithTag(org.apache.maven.scm.provider.cvslib.cvsexe.command.checkout.CvsExeCheckoutCommandTest)
  testGetCommandWithStartAndEndDate(org.apache.maven.scm.provider.cvslib.cvsexe.command.changelog.CvsExeChangeLogCommandTest)
  testGetCommandWithoutEndDate(org.apache.maven.scm.provider.cvslib.cvsexe.command.changelog.CvsExeChangeLogCommandTest)
  testGetCommandWithBranchOrTag(org.apache.maven.scm.provider.cvslib.cvsexe.command.changelog.CvsExeChangeLogCommandTest)
  testCvsUpdate(org.apache.maven.scm.provider.cvslib.cvsexe.command.update.CvsExeUpdateCommandTest)

(under windows)

Is this expected?
-r


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: SVN provider uses the commandline svn</title>
<author><name>Olivier Lamy &lt;olamy@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200910.mbox/%3c9948cb690910090206n13d260a0n82b478802ef50e40@mail.gmail.com%3e"/>
<id>urn:uuid:%3c9948cb690910090206n13d260a0n82b478802ef50e40@mail-gmail-com%3e</id>
<updated>2009-10-09T09:06:26Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
Yes you can use this provider [1].
What you can do is to declare your scm connection starting with : scm:javasvn:
But you have to add the provider as a dependency in some plugins
(release, changelog).
Note the release plugin has an option in the configuration to force
using an other provider :

          &lt;providerImplementations&gt;
            &lt;svn&gt;javasvn&lt;/svn&gt;
          &lt;/providerImplementations&gt;

--
Olivier

[1] http://code.google.com/p/maven-scm-provider-svnjava/

2009/10/8 Daniel S Epstein &lt;depstei2@umd.edu&gt;:
&gt; When using the SCM plugin with subversion (scm:svn:http://…) I get errors
&gt; unless the svn executable is installed and in my environment path.
&gt;
&gt; Is there a way to use a pure java svn client?  I tried to use the svnjava
&gt; provider but I was unsure how to configure the scm plugin to use that
&gt; provider.
&gt;
&gt; Thanks,
&gt;
&gt; Daniel
&gt;
&gt;



-- 
Olivier


</pre>
</div>
</content>
</entry>
<entry>
<title>SVN provider uses the commandline svn</title>
<author><name>Daniel S Epstein &lt;depstei2@umd.edu&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200910.mbox/%3c78E5D9564F49EC4FA01AFD4E6C79FDBB012C781F41A0@OITMXCMS02VI.AD.UMD.EDU%3e"/>
<id>urn:uuid:%3c78E5D9564F49EC4FA01AFD4E6C79FDBB012C781F41A0@OITMXCMS02VI-AD-UMD-EDU%3e</id>
<updated>2009-10-08T19:43:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
When using the SCM plugin with subversion (scm:svn:http://...) I get errors unless the svn
executable is installed and in my environment path.
Is there a way to use a pure java svn client?  I tried to use the svnjava provider but I was
unsure how to configure the scm plugin to use that provider.
Thanks,
Daniel



</pre>
</div>
</content>
</entry>
<entry>
<title>Checking in new project from archetype to &quot;trunk&quot; directory</title>
<author><name>&quot;Jamie Townsend&quot; &lt;jtownsen@progress.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200909.mbox/%3c14ACF737A8D6894D95B00DA64AB641DE07BF10BD@MAIL02.bedford.progress.com%3e"/>
<id>urn:uuid:%3c14ACF737A8D6894D95B00DA64AB641DE07BF10BD@MAIL02-bedford-progress-com%3e</id>
<updated>2009-09-01T09:44:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Our Subversion repository follows the following direction convention:
/&lt;groupId&gt;/&lt;artifactId&gt;/[trunk|tags|branches]

 

When a new project is created from an archetype, it is create in a
directory named &lt;artifactId&gt;.  We're struggling to find a way to check
the new project in to Subversion without the need to manually rename the
project directory to "trunk" before adding it to Subversion.  We also
want to avoid the structure: /&lt;groupId&gt;/&lt;artifactId&gt;/trunk/&lt;artifactId&gt;

 

Since the developers all work with M2Eclipse, it would be preferable for
the solution to be seamlessly in Eclipse, but right now any solution
would do.  Note that we haven't found a way to rename the project
directory in Eclipse at all, so perhaps a solution within Eclipse will
not be possible.

 

One thing that may help here is that I think I once saw an archetype
that created multiple projects, but I have no idea now where that was.
In fact we don't need multiple projects, but perhaps there's some trick
in such a setup which would allow us to change the directory created by
M2Eclipse, while keeping the same Project Name as specified as the
&lt;artifactId&gt; during project creation from the archetype.

 

Any suggestions, pointers to other discussions, documents, etc
gratefully received.

 

Cheers,

Jamie



</pre>
</div>
</content>
</entry>
<entry>
<title>Getting the current revision</title>
<author><name>Tomas Pollak &lt;tomas_pollak@yahoo.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200908.mbox/%3c548939.42765.qm@web36508.mail.mud.yahoo.com%3e"/>
<id>urn:uuid:%3c548939-42765-qm@web36508-mail-mud-yahoo-com%3e</id>
<updated>2009-08-28T04:04:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello all,

I'm working in a project with Maven and Mercurial. Is there a way to set some Maven property
with the value of the current changeset?
I want to put this value either in the manifest of the jar or a text file, so that it can
be picked up at runtime.

Thanks in advance,
Tomas


      

</pre>
</div>
</content>
</entry>
<entry>
<title>Encryption for SCM password?</title>
<author><name>KURT TOMETICH &lt;boomtown15@msn.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200908.mbox/%3cSNT112-W48F7C69123D14E7FF39D0DCC020@phx.gbl%3e"/>
<id>urn:uuid:%3cSNT112-W48F7C69123D14E7FF39D0DCC020@phx-gbl%3e</id>
<updated>2009-08-14T15:10:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Is there a way to encrypt the SCM password used in configuration of the SCM plugin?
I've been able to use a clear text password in my settings file, but when I try to
use a Maven encrypted password it doesn't seem to be able to decrypt it on the fly.  
&gt;From checking out the source code for the SCM plugin it doesn't seem that this ability
is there.  Is this something that is on the list for an upcoming release?
 
Kurt


 




</pre>
</div>
</content>
</entry>
<entry>
<title>The role of URLs in the HG plugin</title>
<author><name>Benson Margulies &lt;bimargulies@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200907.mbox/%3c61b5d9410907140419u73c9423ftb986509e0a62343c@mail.gmail.com%3e"/>
<id>urn:uuid:%3c61b5d9410907140419u73c9423ftb986509e0a62343c@mail-gmail-com%3e</id>
<updated>2009-07-14T11:19:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I posted a JIRA about this, but perhaps the mailing list is more appropriate.

I don't understand why the HG plugin requires absolute URLs unless you
explicitly ask it to 'push' or 'pull'. If you are just doing checkins
and the like, the file system pathname defines the entire situation.
This is particularly important insofar as I'd like do to this stuff in
an arbitrary clone which has only a local file: URL, so checking the
URL in is pretty silly.


</pre>
</div>
</content>
</entry>
<entry>
<title>SCM SVN Provider fails on Windows with cygwin/svn because of &quot;C:/&quot; prefix</title>
<author><name>Ovidiu Feodorov &lt;ovidiu@novaordis.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200906.mbox/%3c4A493627.7010201@novaordis.com%3e"/>
<id>urn:uuid:%3c4A493627-7010201@novaordis-com%3e</id>
<updated>2009-06-29T21:46:15Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I know this is not a new problem, I found several JIRA issues related to 
it (SCM-213 &lt;http://jira.codehaus.org/browse/SCM-213&gt;, for example), all 
reported "Resolved", but yet I am using Maven SCM 1.2 and the 2.0 Beta 9 
release plug-in and , and I am still seeing it.

This is what happens in my case:

I am running mvn release:prepare for a multi-module project, (cygwin, 
Windows) and the operation fails with:

    [INFO] Checking in modified POMs...
    [INFO] Executing: cmd.exe /X /C "svn --non-interactive commit --file
    c:\Users\ovidiu\AppData\Local\Temp\maven-scm-1114844030.commit
    --targets c:\Users\ovidiu\AppData\Local\Temp\maven-scm-59263-targets"
    [INFO] Working directory:
    c:\work\playground\maven\release-plugin-experiments
    [INFO]
    ------------------------------------------------------------------------
    [ERROR] BUILD FAILURE
    [INFO]
    ------------------------------------------------------------------------
    [INFO] Unable to commit files
    Provider message:
    The svn command failed.
    Command output:
    svn:
    '/cygdrive/c/work/playground/maven/release-plugin-experiments/C:' is
    not a working copy
    svn: Can't open file
    '/cygdrive/c/work/playground/maven/release-plugin-experiments/C:/.svn/entries':
    No such file or directory

The temporary file maven-scm-xxxxx-targets contains

    c:/work/playground/maven/release-plugin-experiments/pom.xml
    C:/work/playground/maven/release-plugin-experiments/sub-module-one/pom.xml


which confuses svn. C:/work/playground/maven/release-plugin-experiments 
is the correct project home, cygwin svn is bothered by the C:/ prefix. 

It seems quite obvious that this could be handled by cygwin svn, but I 
believe it could also be worked around from the Maven layer, with 
minimum of effort, especially that Maven SCM already has Cygwin-related 
configuration options. If Maven would generate maven-scm-xxxxx-targets 
to contain cygwin paths Windows paths, that would quell svn.

The file list in maven-scm-xxxxx-targets is generated by 
org.apache.maven.scm.provider.svn.svnexe.command.SvnCommandLineUtils.addTargets() 
(https://svn.apache.org/repos/asf/maven/scm/tags/maven-scm-1.2/maven-scm-providers/maven-scm-providers-svn/maven-scm-provider-svnexe/src/main/java/org/apache/maven/scm/provider/svn/svnexe/command/SvnCommandLineUtils.java).

SvnCommandLineUtils.addTargets() could take into consideration 
Cygwin-related  &lt;svn-settings&gt; (&lt;useCygwinPath&gt; and &lt;cygwinMountPath&gt;) 
and build the paths accordingly. &lt;useCygwinPath&gt; and &lt;cygwinMountPath&gt; 
are already there, and this was probably the hardest part  (see 
http://maven.apache.org/scm/subversion.html).

If you think this is a sensible solution that'll make the life of the 
developers easier, and are willing to apply it, I'll submit the patch.

Or, it is also quite possible that I am totally missing something 
obvious here, and I will be happy to be guided to the right path.

Cheers,
Ovidiu



</pre>
</div>
</content>
</entry>
<entry>
<title>SCM svn implementation, working partially (help with configuration)</title>
<author><name>Edgar Merino &lt;donvodka@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200906.mbox/%3c4A3C30A8.6020705@gmail.com%3e"/>
<id>urn:uuid:%3c4A3C30A8-6020705@gmail-com%3e</id>
<updated>2009-06-20T00:43:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello,

    recently I tried to configure a project to use the svn 
implementation of the SCM plugin, however it seems to be partially 
working, since, for example, issuing the command "mvn scm:update" 
results in this output:

[INFO] Scanning for projects...
[INFO] 
------------------------------------------------------------------------
[INFO] Building pivot-wtk-svn
[INFO]    task-segment: [scm:update] (aggregator-style)
[INFO] 
------------------------------------------------------------------------
[INFO] [scm:update]
[INFO] Executing: /bin/sh -c cd 
/home/oso/Programación/java/pivot-wtk-svn &amp;&amp; svn --non-interactive 
update /home/oso/Programación/java/pivot-wtk-svn
[INFO] Working directory: /home/oso/Programación/java/pivot-wtk-svn
[INFO] Storing revision in 'scm.revision' project property.
[INFO] Project at revision 0
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Fri Jun 19 19:40:40 CDT 2009
[INFO] Final Memory: 14M/120M
[INFO] 
------------------------------------------------------------------------

    As you can see, it doesn't update sources, I had some trouble in 
finding good documentation on how to configure the plugin, so I might 
have missed something, here's my pom.xml file:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;project xmlns="http://maven.apache.org/POM/4.0.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;pivot-svn&lt;/groupId&gt;
    &lt;artifactId&gt;pivot-wtk-svn&lt;/artifactId&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;version&gt;1.2-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;pivot-wtk-svn&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
    &lt;scm&gt;

        
&lt;connection&gt;scm:svn:http://svn.apache.org/repos/asf/incubator/pivot/trunk/core&lt;/connection&gt;

        &lt;tag&gt;HEAD&lt;/tag&gt;

    &lt;/scm&gt;

    &lt;build&gt;
        &lt;resources&gt;
            &lt;resource&gt;
                &lt;directory&gt;src/main/resources&lt;/directory&gt;
            &lt;/resource&gt;
            &lt;resource&gt;
                &lt;directory&gt;src/main/java&lt;/directory&gt;
                &lt;includes&gt;
                    &lt;include&gt;**&lt;/include&gt;
                &lt;/includes&gt;
                &lt;excludes&gt;
                    &lt;exclude&gt;**/*.java&lt;/exclude&gt;
                &lt;/excludes&gt;
            &lt;/resource&gt;
        &lt;/resources&gt;
        &lt;plugins&gt;
            &lt;plugin&gt;
                &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                &lt;version&gt;2.0.2&lt;/version&gt;
                &lt;configuration&gt;
                    &lt;source&gt;1.5&lt;/source&gt;
                    &lt;target&gt;1.5&lt;/target&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt;
            &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-scm-plugin&lt;/artifactId&gt;
                &lt;version&gt;1.1&lt;/version&gt;


            &lt;/plugin&gt;

        &lt;/plugins&gt;
    &lt;/build&gt;
    &lt;dependencies&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;junit&lt;/groupId&gt;
            &lt;artifactId&gt;junit&lt;/artifactId&gt;
            &lt;version&gt;3.8.1&lt;/version&gt;
            &lt;scope&gt;test&lt;/scope&gt;
        &lt;/dependency&gt;
        &lt;dependency&gt;
            &lt;groupId&gt;pivot-svn&lt;/groupId&gt;
            &lt;artifactId&gt;pivot-core-svn&lt;/artifactId&gt;
            &lt;version&gt;1.2-SNAPSHOT&lt;/version&gt;
            &lt;scope&gt;compile&lt;/scope&gt;
        &lt;/dependency&gt;
    &lt;/dependencies&gt;
&lt;/project&gt;


    Any help will be greatly appreciated!

Thanks in advance,
Edgar Merino


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: How to set up SCM/CVS/Maven integration with public key authentication (need help!)?</title>
<author><name>Matt Brown &lt;Matt.Brown@citrixOnline.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200906.mbox/%3c44B76DF56DE7A843BB5E8109DC4EEB12050BE02DFB@sbapexch05%3e"/>
<id>urn:uuid:%3c44B76DF56DE7A843BB5E8109DC4EEB12050BE02DFB@sbapexch05%3e</id>
<updated>2009-06-15T18:16:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
For anyone who runs into this problem in the future:

After downloading the scm plugin source, I discovered that the plugin is using an empty string
for the passphrase when authenticating with a public key.

To tell the scm/CVS plugin the correct passphrase to use, you need to set a System property
for the key "maven.scm.cvs.java.ssh.passphrase", i.e.

    mvn scm:status -Dmaven.scm.cvs.java.ssh.passphrase=&lt;my passphrase&gt;


A little disappointing that the system properties the CVS/SCM plugin uses aren't mentioned
in the documentation for the plugin.

 

-----Original Message-----
From: Matt Brown [mailto:Matt.Brown@citrixOnline.com] 
Sent: Friday, June 12, 2009 12:14 PM
To: scm-users@maven.apache.org
Subject: How to set up SCM/CVS/Maven integration with public key authentication (need help!)?

I have a &lt;scm&gt; section in a POM that looks something like this:
 
	&lt;scm&gt;
		&lt;connection&gt;scm:cvs:ext:myhostname:/cvsroot/repo:module_name&lt;/connection&gt;
	&lt;/scm&gt;


I typically use publickey auth to authentication against this cvs server, although it should
accept my password as well.

When I attempt to run 'mvn scm:update', 'mvn release:prepare', or any Maven goal that involves
connecting to this scm, I get the following failure:

[INFO] Executing: cmd.exe /X /C "cvs -z3 -f -q update -d"
[INFO] Working directory: C:\Documents and Settings\matt.brown\workspace\projectname
org.netbeans.lib.cvsclient.connection.AuthenticationException: Cannot authenticate. Reason:
Publickey authentication failed.
        at org.apache.maven.scm.provider.cvslib.cvsjava.util.ExtConnection.open(ExtConnection.java:136)
        at org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.connect(CvsConnection.java:166)
        at org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.processCommand(CvsConnection.java:498)
        at org.apache.maven.scm.provider.cvslib.cvsjava.command.update.CvsJavaUpdateCommand.executeCvsCommand(CvsJavaUpdateCommand.java:53)
        at org.apache.maven.scm.provider.cvslib.command.update.AbstractCvsUpdateCommand.executeUpdateCommand(AbstractCvsUpdateCommand.java:78)
        at org.apache.maven.scm.command.update.AbstractUpdateCommand.executeCommand(AbstractUpdateCommand.java:63)
        at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
        at org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.executeCommand(AbstractCvsScmProvider.java:750)
        at org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.update(AbstractCvsScmProvider.java:348)
        at org.apache.maven.scm.provider.AbstractScmProvider.update(AbstractScmProvider.java:821)
        at org.apache.maven.scm.provider.AbstractScmProvider.update(AbstractScmProvider.java:770)
        at org.apache.maven.scm.manager.AbstractScmManager.update(AbstractScmManager.java:526)
        at org.apache.maven.scm.plugin.UpdateMojo.execute(UpdateMojo.java:89)
(lots more of the stacktrace....)


And further down in the stacktrace:

Caused by: java.io.IOException: Decrypted PEM has wrong padding, did you specify the correct
password?
        at ch.ethz.ssh2.crypto.PEMDecoder.removePadding(PEMDecoder.java:109)
        at ch.ethz.ssh2.crypto.PEMDecoder.decryptPEM(PEMDecoder.java:286)
        at ch.ethz.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:319)

Followed by:

[ERROR] Provider message:
[ERROR] The cvs command failed.
[ERROR] Command output:



I'm running this on a Windows machine, with no cvs executable on the PATH. I do have my public
key available under $HOME/.ssh, but it doesn't seem as if cvs/maven/scm is loading it here
- as I'm not asked for the keyphrase for it.

So, I have a few questions:

1. How do I properly tell maven when using scm where my public key resides? Do I need to do
it explicitly?
2. From the stacktrace, does it look as if this is even the correct error - or is something
else going on? I can see traffic exchanged between my machine and the CVS host when I run
this command if I use wireshark, so I know some sort of communication is going on.

Thanks

</pre>
</div>
</content>
</entry>
<entry>
<title>How to set up SCM/CVS/Maven integration with public key authentication (need help!)?</title>
<author><name>Matt Brown &lt;Matt.Brown@citrixOnline.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200906.mbox/%3c44B76DF56DE7A843BB5E8109DC4EEB12050A493511@sbapexch05%3e"/>
<id>urn:uuid:%3c44B76DF56DE7A843BB5E8109DC4EEB12050A493511@sbapexch05%3e</id>
<updated>2009-06-12T16:13:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I have a &lt;scm&gt; section in a POM that looks something like this:
 
	&lt;scm&gt;
		&lt;connection&gt;scm:cvs:ext:myhostname:/cvsroot/repo:module_name&lt;/connection&gt;
	&lt;/scm&gt;


I typically use publickey auth to authentication against this cvs server, although it should
accept my password as well.

When I attempt to run 'mvn scm:update', 'mvn release:prepare', or any Maven goal that involves
connecting to this scm, I get the following failure:

[INFO] Executing: cmd.exe /X /C "cvs -z3 -f -q update -d"
[INFO] Working directory: C:\Documents and Settings\matt.brown\workspace\projectname
org.netbeans.lib.cvsclient.connection.AuthenticationException: Cannot authenticate. Reason:
Publickey authentication failed.
        at org.apache.maven.scm.provider.cvslib.cvsjava.util.ExtConnection.open(ExtConnection.java:136)
        at org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.connect(CvsConnection.java:166)
        at org.apache.maven.scm.provider.cvslib.cvsjava.util.CvsConnection.processCommand(CvsConnection.java:498)
        at org.apache.maven.scm.provider.cvslib.cvsjava.command.update.CvsJavaUpdateCommand.executeCvsCommand(CvsJavaUpdateCommand.java:53)
        at org.apache.maven.scm.provider.cvslib.command.update.AbstractCvsUpdateCommand.executeUpdateCommand(AbstractCvsUpdateCommand.java:78)
        at org.apache.maven.scm.command.update.AbstractUpdateCommand.executeCommand(AbstractUpdateCommand.java:63)
        at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCommand.java:59)
        at org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.executeCommand(AbstractCvsScmProvider.java:750)
        at org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.update(AbstractCvsScmProvider.java:348)
        at org.apache.maven.scm.provider.AbstractScmProvider.update(AbstractScmProvider.java:821)
        at org.apache.maven.scm.provider.AbstractScmProvider.update(AbstractScmProvider.java:770)
        at org.apache.maven.scm.manager.AbstractScmManager.update(AbstractScmManager.java:526)
        at org.apache.maven.scm.plugin.UpdateMojo.execute(UpdateMojo.java:89)
(lots more of the stacktrace....)


And further down in the stacktrace:

Caused by: java.io.IOException: Decrypted PEM has wrong padding, did you specify the correct
password?
        at ch.ethz.ssh2.crypto.PEMDecoder.removePadding(PEMDecoder.java:109)
        at ch.ethz.ssh2.crypto.PEMDecoder.decryptPEM(PEMDecoder.java:286)
        at ch.ethz.ssh2.crypto.PEMDecoder.decode(PEMDecoder.java:319)

Followed by:

[ERROR] Provider message:
[ERROR] The cvs command failed.
[ERROR] Command output:



I'm running this on a Windows machine, with no cvs executable on the PATH. I do have my public
key available under $HOME/.ssh, but it doesn't seem as if cvs/maven/scm is loading it here
- as I'm not asked for the keyphrase for it.

So, I have a few questions:

1. How do I properly tell maven when using scm where my public key resides? Do I need to do
it explicitly?
2. From the stacktrace, does it look as if this is even the correct error - or is something
else going on? I can see traffic exchanged between my machine and the CVS host when I run
this command if I use wireshark, so I know some sort of communication is going on.

Thanks

</pre>
</div>
</content>
</entry>
<entry>
<title>Switch off CVS log messages</title>
<author><name>&quot;Berwanger, Christian&quot; &lt;christian.berwanger@logica.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200904.mbox/%3c6066C0104D147143AE14183367D21C33015537DD@de-ex012.groupinfra.com%3e"/>
<id>urn:uuid:%3c6066C0104D147143AE14183367D21C33015537DD@de-ex012-groupinfra-com%3e</id>
<updated>2009-04-24T16:44:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

 

I have a problem that I want to switch off the fetch of cvs log
messages. I found in the SCM API following function at the class
CvsLogListener:

 

    /**

     * Called when the server wants to send a message to be displayed to
the

     * user. The message is only for information purposes and clients
can

     * choose to ignore these messages if they wish.

     *

     * {@inheritDoc}

     */

    public void messageSent( MessageEvent e )

    {

        String line = e.getMessage();

        StringBuffer stream = e.isError() ? stderr : stdout;

 

        if ( e.isTagged() )

        {

            String message = MessageEvent.parseTaggedMessage(
taggedLine, e.getMessage() );

            if ( message != null )

            {

                //stream.println(message);

                stream.append( message ).append( "\n" );

 

            }

        }

        else

        {

            //stream.println(line);

            stream.append( line ).append( "\n" );

 

        }

    }

 

 

How you see in the comment of the function the capture of that messages
could be switch off. But I didn't found anywhere a comment how this can
be achieved.

 

Thx for answering.

 

Christian



Please help Logica to respect the environment by not printing this email  / Pour contribuer
comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail /  Bitte drucken
Sie diese Nachricht nicht aus und helfen Sie so Logica dabei die Umwelt zu schuetzen  /  Por
favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It
may contain proprietary material, confidential information and/or be subject to legal privilege.
It should not be copied, disclosed to, retained or used by, any other party. If you are not
an intended recipient then please promptly delete this e-mail and any attachment and all copies
and inform the sender. Thank you.



</pre>
</div>
</content>
</entry>
<entry>
<title>[ANNOUNCE] Maven Scm 1.2 Release</title>
<author><name>Olivier Lamy &lt;olamy@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200903.mbox/%3c9948cb690903281031v1d4bbb78g6491c4c6bf4ea2eb@mail.gmail.com%3e"/>
<id>urn:uuid:%3c9948cb690903281031v1d4bbb78g6491c4c6bf4ea2eb@mail-gmail-com%3e</id>
<updated>2009-03-28T17:31:44Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
The Maven team is pleased to announce the release of Maven Scm, version 1.2

Release Notes - Maven SCM - Version 1.2


** Bug
    * [SCM-246] - p4 command reports most or all errors on stderr but
maven-scm-provider-perforce throws away stderr
    * [SCM-252] - ClearCaseUpdateConsumer  for I18N
    * [SCM-262] - scm:tag for subversion tagging from local version of
code, not directly from repository
    * [SCM-313] - baazar : Check out command fails to report an error
    * [SCM-332] - Perforce provider give one changeset entry for each file
    * [SCM-346] - Recursive flag is not implemented in the check out command
    * [SCM-357] - UCM config_spec are not managed correctly
    * [SCM-360] - CVS Tag command doesn't use FileSet (list of files),
tagging ALL files in working directory
    * [SCM-375] - Problems with svn export and &lt;exportDirectory&gt;
    * [SCM-383] - SVN Tag does not use includes/excludes parameters
    * [SCM-403] - git scm:update command currently only works on the
branch 'master'
    * [SCM-406] - scm tag does not work with Subversion 1.5.1
    * [SCM-409] - Windows path length limitations can be overcome by
feeding an absolute path to SVN (checkout command)
    * [SCM-415] - 1.1 requires setting a Perforce password breaking
Perforce setup for external authentication
    * [SCM-417] - PerforceDiffCommand uses "head" instead of "now"
pseudo-revision
    * [SCM-421] - After update working directory is not updated:
missing hg update command
    * [SCM-432] - Goal scm:export does not work for Subversion repository
    * [SCM-433] - SvnInfoCommand  should allow option to set working directory
    * [SCM-436] - Remove setting working directory in export command
api. Working directory has no meaning to export command
    * [SCM-440] - &lt;includes&gt; and &lt;excludes&gt; do not seem to work
correctly during scm:update
    * [SCM-441] - NPE when using Git SCM 1.2-SNAPSHOT
    * [SCM-443] - perforce provider : login failure must be displayed
    * [SCM-451] - NPE when file list is empty

** Improvement
    * [SCM-339] - Need documentation on how to configure path to
ss.exe for VSS provider
    * [SCM-343] - Changelog can be generated with only an end-tag
    * [SCM-361] - make cvs tag -F  optional
    * [SCM-408] - Support the CVSNT "sserver" protocol
    * [SCM-428] - url syntax not good enough for the git scm provider

** New Feature
    * [SCM-437] - Add option to using export rather checkout at
boostrap mojo this is for performance purpose
    * [SCM-438] - support skipExportIfExists similar to checkout
    * [SCM-448] - CheckInScmResult could return the scm revision (at
least for svn provider)
    * [SCM-450] - Add a mojo to check for up to date local checkout

** Task
    * [SCM-410] - Replace deprecated Commandline#createArgument()
    * [SCM-411] - Performance: logger calls are not optimal

** Test
    * [SCM-404] - tgit scm:update does not have TCK Test yet
    * [SCM-407] - git scm:changelog does not have TCK Test yet

Have Fun!

-The Maven team


</pre>
</div>
</content>
</entry>
<entry>
<title>RE: SCM and CVS Export</title>
<author><name>&quot;Winterflood, Jonathan&quot; &lt;jonathan.winterflood@capgemini.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200903.mbox/%3c9FD178D09DF6AC43B2FF313CFB0D11ED02F0A118@CORPMAIL33.corp.capgemini.com%3e"/>
<id>urn:uuid:%3c9FD178D09DF6AC43B2FF313CFB0D11ED02F0A118@CORPMAIL33-corp-capgemini-com%3e</id>
<updated>2009-03-09T11:07:38Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi Mary,

 

I think you are looking for the scm:bootstrap goal.

http://maven.apache.org/scm/plugins/index.html

 

It also seems like you might be misunderstanding the way to use Maven (understandably, due
to your experience with Ant):

 

Ant, AFAIK, is basically a way of expressing scripts.

Maven, however, describes the project so that plugins can do the work previously done by your
scripts.

 

With this in mind, I think you should be doing the following:

Create a POM _in_ your project, so that building it will work (locally, independent of the
source-fetching problem)

 

Then, for your fetch+build problem, do the following:

*	Either bootstrap from the POM (fetch the tag's POM manually, then exec mvn scm:bootstrap
on it), this will require you to:

	*	Setup the scm elements (&lt;scm&gt;&lt;connection&gt;scm:svn:svn://host....&lt;/&lt;/)
in the POM.
	*	Fill in the scm plugin configuration so it knows what goals to run (if not the default
goal)

 

*	Or bootstrap manually, by specifying the needed elements on the command line (mvn scm:bootstrap
-Dparam=value ...)

 

HTH

 

Regards,

Jonathan Winterflood

Capgemini Ouest

________________________________

De : Hunt, Mary [mailto:mary.hunt@yale.edu] 
Envoyé : vendredi 6 mars 2009 11:20
À : scm-users@maven.apache.org
Cc : Hunt, Mary
Objet : SCM and CVS Export

 

I am new to Maven2, and but am an experienced Ant user.  I am trying to write a pom that will
do the following:

1.  Export source from CVS repository based on a tag

2.  Compile and package the exported source.

 

I have 2 problems.

1.  When I export the source from CVS it creates a duplicate folder structure.  See below...

                              &lt;plugin&gt;

              &lt;artifactId&gt;maven-scm-plugin&lt;/artifactId&gt;

             &lt;!-- &lt;configuration&gt;

                &lt;skipCheckoutIfExists&gt;true&lt;/skipCheckoutIfExists&gt;

              &lt;/configuration&gt;

            --&gt;

              &lt;executions&gt;

 

                &lt;execution&gt;

                  &lt;id&gt;fetch-feature&lt;/id&gt;

                  &lt;phase&gt;generate-sources&lt;/phase&gt;

                  &lt;goals&gt;

                    &lt;goal&gt;export&lt;/goal&gt;

                  &lt;/goals&gt;

                  &lt;configuration&gt;

                    &lt;connectionType&gt;developerConnection&lt;/connectionType&gt;

                    &lt;exportDirectory&gt;target\exported-sources&lt;/exportDirectory&gt;

                    &lt;scmVersion&gt;${exportTag}&lt;/scmVersion&gt;

                    &lt;scmVersionType&gt;tag&lt;/scmVersionType&gt;

                  &lt;/configuration&gt;

                &lt;/execution&gt;

 

              &lt;/executions&gt;

            &lt;/plugin&gt;

 

The exported source ends up in target\exported-sources\target\exported-sources.  I would expect
that it would end up in target/exported-sources.

The working directory indicated at this time is:  Working directory: C:\Projects\Maven\cimp-app\target\exported-sources
(which is now empty except for a new target directory.

 

2.  What I really want to happen at this point is for the remainder of the build to operate
on the exported sources, but that is not happening.  I end up having to run my mvn package
command separately on the pom in the target\exported-sources\target\exported-sources.  With
ant, I did not have this issue, and I think I am stuck in some wrong-thinking about how to
use maven2.

 

Any suggestions would be appreciated.

 

Mary Hunt 
Technical Lead, Application Development 
Enterprise Development Services 
Information Technology Services, Yale University 
25 Science Park - 4th Floor 
New Haven, Connecticut 06511

voice: 203-436-3961 
fax: 203-436-4064 
web: http://www.yale.edu/its/web/ 

 

&lt;/PRE&gt;&lt;p style="font-family:arial;color:grey" style="font-size:13px"&gt;This message
contains information that may be privileged or confidential and is the property of the Capgemini
Group. It is intended only for the person to whom it is addressed. If you are not the intended
recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or
use this message or any part thereof. If you receive this message in error, please notify
the sender immediately and delete all copies of this message.&lt;/p&gt;&lt;PRE&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>SCM and CVS Export</title>
<author><name>&quot;Hunt, Mary&quot; &lt;mary.hunt@yale.edu&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200903.mbox/%3c6E13DE45AB90A044908D2EA5F268EC1957777664BB@XVS1-CLUSTER.yu.yale.edu%3e"/>
<id>urn:uuid:%3c6E13DE45AB90A044908D2EA5F268EC1957777664BB@XVS1-CLUSTER-yu-yale-edu%3e</id>
<updated>2009-03-06T10:19:58Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I am new to Maven2, and but am an experienced Ant user.  I am trying to write a pom that will
do the following:
1.  Export source from CVS repository based on a tag
2.  Compile and package the exported source.

I have 2 problems.
1.  When I export the source from CVS it creates a duplicate folder structure.  See below...
                              &lt;plugin&gt;
              &lt;artifactId&gt;maven-scm-plugin&lt;/artifactId&gt;
             &lt;!-- &lt;configuration&gt;
                &lt;skipCheckoutIfExists&gt;true&lt;/skipCheckoutIfExists&gt;
              &lt;/configuration&gt;
            --&gt;
              &lt;executions&gt;

                &lt;execution&gt;
                  &lt;id&gt;fetch-feature&lt;/id&gt;
                  &lt;phase&gt;generate-sources&lt;/phase&gt;
                  &lt;goals&gt;
                    &lt;goal&gt;export&lt;/goal&gt;
                  &lt;/goals&gt;
                  &lt;configuration&gt;
                    &lt;connectionType&gt;developerConnection&lt;/connectionType&gt;
                    &lt;exportDirectory&gt;target\exported-sources&lt;/exportDirectory&gt;
                    &lt;scmVersion&gt;${exportTag}&lt;/scmVersion&gt;
                    &lt;scmVersionType&gt;tag&lt;/scmVersionType&gt;
                  &lt;/configuration&gt;
                &lt;/execution&gt;

              &lt;/executions&gt;
            &lt;/plugin&gt;

The exported source ends up in target\exported-sources\target\exported-sources.  I would expect
that it would end up in target/exported-sources.
The working directory indicated at this time is:  Working directory: C:\Projects\Maven\cimp-app\target\exported-sources
(which is now empty except for a new target directory.

2.  What I really want to happen at this point is for the remainder of the build to operate
on the exported sources, but that is not happening.  I end up having to run my mvn package
command separately on the pom in the target\exported-sources\target\exported-sources.  With
ant, I did not have this issue, and I think I am stuck in some wrong-thinking about how to
use maven2.

Any suggestions would be appreciated.

Mary Hunt
Technical Lead, Application Development
Enterprise Development Services
Information Technology Services, Yale University
25 Science Park - 4th Floor
New Haven, Connecticut 06511
voice: 203-436-3961
fax: 203-436-4064
web: http://www.yale.edu/its/web/



</pre>
</div>
</content>
</entry>
<entry>
<title>How to move files without losing its history?</title>
<author><name>&quot;Markus KARG&quot; &lt;markus.karg@gmx.net&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200902.mbox/%3c009401c99988$cc106bc0$64314340$@karg@gmx.net%3e"/>
<id>urn:uuid:%3c009401c99988$cc106bc0$64314340$@karg@gmx-net%3e</id>
<updated>2009-02-28T09:41:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Dear SCM Community,

 

I am writing a custom plugin, and I need to move a file from one location on
the harddisk to another, but the SCM history shall not get lost. So instead
of just using simple Java File API I want to use SCM API, since I know that
e. g. Subversion is able to perform such a local operation (svn move
command, or svn copy plus svn remove commands) and SCM supports Subversion.

 

So my question is: What are the correct SCM API commands to perform (in the
end) something like "svn move" on my local disk?

 

Thanks a lot!

Markus

 

 



</pre>
</div>
</content>
</entry>
<entry>
<title>CVS export produces duplicate folder structures</title>
<author><name>&quot;Busch Paul&quot; &lt;Paul.Busch@Cirquent.de&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200902.mbox/%3c92B263726041E040A15EA65B7869DA4B02657963@CGN-EX-02.de.softlab.net%3e"/>
<id>urn:uuid:%3c92B263726041E040A15EA65B7869DA4B02657963@CGN-EX-02-de-softlab-net%3e</id>
<updated>2009-02-16T18:56:30Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi there,

I'm trying to use scm to export an XML Schema from cvs to generate
source code from it. As of now I can export the file but there are some
weirdnesses that keep me from using it in a real world application.

I use the following plugin configuration to export via scm:

&lt;plugin&gt;
	&lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
	&lt;artifactId&gt;maven-scm-plugin&lt;/artifactId&gt;
	&lt;version&gt;1.1&lt;/version&gt;
	&lt;configuration&gt;
		&lt;!--&lt;basedir&gt;.&lt;/basedir&gt;--&gt;
		&lt;connectionType&gt;custom&lt;/connectionType&gt;
		&lt;!--&lt;workingDirectory&gt;.&lt;/workingDirectory&gt;--&gt;
	
&lt;exportDirectory&gt;target\exported-sources\xsd&lt;/exportDirectory&gt;
		&lt;connectionUrl&gt;
scm:cvs:pserver:user:password@host:/data/cvsroot/repository:my/schema/di
rectory/in/cvs
		&lt;/connectionUrl&gt;
		&lt;developerConnectionUrl&gt;
scm:cvs:pserver:user:password@host:/data/cvsroot/repository:my/schema/di
rectory/in/cvs
		&lt;/developerConnectionUrl&gt;
		&lt;scmVersion&gt;MY_BRANCH&lt;/scmVersion&gt;
		&lt;scmVersionType&gt;branch&lt;/scmVersionType&gt;
		&lt;includes&gt;schema.xsd&lt;/includes&gt;
	&lt;/configuration&gt;
	&lt;executions&gt;
		&lt;execution&gt;
			&lt;id&gt;Export schema files for generation&lt;/id&gt;
			&lt;goals&gt;
				&lt;goal&gt;export&lt;/goal&gt;
			&lt;/goals&gt;
			&lt;phase&gt;initialize&lt;/phase&gt;
		&lt;/execution&gt;
	&lt;/executions&gt;
&lt;/plugin&gt;

The scm plugin is configured to execute its export goal automatically in
the initialize phase. I set both a connectionUrl and a
developerConnectionUrl because the repository I want to export from has
nothing to do with the repository used for my project. Therefore I also
set the connectionType to "custom". Configuring the scmVersion and
scmVersionType seem to work well, too.

With the configuration above the build will succeed and the relevant
output from saying mvn initialize would be something like:

[INFO] Executing: cmd.exe /X /C "cvs -z3 -f -d
:pserver:user:password@host:/dat
a/cvsroot/repository:my/schema/directory/in/cvs -q export -rMY_BRANCH -d
target
\exported-sources\xsd "my/schema/directory/in/cvs""
[INFO] Working directory: C:\checkout\myproj\target\exported-sources\xsd

The exported file will end up in
target/exported-sources/xsd/target/exported-sources/xsd instead of
target/exported-sources/xsd where I wanted them.

And this is where I don't understand the configuration any more:

(1) Whatever I do, when I use slashes instead of backslashes in
exportDirectory the build will fail. I'm on windows, so backslashes are
fine for me, but I thought to be cross platform compatible slashes would
be appropriate.
(2) Although basedir is not optional I can omit it with no problems.
Whatever value I set it to, it does not seem to get used anyway. Which
information should this parameter actually convey?
(3) The same for workingDirectory. It does not seem to get used either.
(4) The value from exportDirectory seems to get used twice, firstly as
the value -d parameter for the cvs command and secondly to chdir to the
working directory as can be seen from the second info message. This
might be the reason for the duplicated output directory structure.

Is there a bug in the cvs provider that causes the exportDirectory to be
used twice? Am I missing something? Or am I simply abusing the scm
plugin for things that I can't expect to work?
Any help will be highly appreciated.
Best Regards

Paul


</pre>
</div>
</content>
</entry>
<entry>
<title>How to list the maven final output without executing the actual build process</title>
<author><name>Atul.Bhingarde@harlandclarke.com</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200902.mbox/%3cOF5CCA1EC8.6D6D70E8-ON85257559.00537859-85257559.00543D4A@harlandclarke.com%3e"/>
<id>urn:uuid:%3cOF5CCA1EC8-6D6D70E8-ON85257559-00537859-85257559-00543D4A@harlandclarke-com%3e</id>
<updated>2009-02-10T15:20:07Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

We have a process that creates the maven artifact in the development stage.

Later for the packaging and/or direct deployment we want to refer to the
same output (but without recreating the artifact.).

How can I do that with maven ?

for example maven (actual build process) creates the output as
abc.build_number.ear

I want to list that (abc.build_number.ear ) without executing the actual
build (that is using certain command line parameter) like a dry run
(indicating this is what you will generate if you execute the actual build)

I do not want to recreate the artifact (abc.build_number.ear) though.

Thanks

Atul


CONFIDENTIALITY NOTICE:  The information contained in this message is intended only for the
recipient and may contain information that is confidential. If you are not the intended recipient
or an employee or agent responsible for delivering this message to the intended recipient;
please be aware that any dissemination, forwarding, printing, copying, disclosure or distribution
of this communication is strictly prohibited.  If you have received this communication in
error, please immediately notify the sender
by replying to the message and deleting all copies, including attachments, from your system.


</pre>
</div>
</content>
</entry>
<entry>
<title>Hegde, Ramdas is out of the office.</title>
<author><name>Ramdas.Hegde@seagate.com</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200901.mbox/%3cOF9F420706.318EC417-ON88257538.0065D6B3-88257538.0065D6B4@seagate.com%3e"/>
<id>urn:uuid:%3cOF9F420706-318EC417-ON88257538-0065D6B3-88257538-0065D6B4@seagate-com%3e</id>
<updated>2009-01-08T18:32:21Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

I will be out of the office starting  12/22/2008 and will not return until
01/12/2009.




</pre>
</div>
</content>
</entry>
<entry>
<title>SCM SVN changelog Pattern does not match</title>
<author><name>&quot;Todd Thiessen&quot; &lt;thiessen@nortel.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200901.mbox/%3cDE36A88276CCF042AC2721634CB3574607830186@zcarhxm2.corp.nortel.com%3e"/>
<id>urn:uuid:%3cDE36A88276CCF042AC2721634CB3574607830186@zcarhxm2-corp-nortel-com%3e</id>
<updated>2009-01-06T15:52:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
When running an mvn scm:changelog command I was not getting any result
indicating the changes that I have made to my project. Since I would
like to include a change log report in my project, I decided to dig into
this further to see if I could find out why.

It looks like scm:changelog does not properly match the svn output of
Subversion 1.5.4.  The header line for this command looks something like
this:

r69 | firstname lastname (username) | 2008-12-23 14:04:38 -0500 (Tue, 23
Dec 2008) | 1 line

Most of this output should be self explanatory.

The regular expression to match the SVN header is:

private static final String PATTERN2 = "^r(\\d+)\\s+\\|\\s+" +
// revision number
        "(\\(\\S+\\s+\\S+\\)|\\S+)\\s+\\|\\s+" + // author username
        "(\\d+-\\d+-\\d+ " +             // date 2002-08-24
        "\\d+:\\d+:\\d+) " +             // time 16:01:00
        "([\\-+])(\\d\\d)(\\d\\d)";      // gmt offset -0400

The author username section of this regular expression does not match
the output I get.

Can anyone else confirm this is an issue?

---
Todd Thiessen


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: [URGENT] How make maintenance release from release branch using GIT SCM</title>
<author><name>&quot;Imran M Yousuf&quot; &lt;imyousuf@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200811.mbox/%3c7bfdc29a0811120124v6620a6dx50dc90b10349cb7e@mail.gmail.com%3e"/>
<id>urn:uuid:%3c7bfdc29a0811120124v6620a6dx50dc90b10349cb7e@mail-gmail-com%3e</id>
<updated>2008-11-12T09:24:14Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Wed, Nov 12, 2008 at 12:39 PM, Imran M Yousuf &lt;imyousuf@gmail.com&gt; wrote:
&gt; Hi,
&gt;
&gt; I have a project (http://repo.or.cz/w/smart-dao.git) where I have 2
&gt; working branches (master and release-0.3). Now I want to make a
&gt; maintenance release (release-0.3) so I am doing it from the
&gt; appropriate branch. Now when I do 'mvn release:prepare' it succeeds.
&gt; But when I do 'mvn release:perform' it fails.
&gt;

Currently I am doing the release:perform manually by hand. I would
really like to know how release:perform would work. BTW the update is
the command trying to be executed is 'git pull origin tag' where as it
should actually be - 'git checkout tag'.

Best regards,

Imran

&gt; I have looked at it closely and noticed that prepare is performed from
&gt; the branch I am in but perform tries to check out from the tagged base
&gt; and merge into 'master'. Then it gets a conflict and aborts, because
&gt; version in master has been changed since. How can I get it to work
&gt; now? That is, I want the release to be performed from release-0.3
&gt; branch instead of master, how I can specify this?
&gt;
&gt; --
&gt; Imran M Yousuf
&gt; Entrepreneur &amp; Software Engineer
&gt; Smart IT Engineering
&gt; Dhaka, Bangladesh
&gt; Blog: http://imyousuf-tech.blogs.smartitengineering.com/
&gt; Mobile: +880-1711402557
&gt;



-- 
Imran M Yousuf
Entrepreneur &amp; Software Engineer
Smart IT Engineering
Dhaka, Bangladesh
Email: imran@smartitengineering.com
Blog: http://imyousuf-tech.blogs.smartitengineering.com/
Mobile: +880-1711402557


</pre>
</div>
</content>
</entry>
<entry>
<title>Release og patch for SCM-317 [C1]</title>
<author><name>Christophe LALLEMENT &lt;Christophe.LALLEMENT@sgcib.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200811.mbox/%3cOF63CB2A56.F13FEFCD-ONC12574F9.0032114F-C12574F9.00331D20@fr.world.socgen%3e"/>
<id>urn:uuid:%3cOF63CB2A56-F13FEFCD-ONC12574F9-0032114F-C12574F9-00331D20@fr-world-socgen%3e</id>
<updated>2008-11-06T09:18:17Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello


I have submit an enhancement request to support edit/unedit on CVS scm 
provider on 09/11/2007 http://jira.codehaus.org/browse/SCM-317
this request contains the svn patch with all developpments.

I'm glade to not see this patch in release 1.1 of scm plugin.
I understand maven guys have no extensible free time but in this case it's 
quite different
Developpment are done one year ago, you just have to integrate and test.
Possible regressions are very little because this feature was not 
implemented before.

It's important because CVS is already used in many companies and we can 
not use correctly the maven-release plugin (because we have to an edit 
operation to change pom file permission)
So maven-release is very critical when we try to enforce maven usage into 
a professional context where developpment life cycle is very important.

I hope this patch will be added to the next release.

Regards
Christophe Lallement
Technical Architect
ITEC/IBD/DAI
17, cours Valmy
92800 Puteaux
Tel.: +33 (0)1.42.13.94.21
christophe.lallement@sgcib.com


  
*************************************************************************
This message and any attachments (the "message") are confidential, intended solely for the
addressee(s), and may contain legally privileged information.
Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration.
  
Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the
message if altered, changed or
falsified.
                              ************
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles
de contenir des informations couvertes 
par le secret professionnel. 
Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion
non autorisee est interdite.
Tout message electronique est susceptible d'alteration. 
La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message
s'il a ete altere, deforme ou falsifie.
*************************************************************************


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Problems with git-scm and github private repositories</title>
<author><name>&quot;Olivier Lamy&quot; &lt;olamy@apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200810.mbox/%3c9948cb690810251228n5263e123uf8f27e46a3c322e7@mail.gmail.com%3e"/>
<id>urn:uuid:%3c9948cb690810251228n5263e123uf8f27e46a3c322e7@mail-gmail-com%3e</id>
<updated>2008-10-25T19:28:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
Have a look at the scm url in this test project :
http://github.com/olamy/scm-git-test/tree/master/pom.xml.
I have tested it successfully with the release plugin trunk.
Your issue looks related to : http://jira.codehaus.org/browse/MRELEASE-381

--
Olivier

2008/10/24 John Hampton &lt;john@cleanoffer.com&gt;:
&gt; I'm having trouble setting up maven-scm to work with github private
&gt; repositories. The URL that github requires is:
&gt; git@github.com:johnhampton/re.git
&gt; Configuring maven scm with this url doesn't work as the git provider
&gt; complains that the url is invalid:
&gt; Here is the message:
&gt; [INFO] The scm url is invalid.
&gt;   - A git 'git' url must be on the form 'git://'.
&gt;
&gt; Here is my config:
&gt;     &lt;scm&gt;
&gt;         &lt;connection&gt;scm:git:git@github.com:johnhampton/re.git&lt;/connection&gt;
&gt;
&gt;  &lt;developerConnection&gt;scm:git:git@github.com:johnhampton/re.git&lt;/developerConnection&gt;
&gt;     &lt;/scm&gt;
&gt;
&gt; According to information at git hub there is only one format of url that
&gt; works...
&gt; Any Suggestions?
&gt; John
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Problems with git-scm and github private repositories</title>
<author><name>&quot;John Hampton&quot; &lt;john@cleanoffer.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200810.mbox/%3c6385de9b0810231837t525e4389hc71d012c07eff6d5@mail.gmail.com%3e"/>
<id>urn:uuid:%3c6385de9b0810231837t525e4389hc71d012c07eff6d5@mail-gmail-com%3e</id>
<updated>2008-10-24T01:37:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I'm having trouble setting up maven-scm to work with github private
repositories. The URL that github requires is:

git@github.com:johnhampton/re.git

Configuring maven scm with this url doesn't work as the git provider
complains that the url is invalid:

Here is the message:

[INFO] The scm url is invalid.
  - A git 'git' url must be on the form 'git://'.


Here is my config:

    &lt;scm&gt;
        &lt;connection&gt;scm:git:git@github.com:johnhampton/re.git&lt;/connection&gt;
        &lt;developerConnection&gt;scm:git:git@github.com:
johnhampton/re.git&lt;/developerConnection&gt;
    &lt;/scm&gt;


According to information at git
hub&lt;http://groups.google.com/group/github/browse_thread/thread/227f909ea6931586/380c41560ed4cc0e?lnk=gst&amp;q=maven#380c41560ed4cc0e&gt;
there
is only one format of url that works...

Any Suggestions?

John


</pre>
</div>
</content>
</entry>
<entry>
<title>Maven2, maven-scm-plugin, svn, interactive mode</title>
<author><name>&quot;Winterflood, Jonathan&quot; &lt;jonathan.winterflood@capgemini.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200810.mbox/%3c9FD178D09DF6AC43B2FF313CFB0D11ED022C5ACB@CORPMAIL33.corp.capgemini.com%3e"/>
<id>urn:uuid:%3c9FD178D09DF6AC43B2FF313CFB0D11ED022C5ACB@CORPMAIL33-corp-capgemini-com%3e</id>
<updated>2008-10-17T09:09:45Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all,

 

I'm trying to use the scm plugin to bootstrap a project from a SVN
repository.

 

Using:

mvn scm:bootstrap -DconnectionUrl="scm:svn:$SCM_PATH"
-DscmVersion="$SCM_REVISION" -DscmVersionType="$SCM_REVISION_TYPE"
-Dusername="$SCM_USER" -Dpassword="$SCM_PWD" -Dgoals="install"

All works well

 

However, the end user of this script would like SVN to prompt for
username, password, and certificate trusting...

 

Per the svn scm provider plugin, I created a config file with
&lt;useNonInteractive&gt;false&lt;/&gt;, which works: maven calls SVN without the
-non-interactive option.

 

However, it seems that maven doesn't pipe the svn command's inputs and
outputs:

            On windows (xp sp2), it just hangs (no cpu), as if it were
waiting for input, but there is no message

            On Solaris (5.6, sh), I do get a request for a password,
based on the current user (although this isn't the user I want to use,
this seems to be a logical svn behaviour), but doesn't react to input.

 

 

Has anyone had any success using the interactive mode for svn with the
scm plugin?

 

Also, are there any known plans on making the interactive mode available
via a -D switch? [Based on my reading of
maven-scm-provider-svn-commons-1.1-sources &amp;
maven-scm-provider-svnexe-1.1-sources, there is nothing in that
direction so far]

 

My current workaround is to prompt for username &amp; password in the
script, and pass these to maven, using the non-interactive default mode,
although this does not cater for certificate problems.

 

Thanks in advance,

Jonathan Winterflood

Capgemini Ouest - Agence de Brest



</pre>
</div>
</content>
</entry>
<entry>
<title>[ANN] Maven SCM 1.1 Released</title>
<author><name>olamy@apache.org</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200808.mbox/%3c20080827100109.5596.qmail@minotaur.apache.org%3e"/>
<id>urn:uuid:%3c20080827100109-5596-qmail@minotaur-apache-org%3e</id>
<updated>2008-08-27T10:01:09Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
The Maven team is pleased to announce the release of the Maven SCM , version 1.1.
http://maven.apache.org/scm
This version includes two new scm providers : AccuRev and Git.

Release Notes - Maven SCM - Version 1.1

** Sub-task
    * [SCM-401] - Fix parseHostAndPort() for Bazaar too

** Bug
    * [SCM-314] - BazaarScmProviderRepository doesn't work with file URL on Windows
    * [SCM-320] - svn: error: cannot set LC_ALL locale
    * [SCM-321] - bootstrap does duplicate checkout
    * [SCM-323] - generateReleasePoms fails after first release:prepare
    * [SCM-331] - bug found in StarteamUpdateCommand when doing a delete-local when a (view)label
is used
    * [SCM-334] - Faulty svn commandline is generated for passwords containing special chars
    * [SCM-338] - NullPointerException when using -DvssDirectory to set ss.exe path
    * [SCM-341] - tag is not required for an scm:tag operation
    * [SCM-351] - generated client spec name fails if there is a space or tilde in directory
name
    * [SCM-355] - CVS provider with SSPI transport does not support port number in url
    * [SCM-356] - clearcase implementation does not allow id of more than 8 characters.
    * [SCM-363] - Perforce Provider ignores p4 errors from stderr
    * [SCM-364] - NPE in StarteamChangeLogCommand
    * [SCM-374] - maven-scm-providers-git is missing some testdata
    * [SCM-379] - SCM URL with query transformed incorrectly on release:prepare
    * [SCM-380] - CvsStatusConsumer cannot be used for CvsJavaListCommand and CvsExeListCommand
    * [SCM-382] - cleanup dependencies in maven-scm-provider-accurev
    * [SCM-385] - AbstractCvsChangeLogCommand create a wrong command for case when startVersion
== endVersion
    * [SCM-386] - SCM plugin fails on "bootstrap" goal when shell environment has functions
definitions
    * [SCM-387] - CvsScmProviderRepository returns wrong CVSROOT for local repository
    * [SCM-391] - urls without subfolders were not parsed correctly.
    * [SCM-394] - git provider tests in trunk are locale aware
    * [SCM-402] - scm:checkin doesn't work on OS X 10.5 Leopard
    * [SCM-405] - 'cvs' and 'svnadmin' tools are requirements to run tests

** Improvement
    * [SCM-322] - SCM plug-in should tell at what revision the source is when it finishes
    * [SCM-348] - missing scm:bootstrap in overview
    * [SCM-354] - [Patch] Allow attaching a Job to the Perforce changlist on check-in
    * [SCM-359] - scm:update goals link not working (update) on Overview -&gt; Introduction
    * [SCM-368] - Windows path length limitations can be overcome by feeding an absolute path
to SVN
    * [SCM-370] - generated client spec contains backslashes leading die problems on unix
os
    * [SCM-390] - scm:branch gives misleading error when branch name parameter is missing
    * [SCM-395] - Add a field in the git setting to be able to commit with the option --no-verify
    * [SCM-397] - maven-scm-client should be a standalone app

** New Feature
    * [SCM-71] - Implement accurev provider
    * [SCM-182] - git provider
    * [SCM-393] - Add option to pass in a list of profiles to scm:bootstrap
    * [SCM-396] - git provider implements scm update 
    * [SCM-400] - add a POM that includes the standard providers as a set of dependencies

** Task
    * [SCM-377] - upgrade plexus-utils
    * [SCM-398] - Review website

Enjoy,

-The Maven team 


</pre>
</div>
</content>
</entry>
<entry>
<title>continuum and maven-scm-provider-perforce</title>
<author><name>&quot;Christophe Thiebaud&quot; &lt;christophe.thiebaud@sap.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200807.mbox/%3c64F5A97201C5AB428CB141940322732404098BB2@exch-lv05.intl.businessobjects.com%3e"/>
<id>urn:uuid:%3c64F5A97201C5AB428CB141940322732404098BB2@exch-lv05-intl-businessobjects-com%3e</id>
<updated>2008-07-01T20:25:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi all, 

I am trying to setup a working instance of continuum, building maven
projects using perforce as scm provider. 

After some googling, I decided to try the lastest version of continuum,
1.2-SNAPSHOT and the lastest version of maven-scm, 1.1-SNAPSHOT. I am
using The Perforce Windows Client Unicode Version 2005.2.93627.

I eventually managed to get it working, after some pain I must say.

I had to patch two files in maven-scm-provider-perforce:
PerforceLoginCommand.java and PerforceCheckOutConsumer.java.

PerforceLoginCommand.java
-------------------------
Basically, skip p4 login, but pretend it is successful.

---
D:\_\maven\maven-scm-provider-perforce\src\main\java\org\apache\maven\sc
m\provider\perforce\command\login\PerforceLoginCommand.java
2008-07-01 21:06:02.000000000 +-0200
+++
D:\_\maven\maven-scm\maven-scm-providers\maven-scm-provider-perforce\src
\main\java\org\apache\maven\scm\provider\perforce\command\login\Perforce
LoginCommand.java	2008-07-01 19:40:24.000000000 +-0200
@@ -44,12 +44,22 @@
     implements PerforceCommand
 {
 
     public LoginScmResult executeLoginCommand( ScmProviderRepository
repo, ScmFileSet files, CommandParameters params )
         throws ScmException
     {
+        if (true) {
+            return new LoginScmResult( 
+                "aze", 
+                "no Login", 
+                "no output", 
+                true);
+        }
 
         Commandline cl = createCommandLine(
(PerforceScmProviderRepository) repo, files.getBasedir() );
+        getLogger().debug( "[AZE] LoginCommand: " + cl );
 
         PerforceLoginConsumer consumer = new PerforceLoginConsumer();
 
         try
         {
             Process proc = cl.execute();

PerforceCheckOutConsumer.java
-----------------------------
Do not test the first letter from the perforce console output as it can
be uppercase or lowercase.

---
D:\_\maven\maven-scm-provider-perforce\src\main\java\org\apache\maven\sc
m\provider\perforce\command\checkout\PerforceCheckOutConsumer.java
2008-07-01 21:06:01.000000000 +-0200
+++
D:\_\maven\maven-scm\maven-scm-providers\maven-scm-provider-perforce\src
\main\java\org\apache\maven\scm\provider\perforce\command\checkout\Perfo
rceCheckOutConsumer.java	2008-07-01 19:50:21.000000000 +-0200
@@ -89,13 +89,13 @@
         {
             currentState = STATE_NORMAL;
             return;
         }
 
         // Handle case where the clientspec is current
-        if ( currentState == STATE_NORMAL &amp;&amp; line.indexOf( "file(s)
up-to-date" ) != -1 )
+        if ( currentState == STATE_NORMAL &amp;&amp; line.indexOf( "ile(s)
up-to-date" ) != -1 )
         {
             return;
         }
 
         if ( currentState != STATE_ERROR &amp;&amp; fileRegexp.match( line ) )
         {


My question:
Is there a correct way to get continuum, maven-scm and perforce to work
together, rather these questionable patches?

Optionaly:
Is there an article, a blog somewhere that better documents perforce
maven-scm?

Thanks
Christophe



</pre>
</div>
</content>
</entry>
<entry>
<title>How to checkout latest code from CVS?</title>
<author><name>&quot;Anand Kulkarni&quot; &lt;AnandK@synechron.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200806.mbox/%3c000601c8da92$d37c05a0$1138a8c0@fusionpune.local%3e"/>
<id>urn:uuid:%3c000601c8da92$d37c05a0$1138a8c0@fusionpune-local%3e</id>
<updated>2008-06-30T09:22:29Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,
 
I want to check out latest code from CVS using Maven. I browsed the SCM
project and found the following URL:
 
http://maven.apache.org/scm/plugins/checkout-mojo.html
 
The link founds good but how to introduce it into my pom.xml file is not
discussed. Can you please throw some light on this?
 
regards,
 
Anand
 


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Issues with mvn-scm-providers-git</title>
<author><name>Kim Pepper &lt;kim.pepper@mootermedia.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200806.mbox/%3c48641AD9.8000805@mootermedia.com%3e"/>
<id>urn:uuid:%3c48641AD9-8000805@mootermedia-com%3e</id>
<updated>2008-06-26T22:40:25Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Emmanuel Venisse wrote:
&gt;
&gt;
&gt; On Thu, Jun 26, 2008 at 1:58 AM, Kim Pepper 
&gt; &lt;kim.pepper@mootermedia.com &lt;mailto:kim.pepper@mootermedia.com&gt;&gt; wrote:
&gt;
&gt;     Emmanuel Venisse wrote:
&gt;&gt;
&gt;&gt;
&gt;&gt;     On Fri, Jun 20, 2008 at 12:19 PM, Torbjørn Vatn
&gt;&gt;     &lt;torbjorn.vatn@bekk.no &lt;mailto:torbjorn.vatn@bekk.no&gt;&gt; wrote:
&gt;&gt;
&gt;&gt;         I'm having some issues getting this provider to work sadly.
&gt;&gt;         So far I've tried this:
&gt;&gt;
&gt;&gt;         1. git cloning
&gt;&gt;         http://ns1.backwork.net/git/maven-scm-providers-git.git^ and
&gt;&gt;         running mvn clean install
&gt;&gt;         2. vim'ing into
&gt;&gt;         .m2/repository/org/apache/maven/scm/maven-scm-providers/1.0/maven-scm-providers-1.0.pom
&gt;&gt;         and adding &lt;module&gt;maven-scm-providers-git&lt;/module&gt; in the
&gt;&gt;         modules section of the file.
&gt;&gt;
&gt;&gt;
&gt;&gt;     why? you don't need to do it and it's a bad practice to modify
&gt;&gt;     released POM
&gt;&gt;      
&gt;&gt;
&gt;&gt;
&gt;&gt;         3. Adding this to my projects pom.xml:
&gt;&gt;         &lt;scm&gt;
&gt;&gt;         &lt;connection&gt;scm:git:git://github.com/torbjornvatn/fitnesse-pom-widget.git
&gt;&gt;         &lt;http://github.com/torbjornvatn/fitnesse-pom-widget.git&gt;&lt;/connection&gt;
&gt;&gt;         &lt;url&gt;scm:git:git://github.com/torbjornvatn/fitnesse-pom-widget.git
&gt;&gt;         &lt;http://github.com/torbjornvatn/fitnesse-pom-widget.git&gt;&lt;/url&gt;
&gt;&gt;         &lt;/scm&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;     3.1 Add scm plugin in your POM and add to it the git provider
&gt;&gt;     dependency so the plugin will know this new provider.
&gt;&gt;
&gt;     Can you give an example snippet from a pom.xml? I've also tried
&gt;     this unsuccessfully and couldn't find any examples.
&gt;
&gt;
&gt; &lt;build&gt;
&gt;   &lt;plugins&gt;
&gt;     &lt;plugin&gt;
&gt;       &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
&gt;       &lt;artifactId&gt;maven-scm-plugin&lt;/artifactId&gt;
&gt;       &lt;dependencies&gt;
&gt;         &lt;dependency&gt;
&gt;           &lt;groupId&gt;org.apache.maven.scm&lt;/groupId&gt;
&gt;           &lt;artifactId&gt;maven-scm-provider-gitexe&lt;/artifactId&gt;
&gt;           &lt;version&gt;1.1-SNAPSHOT&lt;/version&gt;
&gt;         &lt;/dependency&gt;
&gt;       &lt;/dependencies&gt;
&gt;     &lt;/plugin&gt;
&gt;   &lt;/plugins&gt;
&gt; &lt;/build&gt;
&gt;
&gt;
&gt;
&gt;     -- Kim
&gt;
&gt;
I tried using your example, but I get the error message:

    The provider given in the SCM URL could not be found: No such 
provider: 'git'.

-- Kim



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Issues with mvn-scm-providers-git</title>
<author><name>&quot;Emmanuel Venisse&quot; &lt;emmanuel.venisse@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200806.mbox/%3cf345f3480806260533r80496bfqf49537c961ad5762@mail.gmail.com%3e"/>
<id>urn:uuid:%3cf345f3480806260533r80496bfqf49537c961ad5762@mail-gmail-com%3e</id>
<updated>2008-06-26T12:33:57Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Thu, Jun 26, 2008 at 1:58 AM, Kim Pepper &lt;kim.pepper@mootermedia.com&gt;
wrote:

&gt;  Emmanuel Venisse wrote:
&gt;
&gt;
&gt;
&gt; On Fri, Jun 20, 2008 at 12:19 PM, Torbjørn Vatn &lt;torbjorn.vatn@bekk.no&gt;
&gt; wrote:
&gt;
&gt;&gt; I'm having some issues getting this provider to work sadly. So far I've
&gt;&gt; tried this:
&gt;&gt;
&gt;&gt; 1. git cloning http://ns1.backwork.net/git/maven-scm-providers-git.git^
&gt;&gt; and running mvn clean install
&gt;&gt; 2. vim'ing into
&gt;&gt; .m2/repository/org/apache/maven/scm/maven-scm-providers/1.0/maven-scm-providers-1.0.pom
&gt;&gt; and adding &lt;module&gt;maven-scm-providers-git&lt;/module&gt; in the modules section
&gt;&gt; of the file.
&gt;
&gt;
&gt; why? you don't need to do it and it's a bad practice to modify released POM
&gt;
&gt;
&gt;&gt;
&gt;&gt; 3. Adding this to my projects pom.xml:
&gt;&gt; &lt;scm&gt;
&gt;&gt; &lt;connection&gt;scm:git:git://github.com/torbjornvatn/fitnesse-pom-widget.git
&gt;&gt; &lt;/connection&gt;
&gt;&gt; &lt;url&gt;scm:git:git://github.com/torbjornvatn/fitnesse-pom-widget.git&lt;/url&gt;
&gt;&gt; &lt;/scm&gt;
&gt;
&gt;
&gt; 3.1 Add scm plugin in your POM and add to it the git provider dependency so
&gt; the plugin will know this new provider.
&gt;
&gt;   Can you give an example snippet from a pom.xml? I've also tried this
&gt; unsuccessfully and couldn't find any examples.
&gt;

&lt;build&gt;
  &lt;plugins&gt;
    &lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-scm-plugin&lt;/artifactId&gt;
      &lt;dependencies&gt;
        &lt;dependency&gt;
          &lt;groupId&gt;org.apache.maven.scm&lt;/groupId&gt;
          &lt;artifactId&gt;maven-scm-provider-gitexe&lt;/artifactId&gt;
          &lt;version&gt;1.1-SNAPSHOT&lt;/version&gt;
        &lt;/dependency&gt;
      &lt;/dependencies&gt;
    &lt;/plugin&gt;
  &lt;/plugins&gt;
&lt;/build&gt;



&gt; -- Kim
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Issues with mvn-scm-providers-git</title>
<author><name>Kim Pepper &lt;kim.pepper@mootermedia.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200806.mbox/%3c4862DB89.6090406@mootermedia.com%3e"/>
<id>urn:uuid:%3c4862DB89-6090406@mootermedia-com%3e</id>
<updated>2008-06-25T23:58:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Emmanuel Venisse wrote:
&gt;
&gt;
&gt; On Fri, Jun 20, 2008 at 12:19 PM, Torbjørn Vatn &lt;torbjorn.vatn@bekk.no 
&gt; &lt;mailto:torbjorn.vatn@bekk.no&gt;&gt; wrote:
&gt;
&gt;     I'm having some issues getting this provider to work sadly. So far
&gt;     I've tried this:
&gt;
&gt;     1. git cloning
&gt;     http://ns1.backwork.net/git/maven-scm-providers-git.git^ and
&gt;     running mvn clean install
&gt;     2. vim'ing into
&gt;     .m2/repository/org/apache/maven/scm/maven-scm-providers/1.0/maven-scm-providers-1.0.pom
&gt;     and adding &lt;module&gt;maven-scm-providers-git&lt;/module&gt; in the modules
&gt;     section of the file.
&gt;
&gt;
&gt; why? you don't need to do it and it's a bad practice to modify 
&gt; released POM
&gt;  
&gt;
&gt;
&gt;     3. Adding this to my projects pom.xml:
&gt;     &lt;scm&gt;
&gt;     &lt;connection&gt;scm:git:git://github.com/torbjornvatn/fitnesse-pom-widget.git
&gt;     &lt;http://github.com/torbjornvatn/fitnesse-pom-widget.git&gt;&lt;/connection&gt;
&gt;     &lt;url&gt;scm:git:git://github.com/torbjornvatn/fitnesse-pom-widget.git
&gt;     &lt;http://github.com/torbjornvatn/fitnesse-pom-widget.git&gt;&lt;/url&gt;
&gt;     &lt;/scm&gt;
&gt;
&gt;
&gt; 3.1 Add scm plugin in your POM and add to it the git provider 
&gt; dependency so the plugin will know this new provider.
&gt;
Can you give an example snippet from a pom.xml? I've also tried this 
unsuccessfully and couldn't find any examples.

-- Kim



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Issues with mvn-scm-providers-git</title>
<author><name>&quot;Emmanuel Venisse&quot; &lt;emmanuel.venisse@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200806.mbox/%3cf345f3480806250710l628dadbbsfd4d459da3124961@mail.gmail.com%3e"/>
<id>urn:uuid:%3cf345f3480806250710l628dadbbsfd4d459da3124961@mail-gmail-com%3e</id>
<updated>2008-06-25T14:10:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
On Fri, Jun 20, 2008 at 12:19 PM, Torbjørn Vatn &lt;torbjorn.vatn@bekk.no&gt;
wrote:

&gt; I'm having some issues getting this provider to work sadly. So far I've
&gt; tried this:
&gt;
&gt; 1. git cloning http://ns1.backwork.net/git/maven-scm-providers-git.git^
&gt; and running mvn clean install
&gt; 2. vim'ing into
&gt; .m2/repository/org/apache/maven/scm/maven-scm-providers/1.0/maven-scm-providers-1.0.pom
&gt; and adding &lt;module&gt;maven-scm-providers-git&lt;/module&gt; in the modules section
&gt; of the file.


why? you don't need to do it and it's a bad practice to modify released POM


&gt;
&gt; 3. Adding this to my projects pom.xml:
&gt; &lt;scm&gt;
&gt; &lt;connection&gt;scm:git:git://github.com/torbjornvatn/fitnesse-pom-widget.git
&gt; &lt;/connection&gt;
&gt; &lt;url&gt;scm:git:git://github.com/torbjornvatn/fitnesse-pom-widget.git&lt;/url&gt;
&gt; &lt;/scm&gt;


3.1 Add scm plugin in your POM and add to it the git provider dependency so
the plugin will know this new provider.


&gt; 4. running scm:status only gives my the error message:
&gt; [ERROR] BUILD ERROR
&gt; [INFO]
&gt; ------------------------------------------------------------------------
&gt; [INFO] Cannot run status command :
&gt; Embedded error: Can't load the scm provider.
&gt; No such provider: 'git'.
&gt;
&gt; Can anyone give my some pointers to what I'm doing wrong. I'm a big fan of
&gt; git and really wants to get this maven provider working.
&gt;
&gt; Thanks in advance!
&gt;
&gt; Regards
&gt; Torbjørn
&gt;
&gt;


</pre>
</div>
</content>
</entry>
<entry>
<title>Issues with mvn-scm-providers-git</title>
<author><name>=?ISO-8859-1?Q?Torbj=F8rn_Vatn?= &lt;torbjorn.vatn@bekk.no&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200806.mbox/%3c485B843D.7050201@bekk.no%3e"/>
<id>urn:uuid:%3c485B843D-7050201@bekk-no%3e</id>
<updated>2008-06-20T10:19:41Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I'm having some issues getting this provider to work sadly. So far I've 
tried this:

1. git cloning http://ns1.backwork.net/git/maven-scm-providers-git.git^ 
and running mvn clean install
2. vim'ing into 
.m2/repository/org/apache/maven/scm/maven-scm-providers/1.0/maven-scm-providers-1.0.pom 
and adding &lt;module&gt;maven-scm-providers-git&lt;/module&gt; in the modules 
section of the file.
3. Adding this to my projects pom.xml:
&lt;scm&gt;
&lt;connection&gt;scm:git:git://github.com/torbjornvatn/fitnesse-pom-widget.git&lt;/connection&gt;
&lt;url&gt;scm:git:git://github.com/torbjornvatn/fitnesse-pom-widget.git&lt;/url&gt;
&lt;/scm&gt;
4. running scm:status only gives my the error message:
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Cannot run status command :
Embedded error: Can't load the scm provider.
No such provider: 'git'.

Can anyone give my some pointers to what I'm doing wrong. I'm a big fan 
of git and really wants to get this maven provider working.

Thanks in advance!

Regards
Torbjørn



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: Perforce &quot;Unable to submit&quot; error</title>
<author><name>&quot;Jackson, Brian R&quot; &lt;Brian.R.Jackson@espn3.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200806.mbox/%3c70B8C67AEAD69D48AA873E99C275E950087C927B@SM-NYNY-VXMB01A.nena.wdpr.disney.com%3e"/>
<id>urn:uuid:%3c70B8C67AEAD69D48AA873E99C275E950087C927B@SM-NYNY-VXMB01A-nena-wdpr-disney-com%3e</id>
<updated>2008-06-17T13:34:46Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
The error handling in the perforce scm plugin was minimal so I went
ahead and patched it in my local repository so I could test.  My patch
(http://jira.codehaus.org/browse/SCM-363) has been applied to the trunk
so if you install it locally you should be able to get more information.

 

http://svn.apache.org/viewvc/maven/scm/trunk/maven-scm-providers/maven-s
cm-provider-perforce/

 

http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-providers/mave
n-scm-provider-perforce/

 

Also I have to manually login once per day since we have ticket-based
authorization and the maven-scm-provider for perforce doesn't handle
logins and assumes you have logged in manually.

 

________________________________

From: scm-users-return-183-Brian.R.Jackson=espn3.com@maven.apache.org
[mailto:scm-users-return-183-Brian.R.Jackson=espn3.com@maven.apache.org]
On Behalf Of Carl Pettersson
Sent: Tuesday, June 17, 2008 6:56 AM
To: scm-users@maven.apache.org
Subject: Perforce "Unable to submit" error

 

Hello!

I'm having trouble getting scm with perforce working. I've set up a
simple project (archetype:create), and then modified my pom.xml to
contain this: 

...

  &lt;scm&gt;

    &lt;connection&gt;scm:perforce:p4bck:1666://my-app&lt;/connection&gt;

 
&lt;developerConnection&gt;scm:perforce:p4bck:1666://my-app&lt;/developerConnecti
on&gt;

  &lt;/scm&gt;

...

  &lt;build&gt;

    &lt;plugins&gt;

      &lt;plugin&gt;

      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;

      &lt;artifactId&gt;maven-scm-plugin&lt;/artifactId&gt;

      &lt;configuration&gt;

        &lt;systemProperties&gt;

          &lt;property&gt;

            &lt;name&gt;maven.scm.perforce.clientspec.name&lt;/name&gt;

            &lt;value&gt;Mavenclient&lt;/value&gt;

          &lt;/property&gt;

        &lt;/systemProperties&gt;

        &lt;username&gt;user&lt;/username&gt;

        &lt;password&gt;passwd&lt;/password&gt;

        &lt;connectionType&gt;developerConnection&lt;/connectionType&gt;

      &lt;/configuration&gt;

      &lt;/plugin&gt;

    &lt;/plugins&gt;

  &lt;/build&gt;

...

I am able to do scm:update without errors, and the p4 commandline client
works. However, if I do any action which tries to submits, such as
release:prepare or scm:checkin, I get an "Unable to submit" error. For
example, here I try checking in my pom.xml:

[DEBUG] Executing p4 -d C:\PerforceRoot\MC\my-app -p p4bck:1666 -u user
-P ************ submit -i

[DEBUG] SCM path in pom: //my-app

[DEBUG] Executing: p4 -p p4bck:1666 -u user -P ************ where
C:\PerforceRoot\MC\my-app\pom.xml

[DEBUG] cannot find depot =&gt; using //my-app

[DEBUG] Sending changelist:

Change: new

 

Description:

        mvn

 

Files:

        //my-app/pom.xml

 

[ERROR] Provider message:

[ERROR] Unable to submit

[ERROR] Command output:

[ERROR]

First sign of something not working I suppose is "cannot find depot",
why? And when it cannot, it still uses the correct one... (I've also
tried using //Mavenclient/my-app as url, only difference is that it
falls back to using //Mavenclient/my-app instead of //my-app)

The Mavenclient clientspec exists.

 

I'm using Maven version 2.0.9 with JDK 1.5.0.15 on WinXP. scm-plugin is
version 1.0, release-plugin is 2.0-beta-7.

 

Have I done some misconfiguration? There are a few threads about this
available when googling, however they either don't get a reply, or the
solution does not solve the problem. 

Any other information needed to debug this?

 

Thankful for any help

Carl Pettersson



</pre>
</div>
</content>
</entry>
<entry>
<title>Perforce &quot;Unable to submit&quot; error</title>
<author><name>&quot;Carl Pettersson&quot; &lt;Carl.Pettersson@micronic.se&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200806.mbox/%3c794FFE525A416E459B73E51DF9A927A6016AD121@mailserver01.miclaser.net%3e"/>
<id>urn:uuid:%3c794FFE525A416E459B73E51DF9A927A6016AD121@mailserver01-miclaser-net%3e</id>
<updated>2008-06-17T10:55:53Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hello!

I'm having trouble getting scm with perforce working. I've set up a
simple project (archetype:create), and then modified my pom.xml to
contain this: 

...

  &lt;scm&gt;

    &lt;connection&gt;scm:perforce:p4bck:1666://my-app&lt;/connection&gt;

 
&lt;developerConnection&gt;scm:perforce:p4bck:1666://my-app&lt;/developerConnecti
on&gt;

  &lt;/scm&gt;

...

  &lt;build&gt;

    &lt;plugins&gt;

      &lt;plugin&gt;

      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;

      &lt;artifactId&gt;maven-scm-plugin&lt;/artifactId&gt;

      &lt;configuration&gt;

        &lt;systemProperties&gt;

          &lt;property&gt;

            &lt;name&gt;maven.scm.perforce.clientspec.name&lt;/name&gt;

            &lt;value&gt;Mavenclient&lt;/value&gt;

          &lt;/property&gt;

        &lt;/systemProperties&gt;

        &lt;username&gt;user&lt;/username&gt;

        &lt;password&gt;passwd&lt;/password&gt;

        &lt;connectionType&gt;developerConnection&lt;/connectionType&gt;

      &lt;/configuration&gt;

      &lt;/plugin&gt;

    &lt;/plugins&gt;

  &lt;/build&gt;

...

I am able to do scm:update without errors, and the p4 commandline client
works. However, if I do any action which tries to submits, such as
release:prepare or scm:checkin, I get an "Unable to submit" error. For
example, here I try checking in my pom.xml:

[DEBUG] Executing p4 -d C:\PerforceRoot\MC\my-app -p p4bck:1666 -u user
-P ************ submit -i

[DEBUG] SCM path in pom: //my-app

[DEBUG] Executing: p4 -p p4bck:1666 -u user -P ************ where
C:\PerforceRoot\MC\my-app\pom.xml

[DEBUG] cannot find depot =&gt; using //my-app

[DEBUG] Sending changelist:

Change: new

 

Description:

        mvn

 

Files:

        //my-app/pom.xml

 

[ERROR] Provider message:

[ERROR] Unable to submit

[ERROR] Command output:

[ERROR]

First sign of something not working I suppose is "cannot find depot",
why? And when it cannot, it still uses the correct one... (I've also
tried using //Mavenclient/my-app as url, only difference is that it
falls back to using //Mavenclient/my-app instead of //my-app)

The Mavenclient clientspec exists.

 

I'm using Maven version 2.0.9 with JDK 1.5.0.15 on WinXP. scm-plugin is
version 1.0, release-plugin is 2.0-beta-7.

 

Have I done some misconfiguration? There are a few threads about this
available when googling, however they either don't get a reply, or the
solution does not solve the problem. 

Any other information needed to debug this?

 

Thankful for any help

Carl Pettersson



</pre>
</div>
</content>
</entry>
<entry>
<title>Unscribe</title>
<author><name>&quot;Aleksandar Basic&quot; &lt;Aleksandar.Basic@emergis.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200805.mbox/%3cBB2AC8452C24684E8CA2BA23F908EA3071B04F@onmsg130.corp.ads%3e"/>
<id>urn:uuid:%3cBB2AC8452C24684E8CA2BA23F908EA3071B04F@onmsg130-corp-ads%3e</id>
<updated>2008-05-21T15:00:10Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
 

 

From: King, Leon C [mailto:leon.king@verizonbusiness.com] 
Sent: Wednesday, May 21, 2008 10:56 AM
To: scm-users@maven.apache.org
Subject: Maven Newbie Question

 

 

 

Hi All,

      I have a question regarding the use of cvs and maven.   I'm converting from Ant builds
to maven.  All of my source code is currently checked into a CVS repository.    How do I create
a Maven project using code checked out from cvs?  Are there any examples using m2eclipse?

 

Thanks,

 

Leon

 



</pre>
</div>
</content>
</entry>
<entry>
<title>Maven Newbie Question</title>
<author><name>&quot;King, Leon C&quot; &lt;leon.king@verizonbusiness.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200805.mbox/%3c60EC718763993F489F1961F264C850A306768303@ASHEVS009.mcilink.com%3e"/>
<id>urn:uuid:%3c60EC718763993F489F1961F264C850A306768303@ASHEVS009-mcilink-com%3e</id>
<updated>2008-05-21T14:56:12Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
 

 

Hi All,

      I have a question regarding the use of cvs and maven.   I'm
converting from Ant builds to maven.  All of my source code is currently
checked into a CVS repository.    How do I create a Maven project using
code checked out from cvs?  Are there any examples using m2eclipse?

 

Thanks,

 

Leon

 



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: mvn scm &amp; googlecode</title>
<author><name>&quot;Brett Porter&quot; &lt;brett.porter@gmail.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/maven-scm-users/200805.mbox/%3c9e3862d80805182141w3e84e5ffgdc399f71b6b8159a@mail.gmail.com%3e"/>
<id>urn:uuid:%3c9e3862d80805182141w3e84e5ffgdc399f71b6b8159a@mail-gmail-com%3e</id>
<updated>2008-05-19T04:41:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
it looks like the checkout occurred in target/checkout, but you tried
to checkin from the base directory of the project which is not an SVN
working copy?

2008/5/9 Justin Rodenbostel &lt;justin@rodenbostel.com&gt;:
&gt; I am just starting a project out on googlecode.com.  I've got maven setup
&gt; currently building and packaging my ear, with a project level pom.  I
&gt; recently began trying to integrate my maven setup with googlecode.com, and
&gt; have had some success.  Instead of starting with the top level project, I
&gt; chose to start with one of the 'jar' packages to get the scm plugin going.
&gt;  Anyway, I'm having trouble committing changes to svn, and validating my pom
&gt; with the scm plugin.  I am able to checkout, and have tried several
&gt; different -Dbasedir params for checkin, ie pointing to the target folder,
&gt; etc.  Below is my pom, and command results, where the values wrapped in **
&gt; have been masked.  Any help would be appreciated.  Thanks very much in
&gt; advance.
&gt;
&gt; mvn scm:validate results in failure:  "The PluginDescriptor for the plugin
&gt; Plugin [maven:maven-scm-plugin] was not found."
&gt; mvn scm:checkout results in success:
&gt;
&gt; [INFO] Removing **jar project root**/target/checkout
&gt; [INFO] Executing: svn --password ***** --non-interactive checkout
&gt; http://**projectname**.googlecode.com/svn/trunk checkout
&gt; [INFO] Working directory: **jar project root**/target
&gt;
&gt; mvn scm:checkin results in a failure asking for a message parameter.
&gt; mvn scm:checkin -Dmessage test results in a failure:
&gt;
&gt; Executing: svn --password ***** --non-interactive commit --file
&gt; /tmp/maven-scm-600613812.commit
&gt; [INFO] Working directory: **jar project root**
&gt; [ERROR] Provider message:
&gt; [ERROR] The svn command failed.
&gt; [ERROR] Command output:
&gt; [ERROR] svn: '**jar project root**' is not a working copy
&gt;
&gt;
&gt; &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
&gt; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
&gt;  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
&gt; http://maven.apache.org/maven-v4_0_0.xsd"&gt;
&gt;  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
&gt;  &lt;groupId&gt;**GroupID**&lt;/groupId&gt;
&gt;  &lt;artifactId&gt;ShowManagerUtil&lt;/artifactId&gt;
&gt;  &lt;packaging&gt;jar&lt;/packaging&gt;
&gt;  &lt;version&gt;1.0&lt;/version&gt;
&gt;  &lt;name&gt;ShowManagerUtil&lt;/name&gt;
&gt;  &lt;url&gt;**projecturl**&lt;/url&gt;
&gt;  &lt;scm&gt;
&gt;
&gt;  &lt;connection&gt;scm:svn:http://**projectname**.googlecode.com/svn/trunk&lt;/connection&gt;
&gt;
&gt;  &lt;developerConnection&gt;scm:svn:https://showmanager.googlecode.com/svn/trunk&lt;/developerConnection&gt;
&gt;    &lt;url&gt;scm:svn:https://**projectname**.googlecode.com/svn/trunk&lt;/url&gt;
&gt;  &lt;/scm&gt;
&gt;  &lt;dependencies&gt;
&gt;    &lt;dependency&gt;
&gt;      &lt;groupId&gt;junit&lt;/groupId&gt;
&gt;      &lt;artifactId&gt;junit&lt;/artifactId&gt;
&gt;      &lt;version&gt;3.8.1&lt;/version&gt;
&gt;      &lt;scope&gt;test&lt;/scope&gt;
&gt;    &lt;/dependency&gt;
&gt;    &lt;dependency&gt;
&gt;      &lt;groupId&gt;log4j&lt;/groupId&gt;
&gt;      &lt;artifactId&gt;log4j&lt;/artifactId&gt;
&gt;      &lt;version&gt;1.2.15&lt;/version&gt;
&gt;      &lt;scope&gt;compile&lt;/scope&gt;
&gt;    &lt;/dependency&gt;
&gt;  &lt;/dependencies&gt;
&gt;  &lt;build&gt;
&gt;    &lt;filters&gt;
&gt;      &lt;filter&gt;src/main/filters/localFilter.properties&lt;/filter&gt;
&gt;    &lt;/filters&gt;
&gt;    &lt;resources&gt;
&gt;      &lt;resource&gt;
&gt;        &lt;directory&gt;src/main/java/resources&lt;/directory&gt;
&gt;        &lt;filtering&gt;true&lt;/filtering&gt;
&gt;      &lt;/resource&gt;
&gt;    &lt;/resources&gt;
&gt;    &lt;plugins&gt;
&gt;      &lt;plugin&gt;
&gt;        &lt;groupId&gt;maven&lt;/groupId&gt;
&gt;        &lt;artifactId&gt;maven-scm-plugin&lt;/artifactId&gt;
&gt;        &lt;version&gt;1.4.1&lt;/version&gt;
&gt;        &lt;configuration&gt;
&gt;          &lt;connectionType&gt;developerConnection&lt;/connectionType&gt;
&gt;          &lt;username&gt;**username**&lt;/username&gt;
&gt;          &lt;password&gt;**password**&lt;/password&gt;
&gt;        &lt;/configuration&gt;
&gt;      &lt;/plugin&gt;
&gt;    &lt;/plugins&gt;
&gt;  &lt;/build&gt;
&gt; &lt;/project&gt;
&gt;



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/


</pre>
</div>
</content>
</entry>
</feed>
