Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
How can I upload a jar to maven with maven's deploy command?
-
I can upload a jar to maven feed by using the ProGet web GUI, and how can I achieve it by using command line? Just like nuget.exe for C# packages.
Thanks,
SamuelProduct: ProGet
Version: 4.7.11 -
According to the mvn deploy documentation, you'd need this in the POM file for the project:
<distributionManagement> <repository> <id>myproget</id> <name>My ProGet Feed</name> <url>http://progethostname/maven2/feedname</url> </repository> </distributionManagement>If the feed requires authentication, you also need this in settings.xml (the
<id>values have to match):<server> <id>myproget</id> <username>username</username> <password>password</password> </server>If you want your snapshot versions deployed to a separate feed, you can add a
<snapshotRepository>to<distributionManagement>in the same format as<repository>above.After that, the command is just
mvn deployto upload the package to ProGet.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login