Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example if you only want to run on Tomcat 8.x you'd writerun: mvn -Ptomcat8x clean install

...

  • Edit the .m2/settings.xml file from your home directory (C:\Documents and Settings\username or C:\Users\username on Windows),
  • Comment out the <proxy> element and fill in the proxy server settings accordingly.

HTTPS / TLS handshake errors (in Java 7)

With Java 7 you might get errors such as: Received fatal alert: protocol_version

To work around the issue, enable the TLS 1.2 protocol using the associated Java property - For the build itself, as well as for tests (run using surefire and with the invoker plugin). Example:

mvn -Dhttps.protocols=TLSv1.2 -DargLine="-Dhttps.protocols=TLSv1.2" -Dinvoker.mavenOpts="-Dhttps.protocols=TLSv1.2" clean install