|
167 | 167 | <sortDependencyExclusions>groupId,artifactId</sortDependencyExclusions>
|
168 | 168 | <sortExecutions>true</sortExecutions>
|
169 | 169 | <sortModules>true</sortModules>
|
170 |
| - <sortPlugins>groupId,artifactId</sortPlugins> |
171 | 170 | <sortProperties>true</sortProperties>
|
172 | 171 | <verifyFail>stop</verifyFail>
|
173 | 172 | <verifyFailOn>strict</verifyFailOn>
|
|
609 | 608 | </execution>
|
610 | 609 | </executions>
|
611 | 610 | </plugin>
|
612 |
| - <plugin> |
613 |
| - <!-- relocate the META-INF/versions files manually due to the maven bug --> |
614 |
| - <!-- https://issues.apache.org/jira/browse/MSHADE-406 --> |
615 |
| - <groupId>org.apache.maven.plugins</groupId> |
616 |
| - <artifactId>maven-antrun-plugin</artifactId> |
617 |
| - <executions> |
618 |
| - <execution> |
619 |
| - <id>repack</id> |
620 |
| - <goals> |
621 |
| - <goal>run</goal> |
622 |
| - </goals> |
623 |
| - <phase>package</phase> |
624 |
| - <configuration> |
625 |
| - <target> |
626 |
| - <unzip dest="${project.build.directory}/relocate" src="${project.build.directory}/${project.build.finalName}.jar"/> |
627 |
| - <mkdir dir="${project.build.directory}/relocate/META-INF/versions/9/${relocationBase}"/> |
628 |
| - <mkdir dir="${project.build.directory}/relocate/META-INF/versions/11/${relocationBase}"/> |
629 |
| - <mkdir dir="${project.build.directory}/relocate/META-INF/versions/15/${relocationBase}"/> |
630 |
| - <zip basedir="${project.build.directory}/relocate" destfile="${project.build.directory}/${project.build.finalName}.jar"/> |
631 |
| - <delete dir="${project.build.directory}/relocate/META-INF/versions/9/${relocationBase}"/> |
632 |
| - <delete dir="${project.build.directory}/relocate/META-INF/versions/11/${relocationBase}"/> |
633 |
| - <delete dir="${project.build.directory}/relocate/META-INF/versions/15/${relocationBase}"/> |
634 |
| - </target> |
635 |
| - </configuration> |
636 |
| - </execution> |
637 |
| - </executions> |
638 |
| - </plugin> |
639 | 611 | <plugin>
|
640 | 612 | <!-- google linkage checker doesn't work well with shaded jar, disable the check in this case for now -->
|
641 | 613 | <groupId>org.apache.maven.plugins</groupId>
|
|
697 | 669 | <exclude>META-INF/NOTICE*</exclude>
|
698 | 670 | <exclude>META-INF/DEPENDENCIES</exclude>
|
699 | 671 | <exclude>META-INF/maven/**</exclude>
|
700 |
| - <exclude>META-INF/services/com.fasterxml.*</exclude> |
701 | 672 | <exclude>META-INF/*.xml</exclude>
|
702 | 673 | <exclude>META-INF/*.SF</exclude>
|
703 | 674 | <exclude>META-INF/*.DSA</exclude>
|
|
781 | 752 | </activation>
|
782 | 753 | <build>
|
783 | 754 | <plugins>
|
784 |
| - <plugin> |
785 |
| - <!-- relocate the META-INF/versions files manually due to the maven bug --> |
786 |
| - <!-- https://issues.apache.org/jira/browse/MSHADE-406 --> |
787 |
| - <groupId>org.apache.maven.plugins</groupId> |
788 |
| - <artifactId>maven-antrun-plugin</artifactId> |
789 |
| - <executions> |
790 |
| - <execution> |
791 |
| - <id>repack</id> |
792 |
| - <goals> |
793 |
| - <goal>run</goal> |
794 |
| - </goals> |
795 |
| - <phase>package</phase> |
796 |
| - <configuration> |
797 |
| - <target> |
798 |
| - <unzip dest="${project.build.directory}/relocate" src="${project.build.directory}/${project.build.finalName}.jar"/> |
799 |
| - <mkdir dir="${project.build.directory}/relocate/META-INF/versions/9/${relocationBase}"/> |
800 |
| - <mkdir dir="${project.build.directory}/relocate/META-INF/versions/11/${relocationBase}"/> |
801 |
| - <mkdir dir="${project.build.directory}/relocate/META-INF/versions/15/${relocationBase}"/> |
802 |
| - <zip basedir="${project.build.directory}/relocate" destfile="${project.build.directory}/${project.build.finalName}.jar"/> |
803 |
| - <delete dir="${project.build.directory}/relocate/META-INF/versions/9/${relocationBase}"/> |
804 |
| - <delete dir="${project.build.directory}/relocate/META-INF/versions/11/${relocationBase}"/> |
805 |
| - <delete dir="${project.build.directory}/relocate/META-INF/versions/15/${relocationBase}"/> |
806 |
| - </target> |
807 |
| - </configuration> |
808 |
| - </execution> |
809 |
| - </executions> |
810 |
| - </plugin> |
811 | 755 | <plugin>
|
812 | 756 | <!-- google linkage checker doesn't work well with shaded jar, disable the check in this case for now -->
|
813 | 757 | <groupId>org.apache.maven.plugins</groupId>
|
|
1010 | 954 | <exclude>META-INF/DEPENDENCIES</exclude>
|
1011 | 955 | <exclude>META-INF/maven/**</exclude>
|
1012 | 956 | <exclude>META-INF/services/com.fasterxml.*</exclude>
|
| 957 | + <exclude>META-INF/versions/9/module-info.*</exclude> |
1013 | 958 | <exclude>META-INF/*.xml</exclude>
|
1014 | 959 | <exclude>META-INF/*.SF</exclude>
|
1015 | 960 | <exclude>META-INF/*.DSA</exclude>
|
|
1059 | 1004 | </execution>
|
1060 | 1005 | </executions>
|
1061 | 1006 | </plugin>
|
| 1007 | + <plugin> |
| 1008 | + <!-- relocate the META-INF/versions files manually due to the maven bug --> |
| 1009 | + <!-- https://issues.apache.org/jira/browse/MSHADE-406 --> |
| 1010 | + <groupId>org.apache.maven.plugins</groupId> |
| 1011 | + <artifactId>maven-antrun-plugin</artifactId> |
| 1012 | + <executions> |
| 1013 | + <execution> |
| 1014 | + <id>repack</id> |
| 1015 | + <goals> |
| 1016 | + <goal>run</goal> |
| 1017 | + </goals> |
| 1018 | + <phase>package</phase> |
| 1019 | + <configuration> |
| 1020 | + <target> |
| 1021 | + <unzip dest="${project.build.directory}/relocate" src="${project.build.directory}/${project.build.finalName}.jar"/> |
| 1022 | + <mkdir dir="${project.build.directory}/relocate/META-INF/versions/9/${relocationBase}"/> |
| 1023 | + <mkdir dir="${project.build.directory}/relocate/META-INF/versions/11/${relocationBase}"/> |
| 1024 | + <mkdir dir="${project.build.directory}/relocate/META-INF/versions/15/${relocationBase}"/> |
| 1025 | + <mkdir dir="${project.build.directory}/relocate/META-INF/versions/17/${relocationBase}"/> |
| 1026 | + <mkdir dir="${project.build.directory}/relocate/META-INF/versions/19/${relocationBase}"/> |
| 1027 | + <!-- org.bouncycastle.* packages are relocated to ${relocationBase}.org.bouncycastle.* --> |
| 1028 | + <move file="${project.build.directory}/relocate/META-INF/versions/9/org" todir="${project.build.directory}/relocate/META-INF/versions/9/${relocationBase}"/> |
| 1029 | + <move file="${project.build.directory}/relocate/META-INF/versions/11/org" todir="${project.build.directory}/relocate/META-INF/versions/11/${relocationBase}"/> |
| 1030 | + <move file="${project.build.directory}/relocate/META-INF/versions/15/org" todir="${project.build.directory}/relocate/META-INF/versions/15/${relocationBase}"/> |
| 1031 | + <!-- com.fasterxml.* packages are relocated to ${relocationBase}.fasterxml.* --> |
| 1032 | + <move file="${project.build.directory}/relocate/META-INF/versions/11/com/fasterxml" todir="${project.build.directory}/relocate/META-INF/versions/11/${relocationBase}"/> |
| 1033 | + <move file="${project.build.directory}/relocate/META-INF/versions/17/com/fasterxml" todir="${project.build.directory}/relocate/META-INF/versions/17/${relocationBase}"/> |
| 1034 | + <move file="${project.build.directory}/relocate/META-INF/versions/19/com/fasterxml" todir="${project.build.directory}/relocate/META-INF/versions/19/${relocationBase}"/> |
| 1035 | + <zip basedir="${project.build.directory}/relocate" destfile="${project.build.directory}/${project.build.finalName}.jar"/> |
| 1036 | + <delete dir="${project.build.directory}/relocate/META-INF/versions/9/${relocationBase}"/> |
| 1037 | + <delete dir="${project.build.directory}/relocate/META-INF/versions/11/${relocationBase}"/> |
| 1038 | + <delete dir="${project.build.directory}/relocate/META-INF/versions/15/${relocationBase}"/> |
| 1039 | + <delete dir="${project.build.directory}/relocate/META-INF/versions/17/${relocationBase}"/> |
| 1040 | + <delete dir="${project.build.directory}/relocate/META-INF/versions/19/${relocationBase}"/> |
| 1041 | + </target> |
| 1042 | + </configuration> |
| 1043 | + </execution> |
| 1044 | + </executions> |
| 1045 | + </plugin> |
| 1046 | + |
1062 | 1047 | <plugin>
|
1063 | 1048 | <groupId>org.codehaus.mojo</groupId>
|
1064 | 1049 | <artifactId>buildnumber-maven-plugin</artifactId>
|
|
0 commit comments