I have a piece of code which has been compiled with java version 1.5 ( both source and target are set to 1.5 on maven compile plugin )
<source>1.5</source>
<target>1.5</target>
What I want to do now is to compile them for an application ( the source is a plug in for a main application )which is upgraded to java version 1.6
In this case;
do I need to use compile plugin with the parameters;
<source>1.5</source>
<target>1.6</target>
or
<source>1.6</source>
<target>1.6</target>
plus; do I need to set the java home and path to java 1.6 or plugin will use the correct artifacts ( may be by downloading ) to compile for java 1.6 ??
regards..