You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jim McCaskey <ji...@pervasive.com> on 2010/06/10 21:49:28 UTC
wagon-maven-plugin and wagon-scm
Hello all,
I was wondering if anyone has gotten the wagon-maven-plugin working with wagon-scm? Specifically, I am trying to issue a command like this:
mvn org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3:merge-maven-repos -Dwagon.source=file://E:\stage -Dwagon.target=scm:svn:http://testserver/svn/test/trunk -Djava.io.tmpdir=deploytemp
Here is the error:
[INFO] [wagon:merge-maven-repos]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error during performing repository copy
Embedded error: Unable to create a Wagon instance for scm:svn:http://testserver/svn/test/trunk
Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagonscm.
[INFO] ------------------------------------------------------------------------
I'm sure that's telling me exactly what's wrong, I just don't speak that language.
If it matters, I'm using Maven 2.1.0.
Disclaimer: Yes I know I should not use a Subversion server as a Maven repo but this will solve a problem in the short term.
Thanks!
-Jim
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: wagon-maven-plugin and wagon-scm
Posted by Jim McCaskey <ji...@pervasive.com>.
Thanks for that hint Brett! I don't control the SVN server in question, so that option is out. But you gave me the bread crumb to run with. And in case anyone else wants to try this folly...
I was able to put together the below pom file (I called it merge.pom.xml). I can now invoke maven like below:
mvn -f merge.pom.xml -Dmerge.source=file://E:\stage -Dmerge.target=scm:svn:http://testserver/svn/test/trunk -Djava.io.tmpdir=deploytemp
Not sure how well this will hold up, but it only has to survive for a little bit. :)
-Jim
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<packaging>pom</packaging>
<version>testing</version>
<build>
<defaultGoal>package</defaultGoal>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-scm</artifactId>
<version>1.0-beta-6</version>
</extension>
<extension>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-manager-plexus</artifactId>
<version>1.0</version>
</extension>
<extension>
<groupId>org.apache.maven.scm</groupId>
<artifactId>maven-scm-provider-svnexe</artifactId>
<version>1.0</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0-beta-3</version>
<executions>
<execution>
<id>merge-maven-repos</id>
<phase>package</phase>
<goals>
<goal>merge-maven-repos</goal>
</goals>
<configuration>
<source>${merge.source}</source>
<target>${merge.target}</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
-----Original Message-----
From: Brett Porter [mailto:brett@porterclan.net] On Behalf Of Brett Porter
Sent: Thursday, June 10, 2010 4:23 PM
To: Maven Users List
Subject: Re: wagon-maven-plugin and wagon-scm
This would require that wagon-scm is in the build extensions, which is not possible without a POM file.
An alternative is to use dav:http://, and turn on auto-versioning on your subversion server (though it creates a revision per-file...)
On 11/06/2010, at 5:49 AM, Jim McCaskey wrote:
> Hello all,
>
> I was wondering if anyone has gotten the wagon-maven-plugin working with wagon-scm? Specifically, I am trying to issue a command like this:
>
> mvn org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3:merge-maven-repos -Dwagon.source=file://E:\stage -Dwagon.target=scm:svn:http://testserver/svn/test/trunk -Djava.io.tmpdir=deploytemp
>
> Here is the error:
>
> [INFO] [wagon:merge-maven-repos]
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error during performing repository copy
>
> Embedded error: Unable to create a Wagon instance for scm:svn:http://testserver/svn/test/trunk
> Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagonscm.
> [INFO] ------------------------------------------------------------------------
>
> I'm sure that's telling me exactly what's wrong, I just don't speak that language.
>
> If it matters, I'm using Maven 2.1.0.
>
> Disclaimer: Yes I know I should not use a Subversion server as a Maven repo but this will solve a problem in the short term.
>
> Thanks!
>
> -Jim
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: wagon-maven-plugin and wagon-scm
Posted by Brett Porter <br...@apache.org>.
This would require that wagon-scm is in the build extensions, which is not possible without a POM file.
An alternative is to use dav:http://, and turn on auto-versioning on your subversion server (though it creates a revision per-file...)
On 11/06/2010, at 5:49 AM, Jim McCaskey wrote:
> Hello all,
>
> I was wondering if anyone has gotten the wagon-maven-plugin working with wagon-scm? Specifically, I am trying to issue a command like this:
>
> mvn org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3:merge-maven-repos -Dwagon.source=file://E:\stage -Dwagon.target=scm:svn:http://testserver/svn/test/trunk -Djava.io.tmpdir=deploytemp
>
> Here is the error:
>
> [INFO] [wagon:merge-maven-repos]
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error during performing repository copy
>
> Embedded error: Unable to create a Wagon instance for scm:svn:http://testserver/svn/test/trunk
> Component descriptor cannot be found in the component repository: org.apache.maven.wagon.Wagonscm.
> [INFO] ------------------------------------------------------------------------
>
> I'm sure that's telling me exactly what's wrong, I just don't speak that language.
>
> If it matters, I'm using Maven 2.1.0.
>
> Disclaimer: Yes I know I should not use a Subversion server as a Maven repo but this will solve a problem in the short term.
>
> Thanks!
>
> -Jim
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Brett Porter
brett@apache.org
http://brettporter.wordpress.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org