mvn install 报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2 错误: 找不到符号

报错信息



在Eclipse中执行mvn install时,console端显示如下报错信息:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project ERP: Compilation failure: Compilation failure:
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[11,10] 错误: 程序包jxl不存在
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[12,10] 错误: 程序包jxl不存在
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[13,10] 错误: 程序包jxl不存在
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[14,10] 错误: 程序包jxl不存在
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[15,20] 错误: 程序包jxl.read.biff不存在
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[26,75] 错误: 找不到符号
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[61,87] 错误: 找不到符号
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[28,5] 错误: 找不到符号
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[28,21] 错误: 找不到符号
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[29,8] 错误: 找不到符号
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[40,43] 错误: 找不到符号
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[63,5] 错误: 找不到符号
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[63,21] 错误: 找不到符号
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[64,8] 错误: 找不到符号
[ERROR] \test01\src\main\java\HStyle\ERP\Public\ExcelAction.java:[65,8] 错误: 找不到符号

解决方案



到仓库中删除jxl的包,然后project->clean->clean all,选中项目maven->install。ok了

问题分析



多次遇到该问题,但一直没找到问题产生原因。有人说不用删除jar包,直接clean后install就可以。。。该问题还在研究中

mvn install 报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2 错误: 找不到符号

时间: 2024-10-04 13:06:49

mvn install 报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2 错误: 找不到符号的相关文章

maven install时报错 Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test)

今天在一个maven项目上执行maven install命令的时候一直报错,错误信息如下: [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.16

SpringBoot MAVEN编译报错Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:

参考了好几篇文章没搞定,直到查询错误关键字 An unknown compilation problem occurred 分别参考了以下博客: https://blog.csdn.net/fanrenxiang/article/details/80864908 https://blog.csdn.net/weixin_42167717/article/details/80377123 最后搞定的是这篇 https://my.oschina.net/u/170632/blog/857078 An

IDEA报错Failed to execute goal

debug后报错:Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) 在ponm.xml中加入如下配置:<build><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-surefire-pl

maven install Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project web_nanchang

maven打包成war时,报错:Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project web_nanchang: Error assembling WAR: webxml attribute is required 原因:找不到web.xml,但是项目中明明有这个文件,在WebContent/WEB-INF/文件夹下,就是识别不了解决方法:需要在pom

解决Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project autotest_fchtgl: Compilation failure的方法

在碰到maven install 发现报错 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project autotest_fchtgl: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on

maven 编译出错 Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean

eclipse在使用maven的tomcat控件编译java程序时,报错 Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project **-web: Failed to clean project: Failed to delete E:\**\target\tomcat\logs\access_log 这类错误 出现这种错误,通常是由于您已启动了另

【maven】Maven插件篇 --- maven项目 mvn install 报错: Failed to execute goal on project 项目名: Could not resolve dependencies for project

参考:Maven实用技巧 https://msd.misuland.com/pd/3255817963235707346 报错: maven项目 mvn install 报错: [ERROR] Failed to execute goal on project 项目名XXX: Could not resolve dependencies for project com.项目名XXX:war:1.0.0-SNAPSHOT: Failure to find 项目名1XXX:jar:0.1.0-SNA

针对maven install 报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1 解决方案

项目运行环境:jdk1.8+tomcat8 maven install 时报错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1 造成此错误的原因也比较多,下面分2种情况: 情况1(常见):你可能编译在一个JRE而不是JDK上,maven 编译是要JDK的,即你的编译器配置了一个jre路径,需要换成jdk. 操作:window→preference→java→Installed JREs 点add添

解决maven install报错信息(Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile )

Maven install失败 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project autotest_fchtgl: Compilation failure[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE r