Skip to content
Cesar Hernandez edited this page Apr 17, 2024 · 12 revisions

How to build TT CXF

Branch 3.1.x-TT.x-release

  • Apache Maven 3.3.9
  • Java version: 8

Release process

  • mvn -DpreparationGoals=clean release:prepare -DreleaseVersion=3.1.19-TT.6 -DdevelopmentVersion=3.1.19-TT.7-SNAPSHOT
  • git push
  • mvn release:clean
  • git checkout cxf-3.1.19-TT.6
  • mvn clean install -DskipTests
  • mvn deploy -Dmaven.test.skip

Branch 2.6.x-TT.x-release

  • Apache Maven 3.3.9
  • Java version: 1.7.0_79
  • export MAVEN_OPTS="-Xmx12000m -XX:MaxPermSize=2048m -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2"
  • export JAVA_OPTS="-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2"
  • You maven goals needs to have: -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 example mvn -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 clean install

Release process

  • Fix versions if need it 59 files: wrong: 2.6.17-TT.7-SNAPSHOT good: 2.6.17-TT.8-SNAPSHOT
  • mvn -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 -DpreparationGoals=clean release:prepare -DreleaseVersion=2.6.17-TT.8 -DdevelopmentVersion=2.6.17-TT.9-SNAPSHOT
  • git push
  • git push tomitribe --tags
  • mvn release:clean
  • git checkout cxf-2.6.17-TT.8
  • mvn -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 clean install -DskipTests
  • mvn deploy -Dmaven.test.skip

Troubleshooting

If you get the following exception:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> 

Make sure to import the Nexus certificate into your cacerts:

  • openssl s_client -connect repository.tomitribe.com:443 and then create a file nexus.crt with the certificate.
  • keytool -importcert -alias tomitribe-Nexus -keystore cacerts -file nexus.crt

Note: Remember that cacerts is a file located usually in JAVA_HOME/jre/lib/security

Clone this wiki locally