Skip to content

Mark the Xerces dependency as optional - #7

Open
martinhickson wants to merge 1 commit into
xalan-j_2_7_1_maintfrom
fix/xerces-optional
Open

martinhickson wants to merge 1 commit into
xalan-j_2_7_1_maintfrom
fix/xerces-optional

Conversation

@martinhickson

Copy link
Copy Markdown
Owner

Summary

  • Mark xerces:xercesImpl optional in dependency management and on the xalan module.
  • Xalan still compiles against Xerces. Consumers are no longer given that jar transitively, so an application can supply its own parser.

Test plan

  • mvn -pl xalan -am package -DskipTests with BellSoft JDK 8
  • The installed xalan POM lists xercesImpl with <optional>true</optional>
  • A downstream build that does not want Xerces no longer receives it from org.apache.xalan:xalan

Xalan compiles against Xerces, but applications supply their own parser. Keeping xercesImpl optional stops it from being pulled onto a consumer's classpath.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants