wagon-git
wagon-git copied to clipboard
Cannot configure permanent installation
I wish to deploy some private 3rd party jars to a bitbucket repo. I configured according to http://synergian.github.io/wagon-git/installation.html:
- Dowloaded wagon-git-0.2.5-shaded.jar into ~/.m2/lib
- Added credentials in ~/.m2/settings.xml
<settings>
<servers>
<server>
<id>bitbucket</id>
<username>...</username>
</password>...</password>
...
But
mvn deploy:deploy-file $@ \
-DpomFile=./ext-library.pom \
-Dfile=./ext-library.jar \
-DgroupId=com.acme \
-DartifactId=ext-library \
-Dversion=1.0 \
-DgeneratePom=false \
-DrepositoryId=bitbucket \
-Durl=git:master://[email protected]:myaccount/mavenrepo.git
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-deploy-plugin:2.7:deploy-file (default-cli) @ standalone-pom ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.882 s
[INFO] Finished at: 2017-11-30T19:00:24+01:00
[INFO] Final Memory: 8M/188M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli) on project standalone-pom: Failed to deploy artifacts/metadata: Cannot access git:master://[email protected]:myaccount/mavenrepo.git with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access git:master://[email protected]:myaccount/mavenrepo.git using the registered transporter factories: WagonTransporterFactory: java.util.NoSuchElementException
[ERROR] role: org.apache.maven.wagon.Wagon
[ERROR] roleHint: git
[ERROR] -> [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
Hi! now I have the same problem, did you finally resolve this issue?
Hi! now I have the same problem, did you finally resolve this issue?
nope, sorry
Please share what you get when using the -X switch for Maven in the command line.
In my case, this is the output with mvn -X mvn-X.txt