mschonaker / wagon-git

Git Wagon for Apache Maven
http://synergian.github.io/wagon-git/
83 stars 32 forks source link

Cannot configure permanent installation #50

Open lrkwz opened 6 years ago

lrkwz commented 6 years ago

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://git@bitbucket.org: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://git@bitbucket.org:myaccount/mavenrepo.git with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access git:master://git@bitbucket.org: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
josmamencia commented 2 years ago

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

lrkwz commented 2 years ago

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

nope, sorry

mschonaker commented 2 years ago

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

josmamencia commented 2 years ago

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