Ok I can upgrade to mvn 3 anyhow as far as I know we will get a lot of
warnings if the plugin versions are not specified.
Don't you think it could be a good option start defining some plugin
version?
Thank you,
Carlo



2013/4/22 Jody Garnett <jody.garn...@gmail.com>

> Can you update the version of maven used? I have not used maven 2 in some
> time.
>
> --
> Jody Garnett
>
> On 22/04/2013, at 8:31 PM, carlo cancellieri <
> carlo.cancelli...@geo-solutions.it> wrote:
>
> 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
>
>


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

-------------------------------------------------------
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to