text mavn荫
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text mavn荫相关的知识,希望对你有一定的参考价值。
diff --git a/OpenRobertaParent/OpenRobertaDesktopApp/pom.xml b/OpenRobertaParent/OpenRobertaDesktopApp/pom.xml
index d693447..bb41a44 100644
--- a/OpenRobertaParent/OpenRobertaDesktopApp/pom.xml
+++ b/OpenRobertaParent/OpenRobertaDesktopApp/pom.xml
@@ -99,6 +99,16 @@
<version>1.7.25</version>
</dependency>
<dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-core</artifactId>
+ <version>2.8</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-api</artifactId>
+ <version>2.8</version>
+ </dependency>
+ <dependency>
<groupId>org.tukaani</groupId>
<artifactId>xz</artifactId>
<version>1.6</version>
@@ -134,17 +144,55 @@
<plugins>
<plugin><!-- Build an executable JAR -->
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>3.1.1</version>
<configuration>
+ <minimizeJar>true</minimizeJar>
+ <filters>
+ <!--<filter></filter>-->
+ <filter>
+ <artifact>org.apache.logging.log4j:log4j-core</artifact>
+ <includes>
+ <include>**</include>
+ </includes>
+ </filter>
+ <filter>
+ <artifact>org.apache.logging.log4j:log4j-api</artifact>
+ <includes>
+ <include>**</include>
+ </includes>
+ </filter>
+ <filter>
+ <artifact>commons-logging:commons-logging</artifact>
+ <includes>
+ <include>**</include>
+ </includes>
+ </filter>
+ <filter>
+ <artifact>org.panda_lang</artifact>
+ <includes>
+ <include>**</include>
+ </includes>
+ </filter>
+ <filter>
+ <artifact>org.apache.commons</artifact>
+ <includes>
+ <include>**</include>
+ </includes>
+ </filter>
+ </filters>
+ <transformers>
+ <transformer implementation=
+ "org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
- <archive>
- <manifest>
<mainClass>de.fhg.iais.DesktopApp</mainClass>
- </manifest>
- </archive>
- <descriptorRefs>
- <descriptorRef>jar-with-dependencies</descriptorRef>
- </descriptorRefs>
+ </transformer>
+ <transformer
+ implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
+ <resource>META-INF/README</resource>
+ <file>README.txt</file>
+ </transformer>
+ </transformers>
</configuration>
<executions>
@@ -152,12 +200,11 @@
<id>make-assembly</id>
<phase>package</phase>
<goals>
- <goal>single</goal>
+ <goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
-
</project>
\ No newline at end of file
以上是关于text mavn荫的主要内容,如果未能解决你的问题,请参考以下文章