IntelliJ IDEA使用记录:maven projects-compile提示【**类,找不到符号】
maven projects选项卡,compile工程时出现error,类似于
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project kk-common: Compilation failure: Compilation failure:
[ERROR] /D:/idea_workspace/common/src/main/java/com/weixin/popular/util/XMLConverUtil.java:[31,44] 程序包com.sun.xml.internal.bind.marshaller不存在
[ERROR] /D:/idea_workspace/common/src/main/java/com/weixin/popular/util/XMLConverUtil.java:[113,44] 找不到符号
[ERROR] 符号: 类 CharacterEscapeHandler
[ERROR] 位置: 类 com..weixin.popular.util.XMLConverUtil
[ERROR] /D:/idea_workspace/common/src/main/java/com/weixin/popular/util/XMLConverUtil.java:[113,88] 找不到符号
[ERROR] 符号: 类 CharacterEscapeHandler
[ERROR] 位置: 类 com.weixin.popular.util.XMLConverUtil
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :common
解决办法【不唯一】:
在pom.xml文件中,增加如下代码
<properties><JAVA_HOME>C:\Program Files\Java\jdk1.8.0_151</JAVA_HOME>
</properties><build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><configuration><source>1.8</source><target>1.8</target><encoding>UTF-8</encoding><compilerArguments><bootclasspath>${JAVA_HOME}/jre/lib/rt.jar</bootclasspath></compilerArguments></configuration></plugin></plugins></build>
IntelliJ IDEA使用记录:maven projects-compile提示【**类,找不到符号】相关推荐
- maven下载依赖提示系统找不到指定路径的问题
maven下载依赖提示系统找不到指定路径的问题 配置完maven发现怎么都下载不了依赖,百度好些解决办法,尝试了配置镜像,修改启动参数,均无果,卡了两天,最后误打误撞尝试以管理员方式运行,问题解决,深 ...
- IDEA下SpringBoot项目的引用类没问题却提示:java:找不到符号:类**位置:程序包
场景 在IDEA下正在调试运行的SpringBoot项目,然后添加了使用代码生成工具生成的domain.Controller.service.serviceImpl.Mapper层的文件后,再次重新调 ...
- java assertthat_java,junit_juit 用assertThat 提示我找不到符号,java,junit - phpStudy
juit 用assertThat 提示我找不到符号 代码如下,用的是intelij idea社区版.import org.junit.Test; import static org.junit.Ass ...
- 源码下编译APK,却是总是提示,找不到符号:SystemProperties 。。。
>>>>>在DeskClock下任意一个java文件中,import android.os.SystemProperties;然后添加user库,将layoutlib.j ...
- maven 打包时异常 <找不到符号 [ERROR] 符号: 方法>
被依赖项目没有打包到本地仓库 或者没有上传到远程仓库 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-pl ...
- maven install报错:找不到符号
0. 问题描述 在进行项目打包的时候发现执行maven install会出现报错:找不到符号 [ERROR] /Library/project/work/fantu_java/digitalenter ...
- apk 打包 java出错_Android Release 打包提示 错误:找不到符号
搞了一上午....必须记录下来
- 运行java提示找不到符号_运行java代码时出现找不到符号错误怎么解决
运行java代码时出现找不到符号错误怎么解决 发布时间:2020-06-23 11:37:00 来源:亿速云 阅读:113 作者:Leah 运行java代码时出现找不到符号错误怎么解决?针对这个问题, ...
- Intellij Idea 导入多个maven项目展示在左侧栏Maven Projects
刚刚要开始从eclipse切换成idea,据说idea功能强大,可是刚刚开始使用很多不习惯,导入第二个maven项目时之前的项目就没了,比较苦恼,下面介绍下导入多个maven项目展示在左侧栏Maven ...
- idea创建Maven工程后提示Maven projects need to be imported
学习时,使用IDEA创建maven工程完成后,出现 Maven projects need to be imported 提示,下面说说如何选择. IDEA提示 Maven工程创建完成后,在idea窗 ...
最新文章
- struts2+hibernate+Spring分层开发
- 数据中台解决的三大问题
- Vim 相关插件整理
- java 动态数组的应用
- linux或Jetson nano上安装torchvision或安装pillow报错:The headers or library files could not be found for jpeg
- Java程序猿的JavaScript学习笔记(10—— jQuery-在“类”层面扩展)
- Spring could 使用Feign超时问题
- shop--10.商品--商品添加(前端)及问题的解决
- springmvc中报错Request processing failed;
- 全球最大的多晶硅制造商保利协鑫去年营收220亿元 售电业务表现抢眼
- 数仓中长跳转问题复现及解决方案
- 10天学安卓-第七天
- telnet IP不通/sybase central工具无法连接到数据库
- 光电自动避障小车_AGV机器人:基于视觉避障的理论基础
- 广搜最短路径变形,(POJ3414)
- 《Managed DirectX +C# 开发(入门篇)》系列文章
- distpicker使用记录
- M-Arch(番外13)GD32L233评测-来点音乐
- halcon学习_超人启蒙班10-20课
- python中GIL和线程与进程