Maven doesn't have a compiler, it just uses whatever JDK you have set up.
The build fails for me with Ant as well, using the Sun 1.6.x JDK.

-Stephen

On 7/14/07, James M Snell <[EMAIL PROTECTED]> wrote:

Building this with Ant using the IBM 1.5.x jdk works just fine.
Building with Eclipse also works. Before we roll this back to returning
Element instead of <T extends Element>T, I would very much prefer if we
  could find a way of getting the maven compiler to work properly.

- James

Rob Evans (JIRA) wrote:
> Type parameters of <T> cannot be determined
> -------------------------------------------
>
>                  Key: ABDERA-51
>                  URL: https://issues.apache.org/jira/browse/ABDERA-51
>              Project: Abdera
>           Issue Type: Bug
>     Affects Versions: 0.3.0
>             Reporter: Rob Evans
>              Fix For: 0.3.0
>
>
> Can't build the trunk. Details follow:
>
> javac 1.5.0_12
>
> $ mvn -version
> Maven version: 2.0.6
>
>
> [INFO]
----------------------------------------------------------------------------
> [INFO] Building Abdera Parser
> [INFO]    task-segment: [install]
> [INFO]
----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Compiling 5 source files to
d:\pl\applications\rest-work\abdera.trunk\parser\target\classes
> [INFO]
------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
------------------------------------------------------------------------
> [INFO] Compilation failure
>
>
d:\pl\applications\rest-work\abdera.trunk\parser\src\main\java\org\apache\abdera\parser\stax\FOMFactory.java:[397,21]
type parameters of <T>T cannot be determined; no unique maximal instance
exists for type variable T with upper bounds T,or
> g.apache.abdera.model.Element
>
>
d:\pl\applications\rest-work\abdera.trunk\parser\src\main\java\org\apache\abdera\parser\stax\FOMFactory.java:[403,32]
type parameters of <T>T cannot be determined; no unique maximal instance
exists for type variable T with upper bounds T,
org.apache.abdera.model.Element
>
>
d:\pl\applications\rest-work\abdera.trunk\parser\src\main\java\org\apache\abdera\parser\stax\FOMFactory.java:[407,30]
type parameters of <T>T cannot be determined; no unique maximal instance
exists for type variable T with upper bounds T,
org.apache.abdera.model.Element
>
>
d:\pl\applications\rest-work\abdera.trunk\parser\src\main\java\org\apache\abdera\parser\stax\FOMFactory.java:[413,30]
type parameters of <T>T cannot be determined; no unique maximal instance
exists for type variable T with upper bounds T,
org.apache.abdera.model.Element
>
>
>




--
Stephen Duncan Jr
www.stephenduncanjr.com

Reply via email to