Maven项目打FatJar胖包
一 在pom.xml添加build代码
- 在
</dependencies>
下添加<build></build>
代码
<!--下面代码是为打Jar包时可以导入依赖,成为fatJar胖包-->
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>