Good day to you, Oliver, Best if you would create a parent pom for your projects. Then configure here your common configurations to be used through out your projects.
In this way, your builds would still be reproduce-able. Note that the settings.xml does not get deployed. Thus, if somebody would build your project in their machine, there is a chance that it would fail since the configurations are not known in his machine. An example of this parent pom is a Company POM. A Company POM is a pom inherited by maven projects of that project. In this way, that company's projects inherits configurations that the company requires. Cheers, Franz Oliver Newell wrote: > > 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] > > > -- View this message in context: http://www.nabble.com/Java-1.5-compilation-setting-in-settings.xml--tf2888305s177.html#a8073453 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
