[MAGNOLIA-1111] xml-apis and xerces jars should be in scope:provided Created: 05/Oct/06  Updated: 03/Dec/13  Resolved: 03/Dec/13

Status: Closed
Project: Magnolia
Component/s: build
Affects Version/s: 3.0 RC3
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Won't Fix Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
is duplicated by MAGNOLIA-1751 Remove dependency from xerces Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

... because they are either provided by the jre (>=1.5) or by the container. i.e, they shouldn't be in the war file.

Eventhough I've just changed the scope of these in magnolia's main pom, this doesn't really work, for various reasons:

  • jackrabbit and openwfe declared their dependencies to xml-apis / xerces in scope:compile, and for some reason, they still end up in the war file (maven logs a warning when it's changing the scope of xerces to provided but it seems to stay in :compile anyways, and I don't think it even mentions anything regarding xml-apis)
  • the dependencies report (or the war plugin) seems to also be buggy, since it reports that xercesImpl-2.6.2 is used, while
    • magnolia declares version 2.8.0 (this was changed from 2.6.2 to 2.80 in r5989)
    • version 2.4.0 ends up in the war file


 Comments   
Comment by Magnolia International [ 05/Oct/06 ]

xerces:xmlParserApis should also be excluded from jackrabbit-core: (this is xml-apis for older versions of xerces)
<exclusion>
<groupId>xerces</groupId>
<artifactId>xmlParserAPIs</artifactId>
</exclusion>

Comment by Magnolia International [ 03/Dec/13 ]
  • xml-apis is globally excluded (via banned-dependencies in our parent poms)
  • xerces is treated by MAGNOLIA-1751 but there doesn't seem to be an issue at the moment.
Generated at Mon Feb 12 03:23:46 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.