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

XmlSlurper is too strict when reading POM files for license report #43

Closed
theseion opened this issue Jun 4, 2021 · 1 comment
Closed

Comments

@theseion
Copy link

theseion commented Jun 4, 2021

Gradle: 7.0.2
License report plugin: 1.74
Problematic dependency: istack-commons-3.0.11.pom

This happens out of the box, no configuration.

Caused by: org.gradle.api.GradleException: The prefix "Xlint" for element "Xlint:all" is not bound.
	at com.github.vlsi.gradle.license.GatherLicenseTask.findPomLicenses(GatherLicenseTask.kt:546)
	at com.github.vlsi.gradle.license.GatherLicenseTask.run(GatherLicenseTask.kt:332)
...
	Suppressed: org.xml.sax.SAXParseException; systemId: file://<redacted>/.gradle/caches/modules-2/files-2.1/com.sun.istack/istack-commons/3.0.11/b1b7e589e116b7db7217cc2098223185690e740b/istack-commons-3.0.11.pom; lineNumber: 408; columnNumber: 38; The prefix "Xlint" for element "Xlint:all" is not bound.
...
at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1251)
at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
at groovy.util.XmlSlurper.parse(XmlSlurper.java:203)
at groovy.util.XmlSlurper.parse(XmlSlurper.java:221)
at com.github.vlsi.gradle.license.PomLicenseLoaderKt.parseXml(PomLicenseLoader.kt:111)
at com.github.vlsi.gradle.license.PomLicenseLoaderKt.access$parseXml(PomLicenseLoader.kt:1)
at com.github.vlsi.gradle.license.PomLicenseLoaderKt$loadLicenses$1$1$1$1.invokeSuspend(PomLicenseLoader.kt:139)
...
@DreierF
Copy link
Contributor

DreierF commented Jan 3, 2022

I'm running into the same issue with com.sun.xml.ws:policy:2.7.10 (Link) and com.sun.xml.ws:project:2.3.3.

DreierF added a commit to DreierF/vlsi-release-plugins that referenced this issue Jan 3, 2022
@vlsi vlsi closed this as completed in 1966327 Jan 3, 2022
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

No branches or pull requests

2 participants