maven--Cannot complete the install because one or more required items could not be found
今天在Eclipse上安装maven插件时遇到了如下的错误:
Cannot complete the install because one or more required items could not be found.
Software being installed: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712)
Missing requirement: Maven Integration for Eclipse (Editors) 0.12.1.20110112-1712 (org.maven.ide.eclipse.editor 0.12.1.20110112-1712) requires 'bundle org.eclipse.zest.core 0.0.0' but it could not be found
Cannot satisfy dependency:
From: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712)
To: org.maven.ide.eclipse.editor [0.12.1.20110112-1712]
感觉上是少maven依赖的eclipse插件,网上查了查,解决方法如下:
启动eclipse,点击window——>preferences——>install/update——>available software sites,点击Add
添加如下信息:
GEF http://download.eclipse.org/tools/gef/updates/releases/
然后再重新安装maven插件
=====================================================
Eclipse下使用Maven创建项目出现的archetype错误
【1】出现的错误提示:
Unable to create project from archetype
[org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE]
The desired archetype does not exist
(org.apache.maven.archetypes:maven-archetype-quickstart:1.1)
【2】一般解决方法:
cmd命令行下直接执行(前提是maven已经配置环境变量):mvn archetype:generate 指令,等待几分钟从网络中下载文件后,重新使用eclipse创建maven project,即可成功。
问题:idea maven 程序包org.openqa.selenium不存在
原因:*.java文件需要的jar包,需要在pom.xml文件配置jar包。编译器不报错是编译器引入了。maven运行时会找不到。
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>