apache / apache/maven-shade-plugin

[MSHADE-116] IncludeResourceTransformer could allow <directory>

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

Description

**[Pierre Le Roux](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=pilerou)** opened **[MSHADE-116](https://issues.apache.org/jira/browse/MSHADE-116?redirect=false)** and commented

**IncludeResourceTransformer** could be declared with **** instead of ****

**modifyOutputStream** method could test directory and file value. One and only of its should be declared.

If directory value is set, then process loops on each subdirectory and files inside the root directory and add a JarEntry in JarOutputStream.

Another way to do it could be to allow ant include files patterns.

If needed, i can contribute for this feature.

---

**Issue Links:**
- [MSHADE-117](https://issues.apache.org/jira/browse/MSHADE-117) Add war packaged artifact support

1 votes, 4 watchers

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with IncludeResourceTransformer and its modifyOutputStream method, the entry points named in the issue. Trace how the current file value is handled and inspect nearby tests or plugin test fixtures for resource transformation. Done means a directory can be processed recursively into JarEntry values, while directory and file configuration remain mutually exclusive.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.