Macaca 官网自带的 sample 下载下来后,Maven 的 pom 文件报错怎么解决

hello · February 21, 2017 · Last by hello replied at February 21, 2017 · 1471 hits

新人小白,刚学习 Macaca,官网自带的 sample 下载下来后,Maven 的 pom 文件报错怎么解决?

官网自带的 sample 地址:https://github.com/macaca-sample/macaca-test-sample-java

Eclipse 控制台输出信息:
17-2-21 下午 02 时 35 分 44 秒: Adding source folder /macacatestsample/src/test/java
17-2-21 下午 02 时 35 分 45 秒: Project import completed 7 sec
17-2-21 下午 02 时 35 分 45 秒: Refreshing [/macacatestsample/pom.xml]
17-2-21 下午 02 时 35 分 45 秒: [WARN] The POM for macaca.webdriver.client:macacaclient:jar:2.0.1 is missing, no dependency information available
17-2-21 下午 02 时 35 分 45 秒: Missing artifact macaca.webdriver.client:macacaclient:jar:2.0.1:compile
17-2-21 下午 02 时 35 分 45 秒: Maven Builder: FULL_BUILD
17-2-21 下午 02 时 35 分 45 秒: [WARN]
17-2-21 下午 02 时 35 分 45 秒: [WARN] Some problems were encountered while building the effective model for macaca.webdriver.client:macacatestsample:jar:1.0.1
17-2-21 下午 02 时 35 分 45 秒: [WARN] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 12, column 12
17-2-21 下午 02 时 35 分 45 秒: [WARN]
17-2-21 下午 02 时 35 分 45 秒: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build.
17-2-21 下午 02 时 35 分 45 秒: [WARN]
17-2-21 下午 02 时 35 分 45 秒: [WARN] For this reason, future Maven versions might no longer support building such malformed projects.
17-2-21 下午 02 时 35 分 45 秒: [WARN]
17-2-21 下午 02 时 35 分 45 秒: [WARN] The POM for macaca.webdriver.client:macacaclient:jar:2.0.1 is missing, no dependency information available
17-2-21 下午 02 时 35 分 45 秒: Build errors for macacatestsample; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project macacatestsample: Could not resolve dependencies for project macaca.webdriver.client:macacatestsample:jar:1.0.1: Failure to find macaca.webdriver.client:macacaclient:jar:2.0.1 in http://192.168.0.101:8081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced

应该是 macaca.webdriver.client 这个 2.0.1jar 包下载不下来,大家有人遇到这个问题没?怎么解决的?在线等

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
共收到 4 条回复 时间 点赞

https://testerhome.com/topics/5789 参考 设置好你的 setting.xml 和 maven 环境

先执行下 mvn -s settings.xml compile 就可以了

#2 楼 @Lihuazhang
#1 楼 @harsayer

问题在这里,公司的私服,这个镜像删除掉就可以了。但是删除这个,会导致有些 jar 包,更新的慢。应该有兼容的方法的

如大家遇到同样的问题了,因为公司私服镜像的的问题,加上一个阿里的镜像就可以解决了。

alimaven
aliyun maven
http://maven.aliyun.com/nexus/content/groups/public/
central

hello 关闭了讨论 21 Feb 16:01
hello macaca 运行报错,其中的坑 中提及了此贴 04 Jul 18:28
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up