apache / apache/maven-shade-plugin
[MSHADE-426] Shade remap chokes on Multi-Release-JARs prepped to support Java 19
- Dominant language
- Java
- Stars
- 188
- Forks
- 103
- Avg merge
- 16h 39m
- Merged PRs (30d)
- 4
Description
**[Tamas Cservenak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cstamas)** opened **[MSHADE-426](https://issues.apache.org/jira/browse/MSHADE-426?redirect=false)** and commented
If JAR contains classes under `META-INF/versions/19` the shade goal fails.
```
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 63
at org.objectweb.asm.ClassReader. (ClassReader.java:199)
at org.objectweb.asm.ClassReader. (ClassReader.java:180)
at org.objectweb.asm.ClassReader. (ClassReader.java:166)
at org.objectweb.asm.ClassReader. (ClassReader.java:287)
at org.apache.maven.plugins.shade.DefaultShader.addRemappedClass (DefaultShader.java:543)
at org.apache.maven.plugins.shade.DefaultShader.shadeJarEntry (DefaultShader.java:307)
at org.apache.maven.plugins.shade.DefaultShader.shadeJars (DefaultShader.java:269)
at org.apache.maven.plugins.shade.DefaultShader.shade (DefaultShader.java:128)
at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute (ShadeMojo.java:500)
```
---
**Issue Links:**
- [MSHADE-385](https://issues.apache.org/jira/browse/MSHADE-385) Support for Multi-Release-JARs
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at DefaultShader.shadeJarEntry and DefaultShader.addRemappedClass, where the stack trace shows the failure while processing META-INF/versions/19. Reproduce the shade goal with a Multi-Release JAR containing Java 19 classes, then verify that shading completes without the ASM unsupported-class-version error.
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
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100