Skip to content
This repository was archived by the owner on Feb 7, 2018. It is now read-only.

How to build (and publish) the Java client tracker library using Apache Maven

Patrick Titzler edited this page Oct 15, 2015 · 1 revision

To build the client library (for re-distribution)

  • Run mvn clean package

To build and upload a new version of the client library and supporting artifacts to the Central Repository

If you are authorized to upload artifacts to the repository:

  • Add the following entries to your settings.xml file, replacing the YOUR__... placeholders with your information:
   <servers>
    <server>
      <id>ossrh</id>
      <username>YOUR_OSSRH_USERNAME</username>
      <password>YOUR_OSSRH_PASSWORD</password>
    </server>
  </servers>
  <profiles>
    <profile>
      <id>ossrh</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        <gpg.executable>gpg2</gpg.executable>
        <gpg.passphrase>YOUR_GPG_PASSPHRASE</gpg.passphrase>
      </properties>
    </profile>
  </profiles>