[Geoserver-devel] [jira] Created: (GEOS-1839) Build failure in community/rest on annotations

Build failure in community/rest on annotations
----------------------------------------------

                 Key: GEOS-1839
                 URL: http://jira.codehaus.org/browse/GEOS-1839
             Project: GeoServer
          Issue Type: Bug
         Environment: Windows XP i386, jdk1.5.0_14
            Reporter: Ben Caradoc-Davies
            Assignee: Andrea Aime
             Fix For: 1.6.x

Build with "mvn install" fails in community/rest on community\rest\src\test\java\org\geoserver\rest\MapResourceTest.java
which uses annotations. Maven is set for -source 1.3 at this point.

Tail of output:

[INFO] -------------------------------------------------------------------------
---
[INFO] Building Geoserver REST Support Code
[INFO] task-segment: [eclipse:clean, clean, install, eclipse:eclipse]
[INFO] -------------------------------------------------------------------------
---
[INFO] [eclipse:clean]
[INFO] Deleting file: .project
[INFO] Deleting file: .classpath
[INFO] Deleting file: .wtpmodules
[INFO] Deleting file: .component
[INFO] Deleting file: org.eclipse.wst.common.component
[INFO] Deleting file: org.eclipse.wst.common.project.facet.core.xml
[INFO] Deleting file: org.eclipse.jdt.core.prefs
[INFO] [clean:clean]
[INFO] Deleting directory C:\Users\car605\geoserver\src\GeoServer-1.6\geoserver\
community\rest\target
[INFO] [cobertura:clean {execution: default}]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 11 source files to C:\Users\car605\geoserver\src\GeoServer-1.6\
geoserver\community\rest\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 2 source files to C:\Users\car605\geoserver\src\GeoServer-1.6\g
eoserver\community\rest\target\test-classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
C:\Users\car605\geoserver\src\GeoServer-1.6\geoserver\community\rest\src\test\ja
va\org\geoserver\rest\MapResourceTest.java:[25,17] annotations are not supported
in -source 1.3
(try -source 1.5 to enable annotations)
                @Override

C:\Users\car605\geoserver\src\GeoServer-1.6\geoserver\community\rest\src\test\ja
va\org\geoserver\rest\MapResourceTest.java:[25,17] annotations are not supported
in -source 1.3
(try -source 1.5 to enable annotations)
                @Override

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37 seconds
[INFO] Finished at: Wed Apr 02 12:23:54 WST 2008
[INFO] Final Memory: 29M/54M
[INFO] ------------------------------------------------------------------------

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira