spotbugs issue blocked build
See original GitHub issueBuilt failed while creating aws-sdk-v2 jars due to spotbugs plugin.
Expected Behavior
Built should be successful aws should support spotbugs 3.1.11
Current Behavior
[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12.972 s [INFO] Finished at: 2020-02-19T17:33:49Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.spotbugs:spotbugs-maven-plugin:3.1.11:spotbugs (spotbugs) on project annotations: Execution spotbugs of goal com.github.spotbugs:spotbugs-maven-plugin:3.1.11:spotbugs failed: java.lang.IllegalArgumentException: Unsupported class file major version 57 -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :annotations hgslapmbpp07492:aws-sdk-java-v2-master abbasagha$ jave -version -bash: jave: command not found hgslapmbpp07492:aws-sdk-java-v2-master abbasagha$ java -version java version "11.0.1" 2018-10-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)
Steps to Reproduce (for bugs)
clone latest version of aws-sdk-java-v2
In terminal, go to directory and run mvn clean install
Context
Trying to create a jar file
Your Environment
- JDK version used: 11.0.1
- Operating System and version: macOS Mojave. V10.14.6
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (6 by maintainers)
I have the similar bugs. I delete the spotbugs-maven-plugin but it does not work. My jdk is java14. cannot understand why java7 is needed.
[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.456 s [INFO] Finished at: 2020-06-21T10:28:38-04:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.spotbugs:spotbugs-maven-plugin:3.1.11:spotbugs (spotbugs) on project aws-sdk-java-pom: Execution spotbugs of goal com.github.spotbugs:spotbugs-maven-plugin:3.1.11:spotbugs failed: Unable to load the mojo ‘spotbugs’ in the plugin ‘com.github.spotbugs:spotbugs-maven-plugin:3.1.11’. A required class is missing: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7
This bug still occurs. It’s easy to reproduce, Ubuntu 20.04, Java 14.0.1. I won’t reopen this bug, too much effort… but this bug should not be closed.