You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by laredotornado-3 <la...@gmail.com> on 2013/06/28 16:11:53 UTC

Having trouble using Maven release plugin to deploy artifact to a dav repo

Hi,

I'm using Maven 3.0.3 with SVN 1.7.  I'm trying to use the Maven release
plugin to deploy my artifact, but I repeatedly run into the error, "No
connector available to access repository" when running

	mvn -e release:prepare release:perform

I have included the connector in my pom, adding to my confusion.  HEre is
the pom.xml file …


=====================Begin pom.xml file =========================
<?xml version="1.0"?>
<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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.mainco.subco</groupId>
	<artifactId>test</artifactId>
	<version>1.3-SNAPSHOT</version>
	<name>test</name>
	<url>http://maven.apache.org</url>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<extensions>
			<extension>
				<groupId>org.apache.maven.wagon</groupId>
				<artifactId>wagon-webdav-jackrabbit</artifactId>
				<version>1.0-beta-7</version>
			</extension>
		</extensions>
	</build>

	<scm>
	
<connection>scm:svn:https://subversion.nextdomain/svn/subco-digital.coderepo/trunk/test</connection>
	</scm>
	<distributionManagement>
		<repository>
			<id>cloudbees-private-repository</id>
			<url>dav:https://repository-vendor.forge.repovendor/release/</url>
		</repository>
	</distributionManagement>
</project>
=======================End pom.xml file =========================

Here is the complete log …

davea$ mvn -e release:prepare release:perform

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO]
------------------------------------------------------------------------
[INFO] Building test 1.3-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-release-plugin:2.0:prepare (default-cli) @ test ---
^@^CDaves-MacBook-Pro:test davea$ mvn release:prepare release:perform
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO]
------------------------------------------------------------------------
[INFO] Building test 1.3-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-release-plugin:2.0:prepare (default-cli) @ test ---
[INFO] Release preparation already completed. You can now continue with
release:perform, or start again using the -Dresume=false flag
[INFO] 
[INFO] --- maven-release-plugin:2.0:perform (default-cli) @ test ---
[INFO] Checking out the project to perform the release ...
[INFO] Executing: /bin/sh -c cd /Users/davea/Dropbox/workspace/test/target
&& svn --non-interactive checkout
https://subversion.nextdomain/svn/subco-digital.coderepo/tags/test-1.2
/Users/davea/Dropbox/workspace/test/target/checkout
[INFO] Working directory: /Users/davea/Dropbox/workspace/test/target
[INFO] Executing goals 'deploy'...
[WARNING] Maven will be executed in interactive mode, but no input stream
has been configured for this MavenInvoker instance.
[INFO] [INFO] Scanning for projects...
[INFO] [WARNING] 
[INFO] [WARNING] Some problems were encountered while building the effective
model for org.mainco.subco:test:jar:1.2
[INFO] [WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-javadoc-plugin is missing.
[INFO] [WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-deploy-plugin is missing.
[INFO] [WARNING] 'build.plugins.plugin.version' for
org.apache.maven.plugins:maven-source-plugin is missing.
[INFO] [WARNING] 
[INFO] [WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[INFO] [WARNING] 
[INFO] [WARNING] For this reason, future Maven versions might no longer
support building such malformed projects.
[INFO] [WARNING] 
[INFO] [INFO]                                                                         
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Building test 1.2
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] 
[INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
test ---
[INFO] [debug] execute contextualize
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] skip non existing resourceDirectory
/Users/davea/Dropbox/workspace/test/target/checkout/src/main/resources
[INFO] [INFO] 
[INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
test ---
[INFO] [INFO] Compiling 1 source file to
/Users/davea/Dropbox/workspace/test/target/checkout/target/classes
[INFO] [INFO] 
[INFO] [INFO] --- maven-resources-plugin:2.5:testResources
(default-testResources) @ test ---
[INFO] [debug] execute contextualize
[INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] [INFO] skip non existing resourceDirectory
/Users/davea/Dropbox/workspace/test/target/checkout/src/test/resources
[INFO] [INFO] 
[INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile
(default-testCompile) @ test ---
[INFO] [INFO] Compiling 1 source file to
/Users/davea/Dropbox/workspace/test/target/checkout/target/test-classes
[INFO] [INFO] 
[INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ test ---
[INFO] [INFO] Surefire report directory:
/Users/davea/Dropbox/workspace/test/target/checkout/target/surefire-reports
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.mainco.subco.AppTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01
sec
[INFO] 
[INFO] Results :
[INFO] 
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
[INFO] 
[INFO] [INFO] 
[INFO] [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ test ---
[INFO] [INFO] Building jar:
/Users/davea/Dropbox/workspace/test/target/checkout/target/test-1.2.jar
[INFO] [INFO] 
[INFO] [INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) @ test >>>
[INFO] [INFO] 
[INFO] [INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) @ test <<<
[INFO] [INFO] 
[INFO] [INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ test ---
[INFO] [INFO] Building jar:
/Users/davea/Dropbox/workspace/test/target/checkout/target/test-1.2-sources.jar
[INFO] [INFO] 
[INFO] [INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ test
---
[INFO] [INFO] 
[INFO] Loading source files for package org.mainco.subco...
[INFO] Constructing Javadoc information...
[INFO] Standard Doclet version 1.6.0_51
[INFO] Building tree for all the packages and classes...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/org/mainco/subco//App.html...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/org/mainco/subco//package-frame.html...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/org/mainco/subco//package-summary.html...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/org/mainco/subco//package-tree.html...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/constant-values.html...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/org/mainco/subco//class-use/App.html...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/org/mainco/subco//package-use.html...
[INFO] Building index for all the packages and classes...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/overview-tree.html...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/index-all.html...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/deprecated-list.html...
[INFO] Building index for all classes...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/allclasses-frame.html...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/allclasses-noframe.html...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/index.html...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/help-doc.html...
[INFO] Generating
/Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/stylesheet.css...
[INFO] [INFO] Building jar:
/Users/davea/Dropbox/workspace/test/target/checkout/target/test-1.2-javadoc.jar
[INFO] [INFO] 
[INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
test ---
[INFO] [INFO] Installing
/Users/davea/Dropbox/workspace/test/target/checkout/target/test-1.2.jar to
/Users/davea/.m2/repository/org/mainco/subco/test/1.2/test-1.2.jar
[INFO] [INFO] Installing
/Users/davea/Dropbox/workspace/test/target/checkout/pom.xml to
/Users/davea/.m2/repository/org/mainco/subco/test/1.2/test-1.2.pom
[INFO] [INFO] Installing
/Users/davea/Dropbox/workspace/test/target/checkout/target/test-1.2-sources.jar
to
/Users/davea/.m2/repository/org/mainco/subco/test/1.2/test-1.2-sources.jar
[INFO] [INFO] Installing
/Users/davea/Dropbox/workspace/test/target/checkout/target/test-1.2-javadoc.jar
to
/Users/davea/.m2/repository/org/mainco/subco/test/1.2/test-1.2-javadoc.jar
[INFO] [INFO] 
[INFO] [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ test ---
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [INFO] Total time: 4.507s
[INFO] [INFO] Finished at: Fri Jun 28 09:03:05 CDT 2013
[INFO] [INFO] Final Memory: 14M/81M
[INFO] [INFO]
------------------------------------------------------------------------
[INFO] [ERROR] Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on
project test: Failed to deploy artifacts/metadata: No connector available to
access repository cloudbees-private-repository
(dav:https://repository-vendor.forge.repovendor/release/) of type default
using the available factories WagonRepositoryConnectorFactory -> [Help 1]
[INFO] [ERROR] 
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug
logging.
[INFO] [ERROR] 
[INFO] [ERROR] For more information about the errors and possible solutions,
please read the following articles:
[INFO] [ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 9.339s
[INFO] Finished at: Fri Jun 28 09:03:05 CDT 2013
[INFO] Final Memory: 6M/81M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-release-plugin:2.0:perform (default-cli) on
project test: Maven execution failed, exit code: '1' -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException



--
View this message in context: http://maven.40175.n5.nabble.com/Having-trouble-using-Maven-release-plugin-to-deploy-artifact-to-a-dav-repo-tp5761093.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Having trouble using Maven release plugin to deploy artifact to a dav repo

Posted by Curtis Rueden <ct...@wisc.edu>.
Hi laredotornado,

> still ran into the same error

Sorry, not enough coffee this morning.

The developerConnection of SCM is used for committing/pushing source
changes. And of course distributionManagement is what is used for deploy of
Maven artifacts to your remote Maven repository.

So I am not sure what is wrong with your config, then. You don't have a
<snapshotRepository> but you are not trying to deploy a snapshot, right?
(Since you are using maven-release-plugin, I assume you are attempting to
deploy a release.)

In case it helps, here is the <distributionManagement> section of my
projects' parent POM, which works for us:

<distributionManagement>
 <repository>
<id>imagej.releases</id>
<name>ImageJ Releases Repository</name>
 <url>dav:http://maven.imagej.net/content/repositories/releases</url>
</repository>
 <snapshotRepository>
<id>imagej.snapshots</id>
<name>ImageJ Snapshots Repository</name>
 <url>dav:http://maven.imagej.net/content/repositories/snapshots</url>
</snapshotRepository>
 </distributionManagement>

We use Apache2 with WebDAV, with a Nexus on port 8081 and proxied through
port 80.

Have you verified that your DAV is working properly by connecting with a
known-working WebDAV client (e.g., http://www.davexplorer.org/)?

HTH,
Curtis


On Fri, Jun 28, 2013 at 11:10 AM, laredotornado-3
<la...@gmail.com>wrote:

> Hi, Per your suggestion, I added a developerConnection alongside the
> <connection> and upgraded to the 1.0 connector, but still ran into the same
> error.   Note that the distrubtionManagemetn is next to scm, not inside.
> Here is the updated pom ...
>
>
> <?xml version="1.0"?>
> <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/xsd/maven-4.0.0.xsd">
>         <modelVersion>4.0.0</modelVersion>
>         <groupId>org.mainco.subco</groupId>
>         <artifactId>test</artifactId>
>         <version>1.3-SNAPSHOT</version>
>         <name>test</name>
>         <url>http://maven.apache.org</url>
>         <properties>
>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>         </properties>
>         <dependencies>
>                 <dependency>
>                         <groupId>junit</groupId>
>                         <artifactId>junit</artifactId>
>                         <version>3.8.1</version>
>                         <scope>test</scope>
>                 </dependency>
>         </dependencies>
>
>         <build>
>                 <extensions>
>                         <extension>
>                                 <groupId>org.apache.maven.wagon</groupId>
>
> <artifactId>wagon-webdav-jackrabbit</artifactId>
>                                 <version>1.0</version>
>                         </extension>
>                 </extensions>
>         </build>
>
>         <scm>
>
> <connection>scm:svn:
> https://subversion.bidomain/svn/subco-digital.coderepo/repo</connection>
>
> <developerConnection>scm:svn:
> https://subversion.bidomain/svn/subco-digital.coderepo/repo
> </developerConnection>
>         </scm>
>         <distributionManagement>
>                 <repository>
>                         <id>cloudbees-private-repository</id>
>                         <url>dav:
> https://repository-vendor.forge.externaldomain/release/</url>
>                 </repository>
>         </distributionManagement>
> </project>
>
> Error was "Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on
> project test: Failed to deploy artifacts/metadata: No connector available
> to
> access repository cloudbees-private-repository
> (dav:https://repository-vendor.forge.externaldomain/release/) of type
> default using the available factories WagonRepositoryConnectorFactory ->
> [Help 1]".
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Having-trouble-using-Maven-release-plugin-to-deploy-artifact-to-a-dav-repo-tp5761093p5761109.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: Having trouble using Maven release plugin to deploy artifact to a dav repo

Posted by Martin Gainty <mg...@hotmail.com>.
did you make sure your server settings contains YOUR authentication credentials (supplied key)

to quote the doc:
"You should, of course, make sure that you can login into the specified SSH server by hand before attempting the deployment with Maven. Once you have verified that everything is setup correctly you can now deploy your artifacts using Maven:"
mvn deployhttp://maven.apache.org/plugins/maven-deploy-plugin/examples/deploy-ssh-external.html

Martin ______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.

 
> Date: Fri, 28 Jun 2013 09:10:31 -0700
> From: laredotornado@gmail.com
> To: users@maven.apache.org
> Subject: Re: Having trouble using Maven release plugin to deploy artifact to a dav repo
> 
> Hi, Per your suggestion, I added a developerConnection alongside the
> <connection> and upgraded to the 1.0 connector, but still ran into the same
> error.   Note that the distrubtionManagemetn is next to scm, not inside. 
> Here is the updated pom ...
> 
> 
> <?xml version="1.0"?>
> <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/xsd/maven-4.0.0.xsd">
> 	<modelVersion>4.0.0</modelVersion>
> 	<groupId>org.mainco.subco</groupId>
> 	<artifactId>test</artifactId>
> 	<version>1.3-SNAPSHOT</version>
> 	<name>test</name>
> 	<url>http://maven.apache.org</url>
> 	<properties>
> 		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> 	</properties>
> 	<dependencies>
> 		<dependency>
> 			<groupId>junit</groupId>
> 			<artifactId>junit</artifactId>
> 			<version>3.8.1</version>
> 			<scope>test</scope>
> 		</dependency>
> 	</dependencies>
> 
> 	<build>
> 		<extensions>
> 			<extension>
> 				<groupId>org.apache.maven.wagon</groupId>
> 				<artifactId>wagon-webdav-jackrabbit</artifactId>
> 				<version>1.0</version>
> 			</extension>
> 		</extensions>
> 	</build>
> 
> 	<scm>
> 	
> <connection>scm:svn:https://subversion.bidomain/svn/subco-digital.coderepo/repo</connection>
> 	
> <developerConnection>scm:svn:https://subversion.bidomain/svn/subco-digital.coderepo/repo</developerConnection>
> 	</scm>
> 	<distributionManagement>
> 		<repository>
> 			<id>cloudbees-private-repository</id>
> 			<url>dav:https://repository-vendor.forge.externaldomain/release/</url>
> 		</repository>
> 	</distributionManagement>
> </project>
> 
> Error was "Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on
> project test: Failed to deploy artifacts/metadata: No connector available to
> access repository cloudbees-private-repository
> (dav:https://repository-vendor.forge.externaldomain/release/) of type
> default using the available factories WagonRepositoryConnectorFactory ->
> [Help 1]".
> 
> 
> 
> --
> View this message in context: http://maven.40175.n5.nabble.com/Having-trouble-using-Maven-release-plugin-to-deploy-artifact-to-a-dav-repo-tp5761093p5761109.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
 		 	   		  

Re: Having trouble using Maven release plugin to deploy artifact to a dav repo

Posted by laredotornado-3 <la...@gmail.com>.
Hi, Per your suggestion, I added a developerConnection alongside the
<connection> and upgraded to the 1.0 connector, but still ran into the same
error.   Note that the distrubtionManagemetn is next to scm, not inside. 
Here is the updated pom ...


<?xml version="1.0"?>
<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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>org.mainco.subco</groupId>
	<artifactId>test</artifactId>
	<version>1.3-SNAPSHOT</version>
	<name>test</name>
	<url>http://maven.apache.org</url>
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
	</properties>
	<dependencies>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>3.8.1</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<extensions>
			<extension>
				<groupId>org.apache.maven.wagon</groupId>
				<artifactId>wagon-webdav-jackrabbit</artifactId>
				<version>1.0</version>
			</extension>
		</extensions>
	</build>

	<scm>
	
<connection>scm:svn:https://subversion.bidomain/svn/subco-digital.coderepo/repo</connection>
	
<developerConnection>scm:svn:https://subversion.bidomain/svn/subco-digital.coderepo/repo</developerConnection>
	</scm>
	<distributionManagement>
		<repository>
			<id>cloudbees-private-repository</id>
			<url>dav:https://repository-vendor.forge.externaldomain/release/</url>
		</repository>
	</distributionManagement>
</project>

Error was "Failed to execute goal
org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on
project test: Failed to deploy artifacts/metadata: No connector available to
access repository cloudbees-private-repository
(dav:https://repository-vendor.forge.externaldomain/release/) of type
default using the available factories WagonRepositoryConnectorFactory ->
[Help 1]".



--
View this message in context: http://maven.40175.n5.nabble.com/Having-trouble-using-Maven-release-plugin-to-deploy-artifact-to-a-dav-repo-tp5761093p5761109.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Having trouble using Maven release plugin to deploy artifact to a dav repo

Posted by Curtis Rueden <ct...@wisc.edu>.
Hi laredotornado,

> I repeatedly run into the error, "No connector available to access
> repository"

You also need a <developerConnection> in the <scm> section. That is what is
used for deploying. See:

    http://maven.apache.org/pom.html#SCM

I have never seen a <distributionManagement> inside an <scm> section
before...

Also, any reason you are using 1.0-beta-7 of wagon-webdav-jackrabbit rather
than version 1.0?

Regards,
Curtis


On Fri, Jun 28, 2013 at 9:11 AM, laredotornado-3 <la...@gmail.com>wrote:

> Hi,
>
> I'm using Maven 3.0.3 with SVN 1.7.  I'm trying to use the Maven release
> plugin to deploy my artifact, but I repeatedly run into the error, "No
> connector available to access repository" when running
>
>         mvn -e release:prepare release:perform
>
> I have included the connector in my pom, adding to my confusion.  HEre is
> the pom.xml file …
>
>
> =====================Begin pom.xml file =========================
> <?xml version="1.0"?>
> <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/xsd/maven-4.0.0.xsd">
>         <modelVersion>4.0.0</modelVersion>
>         <groupId>org.mainco.subco</groupId>
>         <artifactId>test</artifactId>
>         <version>1.3-SNAPSHOT</version>
>         <name>test</name>
>         <url>http://maven.apache.org</url>
>         <properties>
>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
>         </properties>
>         <dependencies>
>                 <dependency>
>                         <groupId>junit</groupId>
>                         <artifactId>junit</artifactId>
>                         <version>3.8.1</version>
>                         <scope>test</scope>
>                 </dependency>
>         </dependencies>
>
>         <build>
>                 <extensions>
>                         <extension>
>                                 <groupId>org.apache.maven.wagon</groupId>
>
> <artifactId>wagon-webdav-jackrabbit</artifactId>
>                                 <version>1.0-beta-7</version>
>                         </extension>
>                 </extensions>
>         </build>
>
>         <scm>
>
> <connection>scm:svn:
> https://subversion.nextdomain/svn/subco-digital.coderepo/trunk/test
> </connection>
>         </scm>
>         <distributionManagement>
>                 <repository>
>                         <id>cloudbees-private-repository</id>
>                         <url>dav:
> https://repository-vendor.forge.repovendor/release/</url>
>                 </repository>
>         </distributionManagement>
> </project>
> =======================End pom.xml file =========================
>
> Here is the complete log …
>
> davea$ mvn -e release:prepare release:perform
>
> [INFO] Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building test 1.3-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-release-plugin:2.0:prepare (default-cli) @ test ---
> ^@^CDaves-MacBook-Pro:test davea$ mvn release:prepare release:perform
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building test 1.3-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] --- maven-release-plugin:2.0:prepare (default-cli) @ test ---
> [INFO] Release preparation already completed. You can now continue with
> release:perform, or start again using the -Dresume=false flag
> [INFO]
> [INFO] --- maven-release-plugin:2.0:perform (default-cli) @ test ---
> [INFO] Checking out the project to perform the release ...
> [INFO] Executing: /bin/sh -c cd /Users/davea/Dropbox/workspace/test/target
> && svn --non-interactive checkout
> https://subversion.nextdomain/svn/subco-digital.coderepo/tags/test-1.2
> /Users/davea/Dropbox/workspace/test/target/checkout
> [INFO] Working directory: /Users/davea/Dropbox/workspace/test/target
> [INFO] Executing goals 'deploy'...
> [WARNING] Maven will be executed in interactive mode, but no input stream
> has been configured for this MavenInvoker instance.
> [INFO] [INFO] Scanning for projects...
> [INFO] [WARNING]
> [INFO] [WARNING] Some problems were encountered while building the
> effective
> model for org.mainco.subco:test:jar:1.2
> [INFO] [WARNING] 'build.plugins.plugin.version' for
> org.apache.maven.plugins:maven-javadoc-plugin is missing.
> [INFO] [WARNING] 'build.plugins.plugin.version' for
> org.apache.maven.plugins:maven-deploy-plugin is missing.
> [INFO] [WARNING] 'build.plugins.plugin.version' for
> org.apache.maven.plugins:maven-source-plugin is missing.
> [INFO] [WARNING]
> [INFO] [WARNING] It is highly recommended to fix these problems because
> they
> threaten the stability of your build.
> [INFO] [WARNING]
> [INFO] [WARNING] For this reason, future Maven versions might no longer
> support building such malformed projects.
> [INFO] [WARNING]
> [INFO] [INFO]
> [INFO] [INFO]
> ------------------------------------------------------------------------
> [INFO] [INFO] Building test 1.2
> [INFO] [INFO]
> ------------------------------------------------------------------------
> [INFO] [INFO]
> [INFO] [INFO] --- maven-resources-plugin:2.5:resources (default-resources)
> @
> test ---
> [INFO] [debug] execute contextualize
> [INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] [INFO] skip non existing resourceDirectory
> /Users/davea/Dropbox/workspace/test/target/checkout/src/main/resources
> [INFO] [INFO]
> [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
> test ---
> [INFO] [INFO] Compiling 1 source file to
> /Users/davea/Dropbox/workspace/test/target/checkout/target/classes
> [INFO] [INFO]
> [INFO] [INFO] --- maven-resources-plugin:2.5:testResources
> (default-testResources) @ test ---
> [INFO] [debug] execute contextualize
> [INFO] [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] [INFO] skip non existing resourceDirectory
> /Users/davea/Dropbox/workspace/test/target/checkout/src/test/resources
> [INFO] [INFO]
> [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile
> (default-testCompile) @ test ---
> [INFO] [INFO] Compiling 1 source file to
> /Users/davea/Dropbox/workspace/test/target/checkout/target/test-classes
> [INFO] [INFO]
> [INFO] [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ test ---
> [INFO] [INFO] Surefire report directory:
> /Users/davea/Dropbox/workspace/test/target/checkout/target/surefire-reports
> [INFO]
> [INFO] -------------------------------------------------------
> [INFO]  T E S T S
> [INFO] -------------------------------------------------------
> [INFO] Running org.mainco.subco.AppTest
> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01
> sec
> [INFO]
> [INFO] Results :
> [INFO]
> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
> [INFO]
> [INFO] [INFO]
> [INFO] [INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ test ---
> [INFO] [INFO] Building jar:
> /Users/davea/Dropbox/workspace/test/target/checkout/target/test-1.2.jar
> [INFO] [INFO]
> [INFO] [INFO] >>> maven-source-plugin:2.2.1:jar (attach-sources) @ test >>>
> [INFO] [INFO]
> [INFO] [INFO] <<< maven-source-plugin:2.2.1:jar (attach-sources) @ test <<<
> [INFO] [INFO]
> [INFO] [INFO] --- maven-source-plugin:2.2.1:jar (attach-sources) @ test ---
> [INFO] [INFO] Building jar:
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/test-1.2-sources.jar
> [INFO] [INFO]
> [INFO] [INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ test
> ---
> [INFO] [INFO]
> [INFO] Loading source files for package org.mainco.subco...
> [INFO] Constructing Javadoc information...
> [INFO] Standard Doclet version 1.6.0_51
> [INFO] Building tree for all the packages and classes...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/org/mainco/subco//App.html...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/org/mainco/subco//package-frame.html...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/org/mainco/subco//package-summary.html...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/org/mainco/subco//package-tree.html...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/constant-values.html...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/org/mainco/subco//class-use/App.html...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/org/mainco/subco//package-use.html...
> [INFO] Building index for all the packages and classes...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/overview-tree.html...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/index-all.html...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/deprecated-list.html...
> [INFO] Building index for all classes...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/allclasses-frame.html...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/allclasses-noframe.html...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/index.html...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/help-doc.html...
> [INFO] Generating
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/apidocs/stylesheet.css...
> [INFO] [INFO] Building jar:
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/test-1.2-javadoc.jar
> [INFO] [INFO]
> [INFO] [INFO] --- maven-install-plugin:2.3.1:install (default-install) @
> test ---
> [INFO] [INFO] Installing
> /Users/davea/Dropbox/workspace/test/target/checkout/target/test-1.2.jar to
> /Users/davea/.m2/repository/org/mainco/subco/test/1.2/test-1.2.jar
> [INFO] [INFO] Installing
> /Users/davea/Dropbox/workspace/test/target/checkout/pom.xml to
> /Users/davea/.m2/repository/org/mainco/subco/test/1.2/test-1.2.pom
> [INFO] [INFO] Installing
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/test-1.2-sources.jar
> to
> /Users/davea/.m2/repository/org/mainco/subco/test/1.2/test-1.2-sources.jar
> [INFO] [INFO] Installing
>
> /Users/davea/Dropbox/workspace/test/target/checkout/target/test-1.2-javadoc.jar
> to
> /Users/davea/.m2/repository/org/mainco/subco/test/1.2/test-1.2-javadoc.jar
> [INFO] [INFO]
> [INFO] [INFO] --- maven-deploy-plugin:2.7:deploy (default-deploy) @ test
> ---
> [INFO] [INFO]
> ------------------------------------------------------------------------
> [INFO] [INFO] BUILD FAILURE
> [INFO] [INFO]
> ------------------------------------------------------------------------
> [INFO] [INFO] Total time: 4.507s
> [INFO] [INFO] Finished at: Fri Jun 28 09:03:05 CDT 2013
> [INFO] [INFO] Final Memory: 14M/81M
> [INFO] [INFO]
> ------------------------------------------------------------------------
> [INFO] [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on
> project test: Failed to deploy artifacts/metadata: No connector available
> to
> access repository cloudbees-private-repository
> (dav:https://repository-vendor.forge.repovendor/release/) of type default
> using the available factories WagonRepositoryConnectorFactory -> [Help 1]
> [INFO] [ERROR]
> [INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with
> the -e switch.
> [INFO] [ERROR] Re-run Maven using the -X switch to enable full debug
> logging.
> [INFO] [ERROR]
> [INFO] [ERROR] For more information about the errors and possible
> solutions,
> please read the following articles:
> [INFO] [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 9.339s
> [INFO] Finished at: Fri Jun 28 09:03:05 CDT 2013
> [INFO] Final Memory: 6M/81M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-release-plugin:2.0:perform (default-cli) on
> project test: Maven execution failed, exit code: '1' -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please
> read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Having-trouble-using-Maven-release-plugin-to-deploy-artifact-to-a-dav-repo-tp5761093.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>