Specify the source and target version of JDK thus in ur pom:

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

Regards,
Subhash.

On 11/8/06, David Lund <[EMAIL PROTECTED]> wrote:
JDK Problem :

Im using Ubuntu Dapper Drake v6.06.

I have an existing project that I'm trying to convert to maven2 from
ant. However, I'm having JDK issues, basically its compiling in JDK 1.3
rather than 1.5, see error below:

LinkGroup.java:[16,25] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
        public Collection<ContentLink> getEntities();

I have set the JAVA_HOME variable to point to JDK 1.5, however the
interesting thing is I dont have java 1.3 installed so I dont know where
its picking that version up from. Could this be a Unbuntu problem, as I
noticed Maven2 hadn't been tested on it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Regards,
Subhash Chandran S

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to