-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
org.w3c.dom is accessible from more than one module: <unnamed>, java.xml during building #2829
Comments
com.github.spotbugs.spotbugs replace com.google.code.findbugs.jsr305 in |
@bobshie - Couple of things.
Alternatively if you are already aware of the root cause, maybe you can help raise a PR and we can help you get it merged. |
We have used JDK 17 for long time with previous TestNg version without any issues. |
Spotbugs was part of earlier releases of TestNG as well, please see here Maybe there's something peculiar here that needs to be checked on. |
Also can we check if the problem goes away if we add an exclusion to this dependency ? |
@krmahadevan spotbugs is a dev dependency. Maybe we can try to make it optional or provided in the generated pom.xml? |
Yes I can see that Findbugs was part of the pom in earlier version of TestNg, but Findbugs/Spotbug is a code checker that is used for checking your code, should not be added as a dependency or have I misunderstood how it is used in TestNg? |
@martinaldrin - Would you like to raise a PR for this ? @juherr - agreed! |
@krmahadevan , I can try to fix it in next week. |
org.w3c.dom is accessible from more than one module: <unnamed>, java.xml during building testng-team#2829
org.w3c.dom is accessible from more than one module: <unnamed>, java.xml during building cbeust#2829 Signed-off-by: Bob Shi <[email protected]>
org.w3c.dom is accessible from more than one module: <unnamed>, java.xml during building cbeust#2829 Signed-off-by: Bob Shi <[email protected]>
Closed via #2833 |
TestNG Version
testng-7.6.2-20221104.005911-6.jar
openjdk 17.0.1 2021-10-19
Apache Maven 3.6.3
Expected behavior
No error
Actual behavior
Is the issue reproducible on runner?
Test case sample
Contribution guidelines
Incase you plan to raise a pull request to fix this issue, please make sure you refer our Contributing section for detailed set of steps.
in xml-apis, there are org.w3c and javax.xml in jar file. so there is conflict:
ref:
https://support.tibco.com/s/article/Upgrading-Streaming-projects-to-use-Java-11-package-is-accessible-from-more-than-one-module
https://stackoverflow.com/questions/68839894/java-11-migration-package-is-accessible-from-more-than-one-module-issue
https://stackoverflow.com/questions/57286825/the-package-org-w3c-dom-is-accessible-from-more-than-one-module-unnamed-java
The text was updated successfully, but these errors were encountered: