Skip to content

Instantly share code, notes, and snippets.

@mtovmassian
Last active October 17, 2022 09:55
Show Gist options
  • Save mtovmassian/ed8c98af5e5667349944af83dd41da35 to your computer and use it in GitHub Desktop.
Save mtovmassian/ed8c98af5e5667349944af83dd41da35 to your computer and use it in GitHub Desktop.
Deploy Jaunt Jar to Gitlab package registry
# https://jaunt-api.com/download.htm
# https://stackoverflow.com/questions/60156835/how-to-deploy-private-jar-to-gitlab-maven-repository*
PROJECT_ID=""
GITLAB_MAVEN_REPOSITORY=""
mvn deploy:deploy-file \
-DgroupId=com \
-DartifactId=jaunt \
-Dversion=1.6.0 \
-Dpackaging=jar \
-Dfile=jaunt1.6.0_2yr.jar \
-DgeneratePom=true \
-Durl=https://gitlab.com/api/v4/projects/"$PROJECT_ID"/packages/maven \
-DrepositoryId="$GITLAB_MAVEN_REPOSITORY"
mvn deploy:deploy-file \
-DgroupId=com \
-DartifactId=jauntium \
-Dversion=0.9 \
-Dpackaging=jar \
-Dfile=jauntium0.9.jar \
-DgeneratePom=true \
-Durl=https://gitlab.com/api/v4/projects/"$PROJECT_ID"/packages/maven \
-DrepositoryId="$GITLAB_MAVEN_REPOSITORY"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment