作者:旺小旺大_693 | 来源:互联网 | 2023-09-25 12:40
如何用maven-shade-plugin,添加本地的jar
1 2 3 4 5 6 7 8 9
|
org.richard
my-jar
1.0
system
${project.basedir}/lib/my-jar.jar
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
org.apache.maven.plugins
maven-shade-plugin
make-assembly
package
shade
jar-with-dependencies
xxx-jar-with-dependencies
lib/
lib/
**/my-jar.jar
|
但是这部分会报错:
descriptorRefs is not allowed here.
1 2 3
|
jar-with-dependencies
|