forked from apache/cxf
-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Cesar Hernandez edited this page Apr 17, 2024
·
12 revisions
How to build TT CXF
- 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
- 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
examplemvn -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 filenexus.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