Inflectra / spira-testing-testng

Plugin for TestNG that lets you report back results from TestNG to SpiraTest
Apache License 2.0
1 stars 4 forks source link

spira-testng Listener not working with Java 11 due to missing imports #1

Closed weendigo closed 4 years ago

weendigo commented 4 years ago

I am not able to use the Spira TestNG listener with Java 11. A bunch of imports is not available anymore: image

Namely these: javax.jws. javax.xml.ws.

Apparently, package javax.jws is in module java.xml.ws in Java 9+, and that module is not enabled by default. It has been removed entirely in Java 11.

weendigo commented 4 years ago

Solved by adding following dependencies in POM.xml:

    <!-- https://mvnrepository.com/artifact/javax.xml.ws/jaxws-api -->
    <dependency>
        <groupId>javax.xml.ws</groupId>
        <artifactId>jaxws-api</artifactId>
        <version>2.3.1</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.glassfish.main.javaee-api/javax.jws -->
    <dependency>
        <groupId>org.glassfish.main.javaee-api</groupId>
        <artifactId>javax.jws</artifactId>
        <version>3.1.2.2</version>
    </dependency>
simonhbor commented 4 years ago

Thanks for the feedback. We will add this to the pom for the next release