I imported a gradle project on my eclipse. (I am using Java 11.) I had codes which uses jakarta.xml libraries.
import jakarta.xml.soap.*;
For it to function, I added Maven dependencies for jaxws-rt:
<dependencies>
<dependency>
<groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-ri</artifactId>
<version>3.0.0-M3</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>jakarta.xml.ws</groupId>
<artifactId>jakarta.xml.ws-api</artifactId>
<version>2.3.3</version>
</dependency>
</dependencies>
But when I try to generate the build, it shows following error:
error: package jakarta.xml.soap does not exist
import jakarta.xml.soap.*;
If I refresh the project as a Maven project the gradle feature gets disabled. If I run it as a gradle project, the maven dependencies get disabled. Can you please suggest how to run the build?