Skip to content
Advertisement

How to “require” module “gwt.user” On Java, JDK17, “module-info.java”, Netbeans, Maven (Problem Continues)

one can say that, it is a continuation of question
How to “require” module “gwt.user” On Java, JDK17, “module-info.java”, Netbeans, Maven

I am updating my old libraries with module-info.java files.
I have a COMPLEX project named “api-log” dependent on “gwt-user”.
Just for using the class com.google.web.bindery.event.shared.UmbrellaException;

pom.xml:

JavaScript

With the module-info.java below:

JavaScript

When netbeans runs compile, it builds successfully:

JavaScript

However, when I look at the module-info.java file, Netbeans show error:

module com.tugalsan.api.log reads package com.google.gwt.core.client from both base and gwt.user

enter image description here

JavaScript
  • 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?

Advertisement

Answer

The solution is adding exclusion to dependency elemental2.dom

JavaScript

USEFUL VIDEO: https://www.youtube.com/watch?v=xKmv24_2Asw&t=2094s

full code: at github

Advertisement