apache / apache/maven-shade-plugin

[MSHADE-217] Shaded sources out of sync with shaded jar.

Open
#596 2 comments 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

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

I am using the maven shade plugin to patch open source libraries. (fix bugs...)

this is the configuration I use:

```

org.apache.maven.plugins
maven-shade-plugin
2.4.3


package

shade




${project.groupId}:${project.artifactId}:${original.version}


true
true
true




```

The java classes I have in my project, are correctly included in the shaded jar and overwrite the dependency classes, however the source artifact generated by the shade plugin does not include the sources from my project.

Can this be improved so that source and class behaviour is consistent?
is there a workarround?

---

**Affects:** 2.4.3

1 votes, 3 watchers

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue using the Maven Shade Plugin 2.4.3 configuration shown, especially createSourcesJar and shadeSourcesContent, and compare the generated shaded jar with its source artifact. Trace the source-shading behavior and determine what would make project sources appear consistently; done means the source artifact reflects the classes included in the shaded jar.

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.