Mercurial > hg > Blog
changeset 56:483a5f25ccb6
update the nabble link
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Sun, 04 Jan 2015 05:55:08 +0100 |
parents | 3f6c9b512b85 |
children | 7897bdc57faf |
files | content/Maven/default-jdk-for-cross-jdk-profiles.md |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/content/Maven/default-jdk-for-cross-jdk-profiles.md Sat Jan 03 04:53:54 2015 +0100 +++ b/content/Maven/default-jdk-for-cross-jdk-profiles.md Sun Jan 04 05:55:08 2015 +0100 @@ -4,7 +4,7 @@ In my [previous blog post about Cross JDK project files with Maven](|filename|./cross-jdk-project-files-continued.md) I described a way to generate a custom JDK name into the Eclipse project files using the `maven-eclipse-plugin`. -That approach still had one shortcoming: you would either have to rename your JDK to match the default configured in the POM or you would have to give the JDK name on the commandline. Now I stumbled over a [good tip on the maven user's list](http://n2.nabble.com/org.apache.maven.plugins%3Amaven-eclipse-plugin%3A2.7-SNAPSHOT-ignores--maven-compiler-plugin-tp2689287p2689425.html) that allows you to configure a sensible, cross platform default for the JDK. +That approach still had one shortcoming: you would either have to rename your JDK to match the default configured in the POM or you would have to give the JDK name on the commandline. Now I stumbled over a [good tip on the maven user's list](http://maven.40175.n5.nabble.com/org-apache-maven-plugins-maven-eclipse-plugin-2-7-SNAPSHOT-ignores-maven-compiler-plugin-td120284.html#a120285) that allows you to configure a sensible, cross platform default for the JDK. In short, the trick is not to use a concrete name of a JDK but to specify the name of a Java runtime environment. Eclipse automatically tries to match any configured JDK to an internal list of runtime environments.