Thanks Randall - all I could find was settings dealing with activation
of profiles depending on the JDK version, not the actual setting of the
JDK version.
I did try the following in settings.xml to set the plug-in variable
directly, but it didn't work (and it was just a guess):
<profiles>
<profile>
<id>java1.5-default-profile</id>
<properties>
<maven.compile.source>1.5</maven.compile.source>
<maven.compile.target>1.5</maven.compile.target>
</properties>
</profile>
</profiles>
<activeProfiles>
<activeProfile>java1.5-default-profile</activeProfile>
</activeProfiles>
-Oliver
Randall Fidler wrote:
Oliver,
Look at the profiles configuration in the settings.xml, I
believe there is a place there to specify the "overall" Java version to
use.
-Randall
-----Original Message-----
From: Oliver Newell [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 27, 2006 5:09 PM
To: [email protected]
Subject: Java 1.5 compilation setting in settings.xml?
Hello -
I'm wondering if there is a way to set the maven compiler plugin
defaults from the settings.xml file instead of the POM file?
Basically, I'm trying to make Java 1.5 the default instead of 1.4,
without having to add plug-in configuration info to each one of my POM
files.
I know there must be a way, and I searched the FAQ and the online book,
but I couldn't find the magic words!
-Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]