cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

jscoverage-plugin does not work on new Java/JDK

0 Likes
448

I have run the auto test of my UI5 app locally successfully. When I tried to generate the cobertura coverage report with:

mvn verify -f pom.xml com.sap.ca:jscoverage-plugin:1.36.0:jscoverage

I got following error.

[ERROR] Failed to execute goal com.sap.ca:jscoverage-plugin:1.36.0:jscoverage (default-cli) on project sap.support.sccd: Execution default-cli of goal com.sap.ca:jscoverage-plugin:1.36.0:jscoverage failed: A required class was missing while executing com.sap.ca:jscoverage-plugin:1.36.0:jscoverage: javax/xml/bind/JAXBException

I have tried all following dependencies with version 2.3.2 and 3.0.0 in my pom:

    <dependency>
         <groupId>org.glassfish.jaxb</groupId>
         <artifactId>jaxb-runtime</artifactId>
         <version>2.3.2</version>
         <scope>runtime</scope>
    </dependency>

    <dependency>
         <groupId>jakarta.xml.bind</groupId>
         <artifactId>jakarta.xml.bind-api</artifactId>
         <version>2.3.2</version>
    </dependency>

    <dependency>
         <groupId>com.sun.xml.bind</groupId>
         <artifactId>jaxb-impl</artifactId>
         <version>2.3.2</version>
         <scope>runtime</scope>
    </dependency>

However, they can't solve the problem.

The javax is not available in JDK>7 anymore for a such long time. Why sap jscoverage-plugin still use it? Is there any method to get rid of the issue.

And does someone has the contact information of jscoverage-plugin development team?

Accepted Solutions (0)

Answers (0)