/ Published in: DOS Batch
An example of uploading artifacts to a Maven repository formatted as DOS/Windows batch file.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
mvn deploy:deploy-file -DgroupId=org.acme ^ -DartifactId=acme-foo-driver ^ -Dversion=0.1 ^ -Dpackaging=jar ^ -Dfile=acme-foo.jar ^ -DrepositoryId=acme.foo.releases ^ -Durl=http://mavensvr.acme.com/repositories/acme.foo.releases :: Examples of adding either javadocs or sources to existing, note the -Dclassifier switch :: User cases: to disable generating POM, add :: -DgeneratePom=false -DpomFile=... :: To send sources, change packaging to java-source :: to add javadocs, -Djavadoc=... :: http://maven.apache.org/guides/mini/guide-3rd-party-jars-remote.html mvn deploy:deploy-file -Dfile=artsy-1.0.0-sources.jar ^ -Dclassifier=sources -DgroupId=org.acme ^ -DartifactId=artsy ^ -Dversion=1.0.0 ^ -Dpackaging=jar ^ -Durl=https://mavensvr.acme.com/nexus/content/repositories/thirdparty/ mvn deploy:deploy-file -Dfile=artsy-1.0.0-javadoc.jar ^ -Dclassifier=javadoc -DgroupId=org.acme ^ -DartifactId=artsy ^ -Dversion=1.0.0 ^ -Dpackaging=jar ^ -Durl=https://mavensvr.acme.com/nexus/content/repositories/thirdparty/