I have maven-compiler-plugin in my pom file as follows but compiler get angry with generic parameters. my maven version is "Apache Maven 3.0.3 (r1075438; 2011-02-28 19:31:09+0200)"

```
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.3.2</version>
    <configuration>
        <source>1.6</source>
        <target>1.6</target>
        <compilerVersion>1.6</compilerVersion>
    </configuration>
</plugin>

```

and the class which compiler get angry is as follows

```
List<EulTransactionHistory> list = hibernateTemplate.findByCriteria(criteria, -1, 1);
EulTransactionHistory existingRecord = DBUtils.oneAndOnlyOne(list);

```

and the spec for DBUtils.oneAndOnlyOne is as follows

```
public static <T> T oneAndOnlyOne(List<T> list) {...}

```

finally the exception is

```
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project etlscheduler: Compilation failure: Compilation failure SchedulerDaoImpl.java:[329,18] incompatible types
found   : java.lang.Object
required: com.aric.etlscheduler.domain.EulTransactionHistory

```

Moreover when I compile this project with eclipse it compiles sucessfully.