maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Taylor" <ctay...@collab.net>
Subject deploying a loose jar to a repository using svn wagon
Date Fri, 26 Nov 2010 14:22:21 GMT
Hi list,

 

I'm having trouble deploying a loose jar file with a pom file I created
myself to a repository that needs to be accessed via svn.

 

the command line I'm using is:

mvn -f jarfile.pom.xml deploy:deploy-file
-Durl=scm:svn:https://repoURL/mvnrepo -DrepositoryId=myProduct-repo
-Dfile=jarfile.jar -DpomFile=jarfile.pom.xml

 

In the pom, I've configured the repository as follows:

 

  <build>

    <extensions>

      <extension>

        <groupId>org.apache.maven.scm</groupId>

        <artifactId>maven-scm-provider-svnexe</artifactId>

        <version>1.4</version>

      </extension>

      <extension>

        <groupId>org.apache.maven.wagon</groupId>

        <artifactId>wagon-scm</artifactId>

        <version>1.0-beta-7</version>

      </extension>

      <extension>

        <groupId>org.apache.maven.scm</groupId>

        <artifactId>maven-scm-manager-plexus</artifactId>

        <version>1.4</version>

      </extension>

    </extensions>

  </build>

  <repositories>

    <repository>

      <!-- uniqueVersion>false</uniqueVersion -->

      <id>myProduct-repo</id>

      <name>MYPRODUCT repository</name>

      <url>http://repoURL/mvnrepo</url>

    </repository>

  </repositories>

  <distributionManagement>

    <repository>

      <uniqueVersion>false</uniqueVersion>

      <id>myProduct-repo</id>

      <name>MYPRODUCT repository</name>

      <url>http://repoURL/mvnrepo</url>

    </repository>

    <snapshotRepository>

      <id>myProduct-snapshots</id>

      <name>MYPRODUCT snapshots repository</name>

      <url>http://repoURL/mvn-snapshots</url>

    </snapshotRepository>

  </distributionManagement>

 

when I run the command line, I get the following error message (under
cygwin, svn is installed and on the path):

 [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy-file
(default-cli) on project projectid: Failed to retrieve remote metadata
mygroupId:artifactId:myversion/maven-metadata.xml: Could not transfer
metadatamygroupId:artifactId:myversion/maven-metadata.xml from repoid
(repourl): Error getting file from SCM: No such provider: 'svn'.

 

the repository url exists, but is empty (I just created the directory).
However, I suspect something else is wrong because maven is complaining
about the missing provider. I've been googling this for most of
yesterday and today, but haven't found anyone doing this (or maybe it
just works for everyone else), so I'd appreciate any help/pointers you
could offer.

 

Thanks,

  --Christopher Taylor


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message