[ 
https://issues.apache.org/jira/browse/OODT-928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15310732#comment-15310732
 ] 

ASF GitHub Bot commented on OODT-928:
-------------------------------------

Github user chrismattmann commented on the issue:

    https://github.com/apache/oodt/pull/40
  
    +1


> Update maven-compiler-plugin from 1.6 to 1.7 in core pom.xml
> ------------------------------------------------------------
>
>                 Key: OODT-928
>                 URL: https://issues.apache.org/jira/browse/OODT-928
>             Project: OODT
>          Issue Type: Bug
>          Components: build proces
>    Affects Versions: 0.12
>            Reporter: Lewis John McGibbney
>            Assignee: Lewis John McGibbney
>             Fix For: 0.13
>
>
> 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
> {code}
> [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
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to