For some reason, you compiler is not compiling generics, ie it is
either pre JDK 1.5 or its configured to build source code as pre 1.5
can you try
javac --version
cd /usr/local/src/shindig/java/common/src/main/java/
javac GenericTest.java
If thats ok, then you maven installation is not good and for some
reason, maven is picking up the wrong compiler, wong level of
compliance or perhaps tools.jar,
If that is not ok, then its nothing to do with the maven
configuration and its your JDK that is corrupt (if 1.5,1.6), wrong if
pre 1.5.
Ian
On 28 Apr 2008, at 03:24, Jason Burgess wrote:
Ian,
Here's the result:
[INFO] Compilation failure
no more tokens - could not parse error message: ----------
1. ERROR in
/usr/local/src/shindig/java/common/src/main/java/GenericTest.java
(at line
7)
public List<String> stringList = new ArrayList<String>();
^^^^
no more tokens - could not parse error message: The type List is not
generic; it cannot be parameterized with arguments <String>
----------
2. ERROR in
/usr/local/src/shindig/java/common/src/main/java/GenericTest.java
(at line
7)
public List<String> stringList = new ArrayList<String>();
^^^^^^^^^
Sorry it took me so long to respond, I didn't have a chance to try
it on
Friday between other projects.
Jason
-----Original Message-----
From: Ian Boston [mailto:[EMAIL PROTECTED] On Behalf Of Ian
Boston
Sent: Thursday, April 24, 2008 6:05 PM
To: [email protected]
Subject: Re: Unable to build trunk
Can you try dropping
-----------------------------------------------------------------
import java.util.ArrayList;
import java.util.List;
public class GenericTest {
public List<String> stringList = new ArrayList<String>();
}
----------------------------------------------------------------
into java/common/src/main/java/GenericTest.java
and doing a mvn clean install
Ian
On 24 Apr 2008, at 23:51, Jason Burgess wrote:
There shouldn't be. I have also tried deleting ~/.m2, deleting the
shiding
directory and checking it out again.
Prior to trying to run shindig, I didn't have the JDK or Maven on
this box.
Jason
-----Original Message-----
From: Ian Boston [mailto:[EMAIL PROTECTED] On Behalf Of Ian
Boston
Sent: Thursday, April 24, 2008 5:05 PM
To: [email protected]
Subject: Re: Unable to build trunk
Do you have anything that could be overriding the <source>1.5</
source> or <target>1.5</target> in the maven-compiler-plugin plugin
settings
Is there a settings.xml in ~/.m2
Ian