|
640 | 640 | <sortDependencyExclusions>groupId,artifactId</sortDependencyExclusions>
|
641 | 641 | <sortExecutions>true</sortExecutions>
|
642 | 642 | <sortModules>true</sortModules>
|
643 |
| - <sortPlugins>groupId,artifactId</sortPlugins> |
644 | 643 | <sortProperties>true</sortProperties>
|
645 | 644 | <verifyFail>stop</verifyFail>
|
646 | 645 | <verifyFailOn>strict</verifyFailOn>
|
|
1066 | 1065 | </activation>
|
1067 | 1066 | <build>
|
1068 | 1067 | <plugins>
|
1069 |
| - <plugin> |
1070 |
| - <!-- relocate the META-INF/versions files manually due to the maven bug --> |
1071 |
| - <!-- https://issues.apache.org/jira/browse/MSHADE-406 --> |
1072 |
| - <groupId>org.apache.maven.plugins</groupId> |
1073 |
| - <artifactId>maven-antrun-plugin</artifactId> |
1074 |
| - <executions> |
1075 |
| - <execution> |
1076 |
| - <id>repack</id> |
1077 |
| - <goals> |
1078 |
| - <goal>run</goal> |
1079 |
| - </goals> |
1080 |
| - <phase>package</phase> |
1081 |
| - <configuration> |
1082 |
| - <target> |
1083 |
| - <unzip dest="${project.build.directory}/relocate" src="${project.build.directory}/${project.build.finalName}.jar"/> |
1084 |
| - <mkdir dir="${project.build.directory}/relocate/META-INF/versions/9/${relocationBase}"/> |
1085 |
| - <mkdir dir="${project.build.directory}/relocate/META-INF/versions/11/${relocationBase}"/> |
1086 |
| - <mkdir dir="${project.build.directory}/relocate/META-INF/versions/15/${relocationBase}"/> |
1087 |
| - <zip basedir="${project.build.directory}/relocate" destfile="${project.build.directory}/${project.build.finalName}.jar"/> |
1088 |
| - <delete dir="${project.build.directory}/relocate/META-INF/versions/9/${relocationBase}"/> |
1089 |
| - <delete dir="${project.build.directory}/relocate/META-INF/versions/11/${relocationBase}"/> |
1090 |
| - <delete dir="${project.build.directory}/relocate/META-INF/versions/15/${relocationBase}"/> |
1091 |
| - </target> |
1092 |
| - </configuration> |
1093 |
| - </execution> |
1094 |
| - </executions> |
1095 |
| - </plugin> |
1096 | 1068 | <plugin>
|
1097 | 1069 | <!-- google linkage checker doesn't work well with shaded jar, disable the check in this case for now -->
|
1098 | 1070 | <groupId>org.apache.maven.plugins</groupId>
|
|
1344 | 1316 | </execution>
|
1345 | 1317 | </executions>
|
1346 | 1318 | </plugin>
|
| 1319 | + <plugin> |
| 1320 | + <!-- relocate the META-INF/versions files manually due to the maven bug --> |
| 1321 | + <!-- https://issues.apache.org/jira/browse/MSHADE-406 --> |
| 1322 | + <groupId>org.apache.maven.plugins</groupId> |
| 1323 | + <artifactId>maven-antrun-plugin</artifactId> |
| 1324 | + <executions> |
| 1325 | + <execution> |
| 1326 | + <id>repack</id> |
| 1327 | + <goals> |
| 1328 | + <goal>run</goal> |
| 1329 | + </goals> |
| 1330 | + <phase>package</phase> |
| 1331 | + <configuration> |
| 1332 | + <target> |
| 1333 | + <unzip dest="${project.build.directory}/relocate" src="${project.build.directory}/${project.build.finalName}.jar"/> |
| 1334 | + <mkdir dir="${project.build.directory}/relocate/META-INF/versions/9/${relocationBase}"/> |
| 1335 | + <mkdir dir="${project.build.directory}/relocate/META-INF/versions/11/${relocationBase}"/> |
| 1336 | + <mkdir dir="${project.build.directory}/relocate/META-INF/versions/15/${relocationBase}"/> |
| 1337 | + <move file="${project.build.directory}/relocate/META-INF/versions/9/org" todir="${project.build.directory}/relocate/META-INF/versions/9/${relocationBase}"/> |
| 1338 | + <move file="${project.build.directory}/relocate/META-INF/versions/11/org" todir="${project.build.directory}/relocate/META-INF/versions/11/${relocationBase}"/> |
| 1339 | + <move file="${project.build.directory}/relocate/META-INF/versions/15/org" todir="${project.build.directory}/relocate/META-INF/versions/15/${relocationBase}"/> |
| 1340 | + <zip basedir="${project.build.directory}/relocate" destfile="${project.build.directory}/${project.build.finalName}.jar"/> |
| 1341 | + <delete dir="${project.build.directory}/relocate/META-INF/versions/9/${relocationBase}"/> |
| 1342 | + <delete dir="${project.build.directory}/relocate/META-INF/versions/11/${relocationBase}"/> |
| 1343 | + <delete dir="${project.build.directory}/relocate/META-INF/versions/15/${relocationBase}"/> |
| 1344 | + </target> |
| 1345 | + </configuration> |
| 1346 | + </execution> |
| 1347 | + </executions> |
| 1348 | + </plugin> |
1347 | 1349 | <plugin>
|
1348 | 1350 | <groupId>org.codehaus.mojo</groupId>
|
1349 | 1351 | <artifactId>buildnumber-maven-plugin</artifactId>
|
|
0 commit comments