From scm-leblanclarry@example.net Fri Jun 12 16:14:01 2009
Return-Path: <scm-leblanclarry@example.net>
Delivered-To: leblanclarry@example.net
Received: (qmail 90299 invoked from network); 12 Jun 2009 16:14:01 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 12 Jun 2009 16:14:01 -0000
Received: (qmail 70371 invoked by uid 500); 12 Jun 2009 16:14:12 -0000
Delivered-To: leblanclarry@example.net
Received: (qmail 70334 invoked by uid 500); 12 Jun 2009 16:14:12 -0000
Mailing-List: contact leblanclarry@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:leblanclarry@example.net>
List-Unsubscribe: <mailto:leblanclarry@example.net>
List-Post: <mailto:leblanclarry@example.net>
List-Id: <scm-users.maven.apache.org>
Reply-To: leblanclarry@example.net
Delivered-To: mailing list leblanclarry@example.net
Received: (qmail 70326 invoked by uid 99); 12 Jun 2009 16:14:12 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2009 16:14:12 +0000
X-ASF-Spam-Status: No, hits=0.3 required=10.0
	tests=PLING_QUERY,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (nike.apache.org: domain of leblanclarry@example.net designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO SBAPEXCH05.ad.corp.expertcity.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2009 16:14:02 +0000
Received: from SBAPEXCH05.ad.corp.expertcity.com ([83.161.120.155]) by sbapexch05
 ([83.161.120.155]) with mapi; Fri, 12 Jun 2009 09:13:41 -0700
From: Matt Brown <leblanclarry@example.net>
To: "leblanclarry@example.net" <leblanclarry@example.net>
Date: Fri, 12 Jun 2009 09:13:39 -0700
Subject: How to set up SCM/CVS/Maven integration with public key
 authentication (need help!)?
Thread-Topic: How to set up SCM/CVS/Maven integration with public key
 authentication (need help!)?
Thread-Index: AcnreL8nACFJ0pHDR3iOZNAcO2zSkw==
Message-ID: <44B76DF56DE7A843BB5E8109DC4EEB12050A493511@sbapexch05>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Checked: Checked by ClamAV on apache.org

I have a <scm> section in a POM that looks something like this:
=20
	<scm>
		<connection>scm:cvs:ext:myhostname:/cvsroot/repo:module_name</connection>
	</scm>


I typically use publickey auth to authentication against this cvs server, a=
lthough 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\pr=
ojectname
org.netbeans.lib.cvsclient.connection.AuthenticationException: Cannot authe=
nticate. 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.CvsJ=
avaUpdateCommand.executeCvsCommand(CvsJavaUpdateCommand.java:53)
        at org.apache.maven.scm.provider.cvslib.command.update.AbstractCvsU=
pdateCommand.executeUpdateCommand(AbstractCvsUpdateCommand.java:78)
        at org.apache.maven.scm.command.update.AbstractUpdateCommand.execut=
eCommand(AbstractUpdateCommand.java:63)
        at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCom=
mand.java:59)
        at org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.exec=
uteCommand(AbstractCvsScmProvider.java:750)
        at org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.upda=
te(AbstractCvsScmProvider.java:348)
        at org.apache.maven.scm.provider.AbstractScmProvider.update(Abstrac=
tScmProvider.java:821)
        at org.apache.maven.scm.provider.AbstractScmProvider.update(Abstrac=
tScmProvider.java:770)
        at org.apache.maven.scm.manager.AbstractScmManager.update(AbstractS=
cmManager.java:526)
        at org.apache.maven.scm.plugin.UpdateMojo.execute(UpdateMojo.java:8=
9)
(lots more of the stacktrace....)


And further down in the stacktrace:

Caused by: java.io.IOException: Decrypted PEM has wrong padding, did you sp=
ecify 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 fo=
r 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 mach=
ine and the CVS host when I run this command if I use wireshark, so I know =
some sort of communication is going on.

Thanks=

From scm-leblanclarry@example.net Mon Jun 15 18:17:01 2009
Return-Path: <scm-leblanclarry@example.net>
Delivered-To: leblanclarry@example.net
Received: (qmail 87361 invoked from network); 15 Jun 2009 18:17:01 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 15 Jun 2009 18:17:01 -0000
Received: (qmail 71103 invoked by uid 500); 15 Jun 2009 18:17:12 -0000
Delivered-To: leblanclarry@example.net
Received: (qmail 71050 invoked by uid 500); 15 Jun 2009 18:17:12 -0000
Mailing-List: contact leblanclarry@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:leblanclarry@example.net>
List-Unsubscribe: <mailto:leblanclarry@example.net>
List-Post: <mailto:leblanclarry@example.net>
List-Id: <scm-users.maven.apache.org>
Reply-To: leblanclarry@example.net
Delivered-To: mailing list leblanclarry@example.net
Received: (qmail 71042 invoked by uid 99); 15 Jun 2009 18:17:12 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2009 18:17:12 +0000
X-ASF-Spam-Status: No, hits=0.3 required=10.0
	tests=PLING_QUERY,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of leblanclarry@example.net designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO SBAPEXCH05.ad.corp.expertcity.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Jun 2009 18:17:04 +0000
Received: from SBAPEXCH05.ad.corp.expertcity.com ([83.161.120.155]) by sbapexch05
 ([83.161.120.155]) with mapi; Mon, 15 Jun 2009 11:16:43 -0700
From: Matt Brown <leblanclarry@example.net>
To: "leblanclarry@example.net" <leblanclarry@example.net>
Date: Mon, 15 Jun 2009 11:16:41 -0700
Subject: RE: How to set up SCM/CVS/Maven integration with public key
 authentication (need help!)?
Thread-Topic: How to set up SCM/CVS/Maven integration with public key
 authentication (need help!)?
Thread-Index: AcnreL8nACFJ0pHDR3iOZNAcO2zSkwCbK4ag
Message-ID: <44B76DF56DE7A843BB5E8109DC4EEB12050BE02DFB@sbapexch05>
References: <44B76DF56DE7A843BB5E8109DC4EEB12050A493511@sbapexch05>
In-Reply-To: <44B76DF56DE7A843BB5E8109DC4EEB12050A493511@sbapexch05>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Virus-Checked: Checked by ClamAV on apache.org

For anyone who runs into this problem in the future:

After downloading the scm plugin source, I discovered that the plugin is us=
ing an empty string for the passphrase when authenticating with a public ke=
y.

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=3D<my passphrase>


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

=20

-----Original Message-----
From: Matt Brown [mailto:leblanclarry@example.net]=20
Sent: Friday, June 12, 2009 12:14 PM
To: leblanclarry@example.net
Subject: How to set up SCM/CVS/Maven integration with public key authentica=
tion (need help!)?

I have a <scm> section in a POM that looks something like this:
=20
	<scm>
		<connection>scm:cvs:ext:myhostname:/cvsroot/repo:module_name</connection>
	</scm>


I typically use publickey auth to authentication against this cvs server, a=
lthough 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\pr=
ojectname
org.netbeans.lib.cvsclient.connection.AuthenticationException: Cannot authe=
nticate. 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.CvsJ=
avaUpdateCommand.executeCvsCommand(CvsJavaUpdateCommand.java:53)
        at org.apache.maven.scm.provider.cvslib.command.update.AbstractCvsU=
pdateCommand.executeUpdateCommand(AbstractCvsUpdateCommand.java:78)
        at org.apache.maven.scm.command.update.AbstractUpdateCommand.execut=
eCommand(AbstractUpdateCommand.java:63)
        at org.apache.maven.scm.command.AbstractCommand.execute(AbstractCom=
mand.java:59)
        at org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.exec=
uteCommand(AbstractCvsScmProvider.java:750)
        at org.apache.maven.scm.provider.cvslib.AbstractCvsScmProvider.upda=
te(AbstractCvsScmProvider.java:348)
        at org.apache.maven.scm.provider.AbstractScmProvider.update(Abstrac=
tScmProvider.java:821)
        at org.apache.maven.scm.provider.AbstractScmProvider.update(Abstrac=
tScmProvider.java:770)
        at org.apache.maven.scm.manager.AbstractScmManager.update(AbstractS=
cmManager.java:526)
        at org.apache.maven.scm.plugin.UpdateMojo.execute(UpdateMojo.java:8=
9)
(lots more of the stacktrace....)


And further down in the stacktrace:

Caused by: java.io.IOException: Decrypted PEM has wrong padding, did you sp=
ecify 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 fo=
r 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 mach=
ine and the CVS host when I run this command if I use wireshark, so I know =
some sort of communication is going on.

Thanks=

From scm-leblanclarry@example.net Sat Jun 20 00:51:50 2009
Return-Path: <scm-leblanclarry@example.net>
Delivered-To: leblanclarry@example.net
Received: (qmail 71450 invoked from network); 20 Jun 2009 00:51:50 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 20 Jun 2009 00:51:50 -0000
Received: (qmail 52041 invoked by uid 500); 20 Jun 2009 00:52:01 -0000
Delivered-To: leblanclarry@example.net
Received: (qmail 51961 invoked by uid 500); 20 Jun 2009 00:52:01 -0000
Mailing-List: contact leblanclarry@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:leblanclarry@example.net>
List-Unsubscribe: <mailto:leblanclarry@example.net>
List-Post: <mailto:leblanclarry@example.net>
List-Id: <scm-users.maven.apache.org>
Reply-To: leblanclarry@example.net
Delivered-To: mailing list leblanclarry@example.net
Received: (qmail 51946 invoked by uid 99); 20 Jun 2009 00:52:01 -0000
Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jun 2009 00:52:01 +0000
X-ASF-Spam-Status: No, hits=-0.0 required=10.0
	tests=SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (athena.apache.org: domain of leblanclarry@example.net designates 83.161.120.155 as permitted sender)
Received: from [83.161.120.155] (HELO mail-yx0-f201.google.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 20 Jun 2009 00:51:51 +0000
Received: by yxe39 with SMTP id 39so1136277yxe.14
        for <leblanclarry@example.net>; Fri, 19 Jun 2009 17:51:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id
         :disposition-notification-to:date:from:user-agent:mime-version:to
         :subject:content-type:content-transfer-encoding;
        bh=GNIFpbndVy+jSNSpCGpIozNW7ns0r0tnrzRPRG0GaKI=;
        b=DOmYw2EreY8mBQiTEAjGn6juO6IQS7eYKyMI/O4tSrwrlWCirEKnNoK235+fJs682k
         3gbtiRj3zEhUXf9acb9WQUD67KkMbcMRT0GJiTdet3MK7dxrMrYTRzCvooSTaGhSaKBW
         gd/IkyEzYPACbpMkrIE17spwSJwPzKP8umYKA=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:disposition-notification-to:date:from:user-agent
         :mime-version:to:subject:content-type:content-transfer-encoding;
        b=JPpYcH1cYROLV02hNMQZ/FwNQPd4dAWWLGEUxzlBMviPV1IaH9vWWSVzRFLJHr/7uG
         emxLYyNIibPooJVg8HVrSWBoc2IA+IdiwOzo+9EnfylGYICkIWYUn2E5ikyupG/rmCgo
         hEiNxQ7P7N4V51uowx6/Iu9JhtBQCLaLQ6ClI=
Received: by 83.161.120.155 with SMTP id w6mr6865947ybm.141.1245459091086;
        Fri, 19 Jun 2009 17:51:31 -0700 (PDT)
Received: from ?83.161.120.155? ([83.161.120.155])
        by mx.google.com with ESMTPS id 6sm221785ywp.44.283.161.120.155.51.29
        (version=SSLv3 cipher=RC4-MD5);
        Fri, 19 Jun 2009 17:51:30 -0700 (PDT)
Message-ID: <leblanclarry@example.net>
Date: Fri, 19 Jun 2009 19:43:20 -0500
From: Edgar Merino <leblanclarry@example.net>
User-Agent: Thunderbird 83.161.120.155 (X11/20090319)
MIME-Version: 1.0
To: leblanclarry@example.net
Subject: SCM svn implementation, working partially (help with configuration)
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Virus-Checked: Checked by ClamAV on apache.org

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 && 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:

<?xml version="1.0" encoding="UTF-8"?>
<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">
    <modelVersion>4.0.0</modelVersion>
    <groupId>pivot-svn</groupId>
    <artifactId>pivot-wtk-svn</artifactId>
    <packaging>jar</packaging>
    <version>1.2-SNAPSHOT</version>
    <name>pivot-wtk-svn</name>
    <url>http://maven.apache.org</url>
    <scm>

        
<connection>scm:svn:http://svn.apache.org/repos/asf/incubator/pivot/trunk/core</connection>

        <tag>HEAD</tag>

    </scm>

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


            </plugin>

        </plugins>
    </build>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>pivot-svn</groupId>
            <artifactId>pivot-core-svn</artifactId>
            <version>1.2-SNAPSHOT</version>
            <scope>compile</scope>
        </dependency>
    </dependencies>
</project>


    Any help will be greatly appreciated!

Thanks in advance,
Edgar Merino

From scm-leblanclarry@example.net Mon Jun 29 21:46:58 2009
Return-Path: <scm-leblanclarry@example.net>
Delivered-To: leblanclarry@example.net
Received: (qmail 57323 invoked from network); 29 Jun 2009 21:46:58 -0000
Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155)
  by minotaur.apache.org with SMTP; 29 Jun 2009 21:46:58 -0000
Received: (qmail 37406 invoked by uid 500); 29 Jun 2009 21:47:09 -0000
Delivered-To: leblanclarry@example.net
Received: (qmail 37355 invoked by uid 500); 29 Jun 2009 21:47:08 -0000
Mailing-List: contact leblanclarry@example.net; run by ezmlm
Precedence: bulk
List-Help: <mailto:leblanclarry@example.net>
List-Unsubscribe: <mailto:leblanclarry@example.net>
List-Post: <mailto:leblanclarry@example.net>
List-Id: <scm-users.maven.apache.org>
Reply-To: leblanclarry@example.net
Delivered-To: mailing list leblanclarry@example.net
Received: (qmail 37347 invoked by uid 99); 29 Jun 2009 21:47:08 -0000
Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jun 2009 21:47:08 +0000
X-ASF-Spam-Status: No, hits=3.4 required=10.0
	tests=HTML_MESSAGE,SPF_NEUTRAL
X-Spam-Check-By: apache.org
Received-SPF: neutral (nike.apache.org: local policy)
Received: from [83.161.120.155] (HELO rv-out-0708.google.com) (83.161.120.155)
    by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jun 2009 21:46:57 +0000
Received: by rv-out-0708.google.com with SMTP id l33so1180603rvb.4
        for <leblanclarry@example.net>; Mon, 29 Jun 2009 14:46:35 -0700 (PDT)
Received: by 83.161.120.155 with SMTP id d19mr1008067rvj.100.1246311995165;
        Mon, 29 Jun 2009 14:46:35 -0700 (PDT)
Received: from ?83.161.120.155? (adsl-99-170-12-149.dsl.pltn13.sbcglobal.net [83.161.120.155])
        by mx.google.com with ESMTPS id f42sm291845rvb.30.283.161.120.155.46.23
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Mon, 29 Jun 2009 14:46:30 -0700 (PDT)
Message-ID: <leblanclarry@example.net>
Date: Mon, 29 Jun 2009 14:46:15 -0700
From: Ovidiu Feodorov <leblanclarry@example.net>
User-Agent: Thunderbird 83.161.120.155 (Windows/20090605)
MIME-Version: 1.0
To: leblanclarry@example.net
Subject: SCM SVN Provider fails on Windows with cygwin/svn because of "C:/"
 prefix
Content-Type: multipart/alternative;
 boundary="------------030908090505090006060804"
X-Virus-Checked: Checked by ClamAV on apache.org

This is a multi-part message in MIME format.
--------------030908090505090006060804
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit


I know this is not a new problem, I found several JIRA issues related to 
it (SCM-213 <http://jira.codehaus.org/browse/SCM-213>, 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  <svn-settings> (<useCygwinPath> and <cygwinMountPath>) 
and build the paths accordingly. <useCygwinPath> and <cygwinMountPath> 
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


--------------030908090505090006060804
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
I know this is not a new problem, I found several JIRA issues related
to it (<a href="http://jira.codehaus.org/browse/SCM-213">SCM-213</a>,
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.<br>
<br>
This is what happens in my case:<br>
<br>
I am running mvn release:prepare for a multi-module project, (cygwin,
Windows) and the operation fails with:<br>
<blockquote><tt>[INFO] Checking in modified POMs...</tt><br>
  <tt>[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"</tt><br>
  <tt>[INFO] Working directory:
c:\work\playground\maven\release-plugin-experiments</tt><br>
  <tt>[INFO]
------------------------------------------------------------------------</tt><br>
  <tt>[ERROR] BUILD FAILURE</tt><br>
  <tt>[INFO]
------------------------------------------------------------------------</tt><br>
  <tt>[INFO] Unable to commit files</tt><br>
  <tt>Provider message:</tt><br>
  <tt>The svn command failed.</tt><br>
  <tt>Command output:</tt><br>
  <tt>svn:
'/cygdrive/c/work/playground/maven/release-plugin-experiments/C:' is
not a working copy</tt><br>
  <tt>svn: Can't open file
'/cygdrive/c/work/playground/maven/release-plugin-experiments/C:/.svn/entries':
No such file or directory<br>
  <br>
  </tt></blockquote>
The temporary file <tt>maven-scm-xxxxx-targets </tt>contains <br>
<br>
<blockquote><tt>c:/work/playground/maven/release-plugin-experiments/pom.xml</tt><br>
  <tt>C:/work/playground/maven/release-plugin-experiments/sub-module-one/pom.xml</tt><br>
</blockquote>
<br>
which confuses svn. <tt>C:/work/playground/maven/release-plugin-experiments</tt>
is the correct project home, cygwin svn is bothered by the <tt>C:/ </tt>prefix.&nbsp;
<br>
<br>
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 <tt>maven-scm-xxxxx-targets
</tt>to contain cygwin paths Windows paths, that would quell svn.<br>
<br>
The file list in <tt>maven-scm-xxxxx-targets </tt>is generated by <tt>org.apache.maven.scm.provider.svn.svnexe.command.SvnCommandLineUtils.addTargets()
(<a
 href="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">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</a>).<br>
<br>
</tt><tt>SvnCommandLineUtils.addTargets() </tt>could take into
consideration Cygwin-related&nbsp; <tt>&lt;svn-settings&gt; </tt>(<tt>&lt;useCygwinPath&gt;</tt>
and <tt>&lt;cygwinMountPath&gt;</tt>) and build the paths accordingly.
<tt>&lt;useCygwinPath&gt;</tt> and <tt>&lt;cygwinMountPath&gt;</tt>
are already there, and this was probably the hardest part&nbsp; (see
<a class="moz-txt-link-freetext" href="http://maven.apache.org/scm/subversion.html">http://maven.apache.org/scm/subversion.html</a>). <br>
<br>
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.<br>
<br>
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. <br>
<br>
Cheers,<br>
Ovidiu<br>
<div class="moz-signature"><br>
</div>
</body>
</html>

--------------030908090505090006060804--


{'source': 'Apache Software Foundation Public Mail Archives'}