20 or more exclusions from a Maven 2 transitive dependency results in build
error
---------------------------------------------------------------------------------
Key: CONTINUUM-1801
URL: http://jira.codehaus.org/browse/CONTINUUM-1801
Project: Continuum
Issue Type: Bug
Components: Integration - Maven 2
Affects Versions: 1.1
Environment: Linux
Reporter: Chris Rompot
Priority: Minor
When building a Maven 2 project with 20 or more exclusions from a dependency,
that project builds correctly.
For example,
<dependency>
<groupId>org.springmodules</groupId>
<artifactId>spring-modules-cache</artifactId>
<version>0.8a</version>
<exclusions>
<exclusion>
<groupId>gigaspaces</groupId>
<artifactId>gigaspaces-ce</artifactId>
</exclusion>
... many more exclusions
build correctly for a project.
When this first project is a dependency of another project, the second
project's build fails with an error similar to the following:
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: com.pearson.rase:test-management-gateway-client
Reason: Failed to build model from file
'/home/bbuilder/.m2/repository/com/pearson/rase/test-management-gateway-client/1.0.0/test-management-gateway-client-1.0.0.pom'.
Error: 'no more data available - expected end tags
</exclusion></exclusions></dependency></dependencies></project>
to close start tag <exclusion> from line 106 and start tag
<exclusions> from line 28 and start tag <dependency> from line 24
and start tag <dependencies> from line 22 and start tag <project>
from line 1, parser stopped on END_TAG seen
...<groupId>opensymphony</groupId>\n ... @108:11' for
project com.pearson.rase:test-management-gateway-client
This error disappears once the number of exclusions in the first project's
dependency is reduced to 19 or less.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira