Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Fix for ProjectMerger.mergeMavenPlugins Xml Declarations Issue - #218

Open
jacobdanner wants to merge 1 commit into
spring-attic:mainfrom
jacobdanner:FIX-217_projectmerger.mergemavenplugins_gens_bad_xml
Open

Fix for ProjectMerger.mergeMavenPlugins Xml Declarations Issue#218
jacobdanner wants to merge 1 commit into
spring-attic:mainfrom
jacobdanner:FIX-217_projectmerger.mergemavenplugins_gens_bad_xml

Conversation

@jacobdanner

Copy link
Copy Markdown

Proposed Fix for ProjectMerger.mergeMavenPlugins Issue
see: #217

Discovered while working on a project that was trying to merge some openapi plugin tooling. The ConversionUtil code was returning strings with xml declarations and that was breaking and not working as expectd in the openrewrite recipes that modify the pom's plugins

  • Added a Test for ConversionUtil to demonstrate existing behavior
  • Added Test for expected ConversionUtil output
  • Updated ConversionUtil to avoid returning dependencies with default dependency content
  • Updated MavenModificationTests with additional validation around merged/added plugins

spring-attic#217

Discovered while working on a project that was trying to merge some openapi plugin tooling.
The ConversionUtil code was returning strings with xml declarations and that was breaking and not working as expectd in the openrewrite recipes that modify the pom's plugins

* Added a Test for ConversionUtil to demonstrate existing behavior
* Added Test for expected ConversionUtil output
* Updated ConversionUtil to avoid returning dependencies with default dependency content
* Updated MavenModificationTests with additional validation around merged/added plugins

Signed-off-by: Jacob Danner <jacob.danner@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant