Maven – Upload artifacts to Repositories

mvn deploy:deploy-file -Durl=$REPOSITORY_URL -DrepositoryId=$REPOSITORY_ID -Dfile=$ARTIFACT_FILE_PATH -DpomFile=$ARTIFACT_POM_FILE -DgroupId=$ARTIFACT_GROUP_ID -DartifactId=$ARTIFACT_ID -Dversion=$ARTIFACT_VERSION -Dpackaging=jar or plugin -DgeneratePom=false Eg : Uploading maven plugin/jar deploy:deploy-file -Durl=http://mvnrepositories.com/artifact/test-snapshots/

Continue reading »