Hi all,
 I'm having some problem compiling unsupported extensions with $mvn -v
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_35
Java home: /usr/share/java/jdk1.6.0_35/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "3.2.0-40-generic-pae" arch: "i386" Family: "unix"

Seems that the default version of the maven-compiler-plugin has some
problem with the compatibility code level:
---------------------
no more tokens - could not parse error message: Annotation processing got
disabled, since it requires a 1.6 compliant JVM
----------
1. ERROR in
/home/carlo/work/code/java/geotools-8/modules/unsupported/feature-aggregate/src/main/java/org/geotools/data/aggregate/CountCallable.java
(at line 60)
        throw new IOException(message, e);
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^

no more tokens - could not parse error message: The constructor
IOException(String, Exception) is undefined
----------
----------
2. ERROR in
/home/carlo/work/code/java/geotools-8/modules/unsupported/feature-aggregate/src/main/java/org/geotools/data/aggregate/QueueReader.java
(at line 70)
        throw new IOException("Error while waiting for next feature", ie);
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
....
---------------------

I've temporarily solved fixing the version in the root pom at 2.3.1:

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.1</version>
        ...
</plugin>

Now it compiles without problems but it's not so clear to me if it's an
environment problem or something wrong in the default version of the plugin
or both.

How do you suggest to proceed?

Cheers,
Carlo

-- 
==
GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.geo-solutions.it for more information.
==

Dott. Carlo Cancellieri
@cancellieric
Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
mobile: +39 3371094494
fax:   +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to