wagon-git icon indicating copy to clipboard operation
wagon-git copied to clipboard

Cannot configure permanent installation

Open lrkwz opened this issue 8 years ago • 4 comments

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:

  1. Dowloaded wagon-git-0.2.5-shaded.jar into ~/.m2/lib
  2. 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

lrkwz avatar Nov 30 '17 18:11 lrkwz

Hi! now I have the same problem, did you finally resolve this issue?

josmamencia avatar Mar 21 '22 17:03 josmamencia

Hi! now I have the same problem, did you finally resolve this issue?

nope, sorry

lrkwz avatar Mar 29 '22 10:03 lrkwz

Please share what you get when using the -X switch for Maven in the command line.

mschonaker avatar May 02 '22 21:05 mschonaker

In my case, this is the output with mvn -X mvn-X.txt

josmamencia avatar May 03 '22 07:05 josmamencia