Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


  1. You will need to BUILD this project first.

    $ export JAVA_HOME=/opt/sun-java2-8.0/; mvn clean install

  1. Once built, you can then configure its use. See pom-sync.xml for a sample invocation, and run it like this:

    $ export JAVA_HOME=/opt/sun-java2-8.0/; mvn clean install -f pom-sync.xml -Doperation=pull

  1. NOTE: if your Jenkins/Hudson server runs on https, must first import its certificate or you may get this error: PKIX path building failed: unable to find valid certification path to requested target
    1. AS USER (with Firefox):

      Browse to & accept the cert. Log in using kerberos login.

      Menu/Edit > Preferences > Advanced > Certificates/Encryption > View Certificates > Servers > find jenkins cert > Export to file /tmp/
    2. AS ROOT (default password is "changeit"), import the cert into your cacerts keystore:

      /opt/sun-java2-8.0/jre/bin/keytool -list -keystore /opt/sun-java2-8.0/jre/lib/security/cacerts | grep jenkins
      # (if you need to replace a cert, delete the old one first)
      /opt/sun-java2-8.0/jre/bin/keytool -delete -alias -keystore /opt/sun-java2-8.0/jre/lib/security/cacerts
      /opt/sun-java2-8.0/jre/bin/keytool -import -alias -keystore /opt/sun-java2-8.0/jre/lib/security/cacerts -file /tmp/
      /opt/sun-java2-8.0/jre/bin/keytool -list -keystore /opt/sun-java2-8.0/jre/lib/security/cacerts | grep jenkins
    3. Or, to apply this change to ALL your existing JDKs, you can run this script AS ROOT after exporting your cert:

      if [[ ! $1 ]]; then echo "Usage: $0 /path/to/"; exit; fi
      echo "Your cacert password is probably 'changeit', unless you changed it."
      for k in `whereis keytool | sort`; do
          if [[ -x ${k} ]] && [[ ! -L ${k} ]]; then
              echo "Loading cert into $d ..."
              ${k} -delete -alias -keystore ${d}/jre/lib/security/cacerts
              ${k} -import -alias -keystore ${d}/jre/lib/security/cacerts -file ${cert}
              ${k} -list -keystore ${d}/jre/lib/security/cacerts | grep -A1 jenkins
  1. Make sure that JAVA_HOME is set to the path where you imported the cert, eg.:

    export JAVA_HOME=/opt/sun-java2-8.0/; mvn clean install -f pom-sync.xml -Doperation=pull