Skip to content

Latest commit

 

History

History
62 lines (46 loc) · 2.67 KB

PublishingToMavenCentral.md

File metadata and controls

62 lines (46 loc) · 2.67 KB

Publishing JNA to Maven Central

One Time

  • Set up your gpg keys as described here. Make sure you distribute your public key.

  • Make sure you have a settings.xml file (in directory: ${user.home}/.m2/) as described at the bottom of 7a1 here. For example:

      <settings>
      ...
          <servers>
          ...
              <!-- java.net repos for sync to maven central -->
              <server>
                  <id>snapshots.java.net</id>
                  <username>myjavanetuser</username>
                  <password>myjavanetpwd</password>
              </server>
              <server>
                  <id>staging.java.net</id>
                  <username>myjavanetuser</username>
                  <password>myjavanetpwd</password>
              </server>
          ...
          </servers>
      ...
      <settings>
    

    Because we are still deploying to maven repositories via java.net, see Java.net Maven Repository Usage Guide for more info.

Publish Snapshot

At any time and in preparation for a release

Before doing a full jna release, we can publish a development SNAPSHOT of the "next" release for people to test. The SNAPSHOT will be published in the staging repository:

https://maven.java.net/content/repositories/snapshots/

see: https://maven.java.net/content/repositories/snapshots/net/java/dev/jna/ for the various jars.

To publish a development SNAPSHOT do the following:

    git checkout -- .
    ant deploy

Note: Unlike stable, unchanging releases, a SNAPSHOT may be re-published at any time (and is typically deleted after a full release is performed).

Publish Release