пт, 19 июл. 2019 г. в 13:20, Rainer Jung <rainer.j...@kippdata.de>: > > I have the same problem (Java version needed for TLS based downloads) > here for TC 7 and decided to split my build scripts in a download phase > using higher Java and the build phase using minimal Java. I think we > should use our java.7.home property for the download steps. > > For TC 7 I currently run the following targets using Java 7 instead of 6: > > ant download-dist > ant download-validate > ant download-compile > ant download-test-compile > ant download-cobertura > ant extras-commons-logging-prepare > ant extras-webservices-prepare > > In addition, some time back I decided to set ANT_OPTS which worked > around any download problems using Java 7. As ANT_OPTS for TC9, TC8.5 > and the Java 7 parts of TC 7 I use: > > -Djavax.net.ssl.trustStore=/path/to/my/cacerts > -Djavax.net.ssl.trustStorePassword=mypass > -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 > > and for the Java 6 parts of TC 7 build the last part switches to > > -Dhttps.protocols=TLSv1 > > (not sure that's needed)
Interesting. Thank you for sharing. > For the above TC 7 download steps, I also add to ANT_OPTS: > > -Dno.build.dbcp=true > > With that build recent versions worked for me. > I use the following command lines to download dependencies when verifying releases. as a separate step that I run with Java 8: For Tomcat 7: ant -Dno.build.dbcp=true -Dtest.cobertura=true -Dexecute.validate=true download-compile,download-test-compile,download-dist,download-validate,download-cobertura,extras-commons-logging-prepare,extras-webservices-prepare The above can be switched to calling "download-deps" target now. but -D have to remain. For Tomcat 8.5: ant -Dtest.cobertura=true -Dexecute.validate=true -Dexecute.findbugs=true download-compile,download-test-compile,download-dist,download-validate,download-cobertura,download-findbugs,extras-webservices-prepare For Tomcat 9.0: ant -Dtest.cobertura=true -Dexecute.validate=true -Dexecute.findbugs=true download-compile,download-test-compile,download-dist,download-validate,download-cobertura,download-findbugs,download-bnd Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org