question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spotbugs issue blocked build

See original GitHub issue

Built 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:closed
  • Created 4 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ya-nanlicommented, Jun 21, 2020

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

1reaction
tao1commented, Jun 10, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

spotbugs issue blocked build #920 - aws/aws-sdk-java-v2
When I want to build the AWS java SDK v2 on Windows 10 with Maven, I got the following error: [ERROR] ... spotbugs...
Read more >
Bug descriptions — spotbugs 4.7.3 documentation
Violations of recommended and essential coding practice. Examples include hash code and equals problems, cloneable idiom, dropped exceptions, Serializable ...
Read more >
Doc: Add troubleshooting for SpotBugs build error (!77797) · Merge ...
The following files require a review from a technical writer: doc/user/application_security/sast/index.md. The review does not need to block merging this merge ...
Read more >
spotbugs configuration in gradle build not working correctly ...
Any idea about the problem? It seems full build does not work with above error and if I try to build only 1...
Read more >
Spotbugs fails to build search-byoc (#24) · Issues - GitLab
For search, this is failing for the search-byoc project. Because of the compilation error, none of the spotbugs findings are reported.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found