apache / apache/maven-shade-plugin

[MSHADE-208] XmlAppendingTransformer will overwrite existing resource with merged xml

Open
#578 1 comment 0 reactions 0 assignees View on GitHub
bug priority:major
Dominant language
Java
Stars
188
Forks
103
Avg merge
16h 39m
Merged PRs (30d)
4

Description

**[Michael Kotten](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mikotten)** opened **[MSHADE-208](https://issues.apache.org/jira/browse/MSHADE-208?redirect=false)** and commented

If the configured resource already exists in the to-be-shaded artifact, the XmlAppendTransformer will delete this file and use instead the transformed xml as new resource.

---

**Affects:** 2.4.1

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the XmlAppendingTransformer implementation and inspect how it handles a configured resource that already exists in the shaded artifact. Reproduce the overwrite behavior with an existing resource, then verify that the original resource is preserved while the XML is merged.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.