apache / apache/maven-shade-plugin
[MSHADE-292] Relocation exclude works differently on Win and Unix platforms
- Dominant language
- Java
- Stars
- 188
- Forks
- 103
- Avg merge
- 16h 39m
- Merged PRs (30d)
- 4
Description
**[Artem Yak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=dr29bart)** opened **[MSHADE-292](https://issues.apache.org/jira/browse/MSHADE-292?redirect=false)** and commented
Un-tar attached project.
execute on Windows :
```java
mvn clean package -X && unzip -l target/BUG-0.1-SNAPSHOT.jar | grep com -m15
```
output is:
```java
0 2018-06-25 15:36 com/
0 2018-06-25 15:36 com/banana/
250 2018-06-25 15:36 com/banana/T.class
0 2018-06-25 15:36 com/orange/
0 2018-06-25 15:36 com/orange/framework/
270 2018-06-25 15:36 com/orange/framework/T.class
250 2018-06-25 15:36 com/orange/T.class
0 2018-06-25 15:36 META-INF/maven/com.orange.qa/
0 2018-06-25 15:36 META-INF/maven/com.orange.qa/BUG/
2166 2018-06-25 18:15 META-INF/maven/com.orange.qa/BUG/pom.xml
114 2018-06-25 15:36 META-INF/maven/com.orange.qa/BUG/pom.properties
0 2018-06-25 15:36 bug/com/
0 2018-06-25 15:36 bug/com/google/
0 2018-06-25 15:36 bug/com/google/gson/
0 2018-06-25 15:36 bug/com/google/gson/annotations/
```
execute on Unix (CentOS or MacOS) :
```java
mvn clean package -X && unzip -l target/BUG-0.1-SNAPSHOT.jar | grep com -m15
```
output is
```java
0 06-25-2018 18:35 bug/com/
0 06-25-2018 18:35 bug/com/orange/
0 06-25-2018 18:35 bug/com/orange/framework/
278 06-25-2018 18:35 bug/com/orange/framework/T.class
0 06-25-2018 18:35 com/
0 06-25-2018 18:35 com/orange/
250 06-25-2018 18:35 com/orange/T.class
0 06-25-2018 18:35 com/banana/
250 06-25-2018 18:35 com/banana/T.class
0 06-25-2018 18:35 META-INF/maven/com.orange.qa/
0 06-25-2018 18:35 META-INF/maven/com.orange.qa/BUG/
2166 06-25-2018 18:15 META-INF/maven/com.orange.qa/BUG/pom.xml
109 06-25-2018 18:35 META-INF/maven/com.orange.qa/BUG/pom.properties
0 06-25-2018 18:35 bug/com/google/
0 06-25-2018 18:35 bug/com/google/gson/
```
**Actual result:**
Relocation->exclude didn't work as expected on unix
**Expected results** is on Windows:
com/orange/framework/T must be excluded from bug.com relocations
---
**Affects:** 3.1.1
**Attachments:**
- [defect.tar.gz](https://issues.apache.org/jira/secure/attachment/12929025/defect.tar.gz) (_1.01 kB_)
1 votes, 3 watchers
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the defect.tar.gz reproducer and run `mvn clean package -X` followed by listing `target/BUG-0.1-SNAPSHOT.jar` on both Windows and Unix-like platforms. Compare how the relocation exclude handles `com/orange/framework/T.class`; done means the Unix result excludes it from the `bug.com` relocation just as the Windows result does.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100