The toolchain type id for JDK is "jdk".
Predefined identification tokens, for requirement matching, are:
There is only one configuration element named "jdkHome". It designates the root directory of JDK installation.
<toolchains> <toolchain> <type>jdk</type> <provides> <version>1.5</version> <vendor>sun</vendor> <id>for_mevenide</id> </provides> <configuration> <jdkHome>/home/mkleint/javatools/jdk</jdkHome> </configuration> </toolchain> [...] </toolchains>
For selection of toolchain for use by the project, the following conditions are matched against the definitions in the toolchains.xml file:
All conditions need to be satisfied in a sucessfully matched toolchain.
<project> [...] <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-toolchains-plugin</artifactId> <version>1.1</version> <executions> <execution> <goals> <goal>toolchain</goal> </goals> </execution> </executions> <configuration> <toolchains> <jdk> <version>[1.5,)</version> </jdk> </toolchains> </configuration> </plugin> </plugins> </build> [...] </project>