New issue checklist
Task name
Maven
Task version
4.268.0
Issue Description
We are using Maven@4 task with JaCoCo code coverage tool.
As our application uses java.version 25, there is an error while executing this step:
ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.11:report (default-report-vsts) on project An error has occurred in JaCoCo report generation. Error while creating report: Error while analyzing /__w/12/s/api/target/classes/.class with JaCoCo 0.8.11.202310140853/f33756c. Unsupported class file major version 69 -> [Help 1]
Indeed, for Java 25, JaCoCo version 0.8.14 must be used.
An idea to resolve this error was suggested in this closed bug #21185
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu
Relevant log output
ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.11:report (default-report-vsts) on project <redacted> An error has occurred in JaCoCo report generation. Error while creating report: Error while analyzing /__w/12/s/api/target/classes/<redacted>.class with JaCoCo 0.8.11.202310140853/f33756c. Unsupported class file major version 69 -> [Help 1]
Full task logs with system.debug enabled
Repro steps
- task: Maven@4
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Dmaven.repo.local=${{ variables.mavenCacheFolder}} ${{ variables.mavenOpts }}'
javaHomeOption: 'JDKVersion'
jdkArchitectureOption: 'x64'
goals: >
-B -U clean verify
sonarQubeRunAnalysis: true
sqMavenPluginVersionChoice: 'latest'
codeCoverageToolOption: 'JaCoCo'
codeCoverageRestoreOriginalPomXml: true
New issue checklist
Task name
Maven
Task version
4.268.0
Issue Description
We are using Maven@4 task with JaCoCo code coverage tool.
As our application uses java.version 25, there is an error while executing this step:
ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.11:report (default-report-vsts) on project An error has occurred in JaCoCo report generation. Error while creating report: Error while analyzing /__w/12/s/api/target/classes/.class with JaCoCo 0.8.11.202310140853/f33756c. Unsupported class file major version 69 -> [Help 1]
Indeed, for Java 25, JaCoCo version 0.8.14 must be used.
An idea to resolve this error was suggested in this closed bug #21185
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu
Relevant log output
Full task logs with system.debug enabled
Repro steps