add the following block to your pom.xml
<project>
....
<build>
....
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
JesseLiu
----- Original Message -----
From: "Owen Thomas" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, March 15, 2007 1:48 PM
Subject: Generics and java version.
Hello.
Still new to Maven, I'm trying to port a project from Ant to Maven, and get the
following error...
H:\CurrentProjects\JVMHost\src\main\java\au\net\wcg\jvmhost\CommandReturn.java:[18,18]
generics are not supported in -source 1.3
[INFO](try -source 1.5 to enable generics)
I found this reference:
http://forum.springframework.org/showthread.php?t=24913, but it talks of
changing my "parent POM". I can still count the number of times I can count the
times I've used Maven on one hand, and I am yet to receive enlightenment
vis-à-vis the nature of the POM.
How do I get maven to compile my project under 1.5? If anyone uses Mavenide for
NetBeans, knowing of a NB specific way of doing this would be great too.
Your help is greatly appreciated,
Owen.