You could define the values as properties like
<source>${jdk.version}</source> and then define jdk.version to be 1.4 in
your parent pom. Then in your settings, you could choose to override and
use 1.5 only. Or better, you just define jdk.version in your projects
that need 1.5. (this saves you from having to redefine the whole plugin
block over and over)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Saturday, December 01, 2007 12:37 PM
To: [email protected]
Subject: defining source and target VM for all Maven projects

Hi,

since my projects usually use 1.5 syntax, I want do define this as the
default for all my projects. As I understand, it is possible to define
this in the POM of each project (which I definitely do not want). There
is
also the possibility of inheriting from a parent POM: However, is it
possible to just define that my installation of maven 2 always uses Java
1.5?
If this is not the case, and the solution is the use of a parent POM,
where would this parent POM should be placed?

Or is there another preferred way of setting 1.5 as default?

Regards
Marco


---------------------------------------------------------------------
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]

Reply via email to