Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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?

    Scheduled Pinned Locked Moved Support
    progetjava
    2 Posts 2 Posters 65 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      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,
      Samuel

      Product: ProGet
      Version: 4.7.11

      1 Reply Last reply Reply Quote 1
      • benB Offline
        ben inedo-engineer
        last edited by

        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 deploy to upload the package to ProGet.

        1 Reply Last reply Reply Quote 0

        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
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation