There is also Toolchains!

http://maven.apache.org/guides/mini/guide-using-toolchains.html

Of course not many people know about Toolchains, but for Java it does
actually work!

-Stephen

On 23 May 2011 15:31, Benson Margulies <[email protected]> wrote:
> You can run Maven under java6 and tell it that the target language
> level is 1.5 by configuring the maven-compiler-plugin. You can also
> use the animal sniffer to detect accidental use of 1.6 APIs in a 1.5
> environment.
>
> On Mon, May 23, 2011 at 10:14 AM, Adva Rotstein-Hayun
> <[email protected]> wrote:
>> Hi,
>> I have several projects that compile with java 5.
>> There is 1 project I would like to compile with java 6.
>> I added to that project pom the source and target attributes, however my 
>> JAVA_HOME environment variable is set to java 5.
>> How can I tell maven where is my java 6 home?
>> I can not change my JAVA_HOME on each run, I would like it to be 
>> automatically.
>> Can I define it in a pom.xml?
>>
>> Adva
>>
>>
>
> ---------------------------------------------------------------------
> 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