Maven 打包时,提示 java: 程序包com.sun.xml.internal.ws.fault 不存在 和 javax.crypto 不存在
2021-02-07 08:17
阅读:480
标签:文件中 tar style and jar exp XML jre class
报错原因:
Maven 打包时,不会导入 JDK 内部的依赖( JDK 属于部署的环境,不属于外部的三方依赖;
解决办法:
在pom.xml 文件中,添加如下 plugin 插件;
plugin>
groupId>org.apache.maven.pluginsgroupId>
artifactId>maven-compiler-pluginartifactId>
configuration>
source>1.8source>
target>1.8target>
compilerArguments> bootclasspath>${JAVA_HOME}/jre/lib/rt.jar;${JAVA_HOME}/jre/lib/jce.jarbootclasspath>
compilerArguments>
configuration>
plugin>
Maven 打包时,提示 java: 程序包com.sun.xml.internal.ws.fault 不存在 和 javax.crypto 不存在
标签:文件中 tar style and jar exp XML jre class
原文地址:https://www.cnblogs.com/damaoa/p/12777418.html
上一篇:go语言反射
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:Maven 打包时,提示 java: 程序包com.sun.xml.internal.ws.fault 不存在 和 javax.crypto 不存在
文章链接:http://soscw.com/index.php/essay/52100.html
文章标题:Maven 打包时,提示 java: 程序包com.sun.xml.internal.ws.fault 不存在 和 javax.crypto 不存在
文章链接:http://soscw.com/index.php/essay/52100.html
评论
亲,登录后才可以留言!