license-gradle-plugin
license-gradle-plugin copied to clipboard
excludeDependency still gets parsed
I've run into a scenario where a transitive dependency (org.codehaus.plexus:plexus:1.0.4) I pull in has an xml parsing problem (an undefined entity), and causes a SAXParseException. I tried adding it to excludeDependencies, but it still fails.
Here is a minimal reproduction repository: https://github.com/makuk66/GradleLicensePlexus
Clone that repo, and run gradlew downloadLicenses
build.gradle: https://github.com/makuk66/GradleLicensePlexus/blob/master/build.gradle output: https://github.com/makuk66/GradleLicensePlexus/blob/master/output.txt
Should the plugin parser know about those entities? Should the excludeDependencies entry cause this to be skipped?
Related reports with other tools: https://issues.apache.org/jira/browse/IVY-921 (Ivy added entities) https://issues.apache.org/jira/browse/JCR-666 (recommended parser change) http://sourceforge.net/p/artifactory/mailman/artifactory-users/?viewmonth=201001&page=2
I seem to recall I made a change to the parser already, as this issue was encountered before. Which version are you using?
Per https://github.com/makuk66/GradleLicensePlexus/blob/master/build.gradle#L3 that was 0.12.1