com.sun.xml.internal.messaging.saaj.util 包未找到

1.配置rt.jar

<plugin>

 <groupId>org.apache.maven.plugins</groupId>

 <artifactId>maven-compiler-plugin</artifactId>

 <version>3.0</version>

 <configuration>

 <compilerArguments>

  <Xlint />

 </compilerArguments>

 <verbose>true</verbose>

  <source>${java.version}</source>

  <target>${java.version}</target>

  <showWarnings>true</showWarnings>

 <!--  rt包没有打到项目中去 -->

  <compilerArguments>

   <verbose />

   <bootclasspath>${java.home}/lib/rt.jar</bootclasspath>

 </compilerArguments>

</configuration>

</plugin>

 

转载于:https://my.oschina.net/lavedream/blog/675248