Apache

Specimen. A proposed redesign of maven.apache.org, not the official Apache Maven site. The official site is maven.apache.org. About this example

Docs

Java versions and toolchains

Compile for an older Java, or build with a different JDK than the one Maven runs on.

  • Toolchains explainedWhy Maven keeps the JDK it runs on apart from the JDK that compiles and tests your code, how plugins find that JDK, and how it differs from release.
  • Build with another JDKCompile, test and package a project with a JDK of your choice while Maven itself keeps running on the JDK in JAVA_HOME.
  • Compile for an older Java versionBuild classes that run on an older Java than the JDK you build with, check them against that Java's API, and run the tests on it.
  • toolchains.xml referenceWhere Maven reads toolchains.xml, the elements of a JDK toolchain, how a requirement matches an entry, and which plugins use the selected toolchain.