Home > Mobile >  How to "require" module "gwt.user" On Java, JDK17, "module-info.java",
How to "require" module "gwt.user" On Java, JDK17, "module-info.java",

Time:05-02

one can say that, it is a continuation of question
enter image description here

<exclusions>
    <exclusion>
        <groupId>com.google.jsinterop</groupId>
        <artifactId>jsinterop-annotations</artifactId>
    </exclusion>
    <exclusion>
        <groupId>javax.validation</groupId>
        <artifactId>validation-api</artifactId>
    </exclusion>
    <exclusion>
        <groupId>javax.servlet</groupId>
        <artifactId>javax.servlet-api</artifactId>
    </exclusion>
    <exclusion>
        <groupId>org.w3c.css</groupId>
        <artifactId>sac</artifactId>
    </exclusion>
</exclusions>
  • What is the proper way on finding which artifact name one should exclude?
  • What is does the error mean when "com.tugalsan.api.log reads THE package from base". It cannot be java.base?

CodePudding user response:

The solution is adding exclusion to dependency elemental2.dom

     <dependency>
        <groupId>com.google.elemental2</groupId>
        <artifactId>elemental2-dom</artifactId>
        <exclusions>
            <exclusion>
                <groupId>com.google.jsinterop</groupId>
                <artifactId>base</artifactId>
            </exclusion>
        </exclusions>
        <version>1.1.0</version>
    </dependency>
  • Related