Dawid Weiss created LUCENE-10337:
------------------------------------

             Summary: xercesImpl has split packages with the JDK (required 
transitively by benchmarks)
                 Key: LUCENE-10337
                 URL: https://issues.apache.org/jira/browse/LUCENE-10337
             Project: Lucene - Core
          Issue Type: Improvement
            Reporter: Dawid Weiss


Benchmarks require nekohtml, which requires xerces, which has split packages 
with the JDK. This forces us to require neko in benchmarks module (as an 
automatic module) but force xerces to be placed on classpath:
{code:java}
moduleImplementation ("net.sourceforge.nekohtml:nekohtml", {
  exclude module: "xml-apis"
  // Exclude xercesImpl from module path because it has split packages with the 
JDK
  exclude module: "xercesImpl"
})

// Include xercesImpl on regular classpath where it won't cause conflicts.
implementation "xerces:xercesImpl" 
{code}

This workaround works for me but in the long run, it'd be great to fix it 
upstream somewhere.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to