Repository navigation
Supply plexus-utils 4.x and plexus-xml to projects that use plexus-testing - #129
Merged
Merged
Conversation
…sting Sisu Plexus reads the XML classes that plexus-utils 3.x contained, so a project on plexus-utils 4.x failed at container start unless it declared plexus-xml itself.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Declares
plexus-utils4.2.0 andplexus-xml3.1.1, so that a project whose tests start a container through plexus-testing gets a matching pair.Sisu Plexus reads
XmlStreamReader,MXParserandXpp3Domat container start and declares onlyplexus-utils, which contained them up to 3.x. A project that declaresplexus-utils4.x replaces that jar, and its tests then fail withNoClassDefFoundError: org/codehaus/plexus/util/xml/XmlStreamReaderunless it also declaresplexus-xml, even when its own code never touches XML. With this change those projects no longer need that declaration for their tests. Sisu can stop needing it at the source with eclipse-sisu/sisu-project#285; this is the fix that does not wait for a Sisu release.What a consumer resolves changes as follows (runtime
dependency:listof a project without a parent that depends only on plexus-testing):A project that pins
plexus-utils3.x itself keeps its version and now also hasplexus-xmlon its test classpath, so the XML classes are present twice there; plexus-io is such a project and its tests pass.Verified against a local snapshot,
mvn -B testin each:plexus-xmldeclaration removed → 16 tests pass (they fail with theNoClassDefFoundErroragainst 2.2.0)plexus-utils3.6.4) → 64 tests passplexus-utilsof their own) → 5 and 1 tests passThe Dependabot ignore keeps
plexus-xmlon 3.x, as in the other repositories.Part of codehaus-plexus/.github#94.