0

If I remove in build.gradle

implementation('net.sf.jodreports:jodreports:2.4.0')

the errors disappear, but I need that for my code to compile

If I use

implementation('net.sf.jodreports:jodreports:2.4.0') {
    exclude group: 'xom'
}

it also works, but I need that too.

So I tried

implementation('xom:xom:1.3.9') {
    exclude group: 'xml-apis'
}
implementation('net.sf.jodreports:jodreports:2.4.0') {
    exclude group: 'xom'
}

but then the errors are back

Any idea how to solve?

Excluding org.w3c directly doesn't work either.

2
  • The last release of jodreports was 13 years ago, so clearly this project, nor its dependencies are compatible with the Java 9 requirements (released 8 years ago) of not having split-packages with packages in the JRE itself. You need to find out what other dependency includes the package org.w3c.dom and exclude it, or upgrade to a version that does include it. In any case, you may also want to try excluding xerces:xercesImpl from xom, as that dependency definitely includes the package org.w3c.dom. Commented Jan 10 at 10:35
  • Add the full error to the question not to the title. Commented Jan 10 at 11:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.