Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-15299

Java 8 support for new AWS ElasticBeanstalk Java 8 environments

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • None
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      AWS came out with the Java8/Tomcat8 ami about 3 weeks ago.
      Can we get Java 8 compilation support in bamboo automated builds so we can target the new AMI
      both source and target cannot be java 8

      29-Nov-2014 10:16:39 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project biometric.model: Fatal error compiling: invalid target release: 1.8 -> [Help 1]

      29-Nov-2014 10:32:29 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project biometric.model: Fatal error compiling: invalid source release: 1.8 -> [Help 1]

      This bug is general to any Java 8 project
      Workaround is to use the Java 8 JDK but compile and target for 7

      Maven Java config
      <configuration>
      <source>1.8</source>
      <target>1.8</target>
      </configuration>

      Bamboo logs
      29-Nov-2014 10:16:39 [INFO] biometric.root .................................... SUCCESS [2.485s]
      29-Nov-2014 10:16:39 [INFO] biometric_model ................................... FAILURE [7.259s]
      29-Nov-2014 10:16:39 [INFO] biometric ......................................... SKIPPED
      29-Nov-2014 10:16:39 [INFO] ------------------------------------------------------------------------
      29-Nov-2014 10:16:39 [INFO] BUILD FAILURE
      29-Nov-2014 10:16:39 [INFO] ------------------------------------------------------------------------
      29-Nov-2014 10:16:39 [INFO] Total time: 10.123s
      29-Nov-2014 10:16:39 [INFO] Finished at: Sat Nov 29 15:16:39 UTC 2014
      29-Nov-2014 10:16:39 [INFO] Final Memory: 11M/123M
      29-Nov-2014 10:16:39 [INFO] ------------------------------------------------------------------------
      29-Nov-2014 10:16:39 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project biometric.model: Fatal error compiling: invalid target release: 1.8 -> [Help 1]
      29-Nov-2014 10:16:39 [ERROR]
      29-Nov-2014 10:16:39 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      29-Nov-2014 10:16:39 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      29-Nov-2014 10:16:39 [ERROR]
      29-Nov-2014 10:16:39 [ERROR] For more information about the errors and possible solutions, please read the following articles:
      29-Nov-2014 10:16:39 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      29-Nov-2014 10:16:39 [ERROR]
      29-Nov-2014 10:16:39 [ERROR] After correcting the problems, you can resume the build with the command
      29-Nov-2014 10:16:39 [ERROR] mvn <goals> -rf :biometric.model
      29-Nov-2014 10:16:39 Failing task since return code of [/opt/maven-3.0/bin/mvn -Djava.io.tmpdir=/tmp/BIOM-BIOM-BUIL clean package --batch-mode -Dnexus.username=${bamboo.nexusUsername} -Dnexus.password=${bamboo.nexusPassword} -Dmaven.test.skip=true] was 1 while expected 0
      29-Nov-2014 10:16:39 Finished task 'Perform Build' with result: Failed

      Attachments

        Activity

          People

            Unassigned Unassigned
            67f09c74e12b Michael O'Brien
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: