Uploaded image for project: 'OODT'
  1. OODT
  2. OODT-928

Update maven-compiler-plugin from 1.6 to 1.7 in core pom.xml

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.12
    • Fix Version/s: 1.1
    • Component/s: build proces
    • Labels:
      None
    • Skill Level:
      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

            Activity

              People

              • Assignee:
                lewismc Lewis John McGibbney
                Reporter:
                lewismc Lewis John McGibbney
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: