使用Eclispe编译YCSB Maven项目时构建失败

时间:2015-09-09 08:20:00

标签: eclipse maven build ycsb

我用M2Eclipse插件克隆了YCSB github项目(Import - > Maven - >从SCM查看Maven项目)。 现在我的Package Explorer显示了importet文件夹。但是除了> root之外的每个文件夹在其pom.xml中都有错误。错误说:

  

此行找到多个注释:        - 生命周期配置未涵盖的插件执行:org.apache.maven.plugins:maven-compiler-plugin:3.3:testCompile(执行:default-testCompile,阶段:test-compile)        - 生命周期配置未涵盖的插件执行:org.apache.maven.plugins:maven-compiler-plugin:3.3:compile(执行:default-compile,phase:compile)        - 生命周期配置未涵盖的插件执行:org.apache.maven.plugins:maven-checkstyle-plugin:2.15:checkstyle(执行:验证,阶段:验证)        - CoreException:无法计算构建计划:插件org.apache.maven.plugins:maven-compiler-plugin:3.3或其中一个依赖项无法解析:无法读取        org.apache.maven.plugins的工件描述符:maven-compiler-plugin:jar:3.3:ArtifactResolutionException:无法传输org.apache.maven.plugins:maven-compiler-plugin:pom:3.3        来自https://repo.maven.apache.org/maven2的缓存已缓存在本地存储库中,在中心的更新间隔过去或强制更新之前,不会重新尝试解析。        原始错误:无法传输工件org.apache.maven.plugins:maven-compiler-plugin:pom:3.3 from / to central(https://repo.maven.apache.org/maven2):repo.maven.apache.org

现在尝试使用以下命令根据YCSB项目的“入门”站点编译>项目的根文件夹:

mvn clean package

所以在Eclipse中我设置clean和package作为目标。它正在尝试使用以下输出构建项目结束退出。

[INFO] YCSB Root .......................................... FAILURE [  0.686 s]
[INFO] Core YCSB .......................................... SKIPPED
[INFO] Per Datastore Binding descriptor ................... SKIPPED
[INFO] YCSB Datastore Binding Parent ...................... SKIPPED
[INFO] Accumulo DB Binding ................................ SKIPPED
[INFO] Aerospike DB Binding ............................... SKIPPED
[INFO] Cassandra DB Binding ............................... SKIPPED
[INFO] Couchbase Binding .................................. SKIPPED
[INFO] DynamoDB DB Binding ................................ SKIPPED
[INFO] ElasticSearch Binding .............................. SKIPPED
[INFO] Gemfire DB Binding ................................. SKIPPED
[INFO] HBase DB Binding ................................... SKIPPED
[INFO] Hypertable DB Binding .............................. SKIPPED
[INFO] Infinispan DB Binding .............................. SKIPPED
[INFO] JDBC DB Binding .................................... SKIPPED
[INFO] MongoDB Binding .................................... SKIPPED
[INFO] OrientDB Binding ................................... SKIPPED
[INFO] Redis DB Binding ................................... SKIPPED
[INFO] Tarantool DB Binding ............................... SKIPPED
[INFO] YCSB Release Distribution Builder .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.040 s
[INFO] Finished at: 2015-09-09T09:27:59+02:00
[INFO] Final Memory: 6M/16M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Unknown host repo.maven.apache.org -> [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/PluginResolutionException

有人可以告诉我,我做错了什么? 谢谢!

0 个答案:

没有答案