Closed lynxSven closed 1 year ago
Thanks for the report. You can work around the problem by disabling the plugin's support for applying Maven-style exclusions:
dependencyManagement {
applyMavenExclusions = false
}
Maven 3.6 appears to be the first version that depends on Plexus Utils 3.1. There are some breaking API changes that will need to be considered.
I wanted to use a dependency whichs POM is over 8192 characters long.
When I use the gradle plugin for io.spring.dependency-management the build fails with the exception
Index 14280 out of bounds for length 8192
.I know now that this error can be traced to the https://github.com/codehaus-plexus/plexus-utils library. Someone had the same issue here https://github.com/codehaus-plexus/plexus-utils/issues/22
As I see this this plugin uses the 2.0.7 Version of the plexus-utils. This bug was fixed in the version 3.1.0 release of plexus-utils
This version is related the the maven-version which is used here https://github.com/spring-gradle-plugins/dependency-management-plugin/blob/main/build.gradle#L18 and this task repackages it https://github.com/spring-gradle-plugins/dependency-management-plugin/blob/main/build.gradle#L48
Should plexus or maven be updated so the error doesn't occure anymore?
Minimal reproduce build.gradle When I remove the
id 'io.spring.dependency-management' version '1.1.0'
the build can handle theimplementation 'org.patrodyne.jvnet:hisrc-basicjaxb-plugins:2.1.0'
dependecy. If it is present the error occures.My Stacktrace: