Although if you want to tinker with the source and target settings
just do this:
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
configuration
source1.5/source
target1.5/target
/configuration
/plugin
/plugins
link is at http://maven.apache.org/maven2/plugins/maven-compiler-
plugin/howto.html
- AW
On 26 Oct 2005, at 13:33, Ashley Williams wrote:
Make sure you kick off mvn using java 5 - just check and change the
value
of JAVA_HOME accordingly at the command line.
I don't believe you need to modify Java 5 settings any further from
within
the pom from what you are saying here.
AW
On 26 Oct 2005, at 12:56, Jean-Michel TOURNIE wrote:
Hi,
I am using Maven 2.0 .
I can't compile my project using JDK 5.0, I have the following error:
--
F:\TestMaven2\2.0\MyProject\src\main\java\testm2\Jdk5.java:[35,16]
generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
--
I don't find how to specify my project using JDK 1.5, I try the
following commands:
mvn -DcompilerVersion=1.5
-Dsource=1.5
-Dtarget=1.5
-Dmaven.compile.source=1.5
-Dmaven.compile.target=1.5
compiler:compile
mvn -Dmaven.compile.source=1.5
-Dmaven.compile.target=1.5
compiler:compile
Should I modify my pom.xml ?
Thanks for your help
J-Michel
-
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]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]