maven打包错误bug修改
This commit is contained in:
parent
717be14f19
commit
6616beeafa
16
pom.xml
16
pom.xml
@ -946,13 +946,23 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
<encoding>UTF-8</encoding>
|
||||
<compilerArguments>
|
||||
<extdirs>${project.basedir}/src/main/resources/lib</extdirs>
|
||||
</compilerArguments>
|
||||
<!-- 正确设置编译器参数 -->
|
||||
<compilerArgs>
|
||||
<!-- extdirs需要拆分成两个参数 -->
|
||||
<arg>-extdirs</arg>
|
||||
<arg>${project.basedir}/src/main/resources/lib</arg>
|
||||
<!-- 其他合法的javac参数 -->
|
||||
</compilerArgs>
|
||||
<!-- 必须设置fork=true才能使用内存参数 -->
|
||||
<fork>true</fork>
|
||||
<!-- 这里是设置编译器JVM的内存参数 -->
|
||||
<meminitial>1024m</meminitial>
|
||||
<maxmem>2048m</maxmem>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<!-- 打包跳过测试 -->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user