I am correctly deploying my JAR file using the command line below, however I would like to create a pom.xml
file and invoke mvn deploy
or something similar to deploy this package to github packages.
Is this possible? How can I do it?
mvn deploy:deploy-file -DgroupId=com.soma -DartifactId=my-module \
-Dversion=1.0.0 -Dpackaging=jar -Dfile=my-module.jar \
-DrepositoryId=github \
-Durl=https://maven.pkg.github.com/$USER/my-artifacts
In other words, I prefer to use Maven to automate my workflow over bash shell.
I appreciate any help.