apache / apache/maven-shade-plugin

[MSHADE-358] Support directories/wildcards by AppendingTransformer

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

Description

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

At this moment, [AppendingTransformer](https://github.com/apache/maven-shade-plugin/blob/master/src/main/java/org/apache/maven/plugins/shade/resource/AppendingTransformer.java) supports only specific files that we list in the configuration. It causes problems if we don't know names of files that we want to merge (a lot of e.g. annotation scanning libraries uses class names without any extensions). To solve this problem the transformer could just simply accept directories as resource or wildcards in resource names.

```java

META-INF/annotations/*

```

---

**Remote Links:**
- [GitHub Pull Request #40
](https://github.com/apache/maven-shade-plugin/pull/40)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with src/main/java/org/apache/maven/plugins/shade/resource/AppendingTransformer.java and inspect how configured resource names are matched. Use the META-INF/annotations/* example as the acceptance case; done means directory or wildcard resources can be merged without listing each specific file.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.