java - CoreException:无法计算构建计划:插件 org.apache.maven.plugins:maven-compiler-plugin:2.5.1 或其依赖项之一
问题描述
我在 Eclipse (Luna service Release 4.4.2) + Installed TestNG (7.3.0) 中创建了一个 Maven 项目,但不幸的是,尽管我已经使用建议更新了 TestNG 版本几次,但 TestNg 版本显示已安装 6.9.11其他成员在堆栈溢出时给出。每当我尝试清理和构建 Maven 项目时。这是我看到的错误消息。有人可以帮我解决这个问题吗?我看到有人建议运行一些 ```mvn -u clean install ``` 命令。由于我是 Maven 新手,有人可以向我解释在哪里运行这些命令吗?这是我的 POM.xml 文件供参考。
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.appium.demo</groupId>
> <artifactId>AppiumDemoProject</artifactId>
> <version>0.0.1-SNAPSHOT</version>
<!-- https://mvnrepository.com/artifact/io.appium/java-client -->
<dependencies>
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>7.3.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java -->
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.141.59</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.testng/testng -->
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.3.0</version>
<scope>test</scope>
</dependency>
</dependencies>
解决方案
修复:安装正确的 Maven 二进制 zip 文件后。[在此处输入图片描述][1]
[1]:https ://i.stack.imgur.com/jruii.png 。错误已修复。另外,我必须将标签从Jar更改为 Pom 文件。
推荐阅读
- angular - Angular HttpClient HttpErrorResponse JSON 中位置 0 的意外标记
- regex - 使用 vi 或 sed 的非捕获模式
- unit-testing - 当 A 的方法在 Go 中返回 B 时模拟对象 A 和 B
- docker - 当我仍然需要对地址进行硬编码时,为什么还要使用 docker 链接?
- jsf - Myfaces 2.0.5:如果没有在字段中输入值,则禁用验证
- flutter - 如何使用 Widget 控制一些导航流程
- python - Beautifulsoup - 在 soup.find() 中传递变量
- kotlin - 使用 Dagger 提供没有接口的实例
- java - 尝试使用 Dbeaver DB 连接到 Sybase 时显示“未找到合适的驱动程序”错误
- apache-spark - 带引号的字符串读取的火花数据