Posted By

m1b on 05/10/12


Tagged


Versions (?)

Maven artifact parts upload


 / Published in: DOS Batch
 

An example of uploading artifacts to a Maven repository formatted as DOS/Windows batch file.

  1. mvn deploy:deploy-file -DgroupId=org.acme ^
  2. -DartifactId=acme-foo-driver ^
  3. -Dversion=0.1 ^
  4. -Dpackaging=jar ^
  5. -Dfile=acme-foo.jar ^
  6. -DrepositoryId=acme.foo.releases ^
  7. -Durl=http://mavensvr.acme.com/repositories/acme.foo.releases
  8. :: Examples of adding either javadocs or sources to existing, note the -Dclassifier switch
  9. :: User cases: to disable generating POM, add
  10. :: -DgeneratePom=false -DpomFile=...
  11. :: To send sources, change packaging to java-source
  12. :: to add javadocs, -Djavadoc=...
  13. :: http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html
  14. mvn deploy:deploy-file -Dfile=artsy-1.0.0-sources.jar ^
  15. -Dclassifier=sources
  16. -DgroupId=org.acme ^
  17. -DartifactId=artsy ^
  18. -Dversion=1.0.0 ^
  19. -Dpackaging=jar ^
  20. -Durl=https://mavensvr.acme.com/nexus/content/repositories/thirdparty/
  21.  
  22. mvn deploy:deploy-file -Dfile=artsy-1.0.0-javadoc.jar ^
  23. -Dclassifier=javadoc
  24. -DgroupId=org.acme ^
  25. -DartifactId=artsy ^
  26. -Dversion=1.0.0 ^
  27. -Dpackaging=jar ^
  28. -Durl=https://mavensvr.acme.com/nexus/content/repositories/thirdparty/

Report this snippet  

You need to login to post a comment.