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: [email protected]
For additional commands, e-mail: [email protected]