现象描述:
[INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ pcpaas-foura ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 123 source files to D:\new-life\ops-server\ops\ops-server\pcpaas\pcpaas-foura\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /D:/new-life/ops-server/ops/ops-server/pcpaas/pcpaas-foura/src/main/java/com/chinamobile/cmss/pcb1/user/utils/LogUtil.java:[7,44] 程序包com.
sun.xml.internal.bind.marshaller不存在
原因分析:maven 插件编译过程中,未加载到jdk内部类
解决方法:
在pom.xml插件配置中加入如下配置:<bootclasspath>${JAVA_HOME}/jre/lib/rt.jar;${JAVA_HOME}/jre/lib/jce.jar </bootclasspath>
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifa