Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci-aws CODEBUILD code analysis failure #215

Open
amalkuriakose opened this issue Jul 12, 2024 · 1 comment
Open

ci-aws CODEBUILD code analysis failure #215

amalkuriakose opened this issue Jul 12, 2024 · 1 comment

Comments

@amalkuriakose
Copy link

Logs:

1720781514197,"[WARNING] 10:51:53.846 Using an unspecified version instead of an explicit plugin version may introduce breaking analysis changes at an unwanted time. It is highly recommended to use an explicit version, e.g. 'org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121'.
"
1720781514197,"[INFO] 10:51:53.895 Java 11.0.23 Ubuntu (64-bit)
"
1720781514197,"[INFO] 10:51:53.896 Linux 4.14.291-218.527.amzn2.x86_64 (amd64)
"
1720781514197,"[INFO] 10:51:53.896 MAVEN_OPTS= -Dmaven.wagon.httpconnectionManager.maxPerRoute=2
"
1720781514197,"[INFO] 10:51:53.937 User cache: /root/.sonar/cache
"
1720781517281,"[INFO] 10:51:56.665 Communicating with SonarCloud
"
1720781517281,"[INFO] 10:51:56.708 Default locale: ""en_US"", source code encoding: ""UTF-8"" (analysis is platform dependent)
"
1720781517281,"[INFO] ------------------------------------------------------------------------
"
1720781517281,"[INFO] BUILD FAILURE
"
1720781517281,"[INFO] ------------------------------------------------------------------------
"
1720781517281,"[INFO] Total time: 8.684 s
"
1720781517281,"[INFO] Finished at: 2024-07-12T10:51:56Z
"
1720781517281,"[INFO] ------------------------------------------------------------------------
"
1720781517281,"[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar (default-cli) on project vprofile: Execution default-cli of goal org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar failed: An API incompatibility was encountered while executing org.sonarsource.scanner.maven:sonar-maven-plugin:4.0.0.4121:sonar: java.lang.UnsupportedClassVersionError: org/sonar/batch/bootstrapper/EnvironmentInformation has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
"
1720781517281,"[ERROR] -----------------------------------------------------
"
1720781517281,"[ERROR] realm = plugin>org.codehaus.mojo:sonar-maven-plugin:4.0.0.4121
"
1720781517281,"[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
"
1720781517281,"[ERROR] urls[0] = file:/root/.m2/repository/org/sonarsource/scanner/maven/sonar-maven-plugin/4.0.0.4121/sonar-maven-plugin-4.0.0.4121.jar
"
1720781517281,"[ERROR] urls[1] = file:/root/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar
"
1720781517281,"[ERROR] urls[2] = file:/root/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.5/plexus-utils-1.5.5.jar
"
1720781517281,"[ERROR] urls[3] = file:/root/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
"
1720781517281,"[ERROR] urls[4] = file:/root/.m2/repository/org/sonarsource/scanner/api/sonar-scanner-api/2.16.3.1081/sonar-scanner-api-2.16.3.1081.jar
"
1720781517281,"[ERROR] urls[5] = file:/root/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
"
1720781517281,"[ERROR] Number of foreign imports: 1
"
1720781517281,"[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
"
1720781517281,"[ERROR]
"
1720781517281,"[ERROR] -----------------------------------------------------
"
1720781517281,"[ERROR]
"
1720781517281,"[ERROR] -> [Help 1]
"
1720781517281,"[ERROR]
"
1720781517281,"[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
"
1720781517281,"[ERROR] Re-run Maven using the -X switch to enable full debug logging.
"
1720781517281,"[ERROR]
"
1720781517281,"[ERROR] For more information about the errors and possible solutions, please read the following articles:
"
1720781517281,"[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
"
1720781517281,"
"
1720781517281,"[Container] 2024/07/12 10:51:57.058405 Command did not exit successfully mvn sonar:sonar -Dsonar.login=$LOGIN -Dsonar.host.url=$HOST -Dsonar.projectKey=$Project -Dsonar.organization=$Organization -Dsonar.java.binaries=target/test-classes/com/visualpathit/account/controllerTest/ -Dsonar.junit.reportsPath=target/surefire-reports/ -Dsonar.jacoco.reportsPath=target/jacoco.exec -Dsonar.java.checkstyle.reportPaths=target/checkstyle-result.xml exit status 1
"
1720781517281,"[Container] 2024/07/12 10:51:57.062417 Phase complete: BUILD State: FAILED
"
1720781517281,"[Container] 2024/07/12 10:51:57.062438 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: mvn sonar:sonar -Dsonar.login=$LOGIN -Dsonar.host.url=$HOST -Dsonar.projectKey=$Project -Dsonar.organization=$Organization -Dsonar.java.binaries=target/test-classes/com/visualpathit/account/controllerTest/ -Dsonar.junit.reportsPath=target/surefire-reports/ -Dsonar.jacoco.reportsPath=target/jacoco.exec -Dsonar.java.checkstyle.reportPaths=target/checkstyle-result.xml. Reason: exit status 1
"
1720781517281,"[Container] 2024/07/12 10:51:57.093804 Entering phase POST_BUILD
"
1720781517281,"[Container] 2024/07/12 10:51:57.096023 Phase complete: POST_BUILD State: SUCCEEDED
"
1720781517281,"[Container] 2024/07/12 10:51:57.096036 Phase context status code: Message:
"

@pstakeda
Copy link

Hi, did we get any resolution for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants