jeromebridge / osgi-tools

OSGi Bundles that help diagnose issues on OSGi containers.
3 stars 0 forks source link

osgi-tools

OSGi Bundles that help diagnose issues on OSGi containers. Testing a change.

Codeship Status for jeromebridge/osgi-tools

Encrypting Files For Rultor

How To Release To Maven Central Generate the keys. Accept the defaults and enter the required inputs. Leave the passphrase empty.

gpg --gen-key

Copy the generated keys.

cp ~/.gnupg/pubring.gpg .; cp ~/.gnupg/secring.gpg .

Make sure you include the gpg properties in your settings.xml

<settings>
  <profiles>
    <profile>
      <id>ci</id>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      <properties>
        <gpg.homedir>/home/r</gpg.homedir>
        <gpg.keyname>924CF0D9</gpg.keyname>
        <gpg.passphrase></gpg.passphrase>
      </properties>
    </profile>
  </profiles>
</settings>

Encrypt files.

rultor encrypt -p jeromebridge/osgi-tools pubring.gpg
rultor encrypt -p jeromebridge/osgi-tools secring.gpg
rultor encrypt -p jeromebridge/osgi-tools settings.xml

Local Build

VERSION=1.00.004
mvn versions:set "-DnewVersion=$VERSION"
find . -name "pom.xml" -exec mvn versions:set "-DnewVersion=${VERSION}" -f {} \;
mvn clean install