Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.12
-
None
-
Don't Know (Unsure) - The default level
Description
Right now use of the try-with-resources paradigm introduced within the most recent patch at OODT-927 will break the build due to JDK 1.6 being explicitly specified within the maven-compiler-plugin configuration in core pom.xml.
The build was running fine for me locally but it seems that it fails on Jenkins due to this which needs to be fixed. PR coming up.
The issues results in the following
[INFO] [compiler:compile {execution: default-compile}] [INFO] Changes detected - recompiling the module! [INFO] Compiling 125 source files to /home/jenkins/jenkins-slave/workspace/oodt-trunk/catalog/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/jenkins/jenkins-slave/workspace/oodt-trunk/catalog/src/main/java/org/apache/oodt/cas/catalog/mapping/MemoryBasedIngestMapper.java:[53,84] diamond operator is not supported in -source 1.6 (use -source 7 or higher to enable diamond operator) [ERROR] /home/jenkins/jenkins-slave/workspace/oodt-trunk/catalog/src/main/java/org/apache/oodt/cas/catalog/mapping/DataSourceIngestMapper.java:[70,21] try-with-resources is not supported in -source 1.6 (use -source 7 or higher to enable try-with-resources) [ERROR] /home/jenkins/jenkins-slave/workspace/oodt-trunk/catalog/src/main/java/org/apache/oodt/cas/catalog/mapping/DataSourceIngestMapper.java:[149,62] diamond operator is not supported in -source 1.6 (use -source 7 or higher to enable diamond operator) [INFO] 3 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure
Attachments
Issue Links
- links to