Browse Source

pom文件添加java路径

fenghaifu 2 years ago
parent
commit
1cfca6a613
1 changed files with 5 additions and 0 deletions
  1. 5 0
      pom.xml

+ 5 - 0
pom.xml

@@ -331,6 +331,11 @@
                     <source>1.8</source>
                     <target>1.8</target>
                     <encoding>UTF-8</encoding>
+					<compilerArguments>
+						<verbose />
+						<!-- 将jdk的依赖jar打入项目中,这样项目中使用的jdk的依赖就尅正常使用 -->
+						<bootclasspath>${java.home}/lib/rt.jar;${java.home}/lib/jce.jar;${java.home}/lib/jsse.jar</bootclasspath>
+					</compilerArguments>
                 </configuration>
             </plugin>
             <!-- 打包跳过测试 -->