打包报jar包方法不存在问题
例如报错:
com.sun.xml.internal.messaging.saaj.util不存在
命名java8下面有这个rt.jar包可以找到,却报不存在…
直接引入需要的java子包就可以
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<compilerArguments>
<Xlint/>
</compilerArguments>
<verbose>true</verbose>
<showWarnings>true</showWarnings>
<!-- rt包没有打到项目中去 -->
<compilerArguments>
<verbose/>
<bootclasspath>${java.home}/lib/rt.jar</bootclasspath>
</compilerArguments>
<compilerArguments>
<Xlint/>
</compilerArguments>
<verbose>true</verbose>
<showWarnings>true</showWarnings>
<!-- rt包没有打到项目中去 -->
<compilerArguments>
<verbose/>
<bootclasspath>${java.home}/lib/jce.jar</bootclasspath>
</compilerArguments>
</configuration>
</plugin>