[ https://issues.apache.org/jira/browse/MSHADE-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
hk__lrzy updated MSHADE-452: ---------------------------- Description: We have java path as below _*org.apache.demo1*_ _*org.apache.demo2*_ In {_}*maven-shade-plugin 3.2.1*{_}, we use relocation to process path and SPI Service file at the same time, and we will follow result. {code:java} <relocation> <pattern>org.apache.demo</pattern> <shadedPattern>shaded.org.apache.demo</shadedPattern> </relocation> {code} {code:java} META-INF/services/shaded.org.apache.demo{code} was: We have java path like follow examples. `org.apache.demo1` `org.apache.demo2` With maven shaded plugin 3.2.1 we can use relocation {code:java} <relocation> <pattern>org.apache.demo</pattern> <shadedPattern>shaded.org.apache.demo</shadedPattern> </relocation> {code} to relocate java file and META-INF/services file both. But with maven shaded plugin 3.5.0 The file under META-INF/services also could be changed, but content didn't. > Shade plugin can't replace SPI content with correct > --------------------------------------------------- > > Key: MSHADE-452 > URL: https://issues.apache.org/jira/browse/MSHADE-452 > Project: Maven Shade Plugin > Issue Type: Improvement > Affects Versions: 3.5.0 > Reporter: hk__lrzy > Priority: Critical > Attachments: 20230720-205856.png, 20230720-205900.png, > image-2023-07-20-21-03-36-444.png > > > We have java path as below > _*org.apache.demo1*_ > _*org.apache.demo2*_ > In {_}*maven-shade-plugin 3.2.1*{_}, we use relocation to process path and > SPI Service file at the same time, and we will follow result. > {code:java} > <relocation> > <pattern>org.apache.demo</pattern> > <shadedPattern>shaded.org.apache.demo</shadedPattern> > </relocation> {code} > {code:java} > META-INF/services/shaded.org.apache.demo{code} -- This message was sent by Atlassian Jira (v8.20.10#820010)