Skip to content
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

Exclude xml-apis dependency #2971

Merged

Conversation

hborchardt
Copy link
Contributor

@hborchardt hborchardt commented Aug 21, 2023

Description

When using java modules, it is forbidden to add classes to namespaces that are already taken by other modules. The javax.xml namespace is currently provided by the java runtime as well as the xml-apis dependency (depended on via the xercesImpl dependency). The functionality that xml-apis brings is fully provided by the runtime, making the dependency unnecessary.

Eclipse is strict about this restriction and was showing corresponding errors.

Exclude the xml-apis dependency while depending on xercesImpl to make eclipse happy.

Addressed Issue

Fixes #2970

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have added corresponding update logic
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly

When using java modules, it is forbidden to add classes to namespaces
that are already taken by other modules. The javax.xml namespace is
currently provided by the java runtime as well as the xml-apis
dependency (depended on via the xercesImpl dependency). The
functionality that xml-apis brings is fully provided by the runtime,
making the dependency unnecessary.

Eclipse is strict about this restriction and was showing corresponding
errors.

Exclude the xml-apis dependency while depending on xercesImpl to make
eclipse happy.

Signed-off-by: Hendrik Borchardt <hendrik.borchardt@gmail.com>
Copy link
Member

@nscuro nscuro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @hborchardt!

Verified that this doesn't break anything for the JAR and container image, and all looks good. But always better to double-check with these kinds of things. 😅

@nscuro nscuro merged commit f57db7a into DependencyTrack:master Aug 21, 2023
9 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The package javax.xml.parsers is accessible from more than one module
2 participants