我使用 M2Eclipse 插件克隆了 YCSB github 项目(导入 -> Maven -> 从 SCM 签出 Maven 项目)。现在我的包资源管理器显示导入文件夹。但是除了 >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 (execution: 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 从/向中央传输(https://repo.maven.apache.org/maven2):repo.maven.apache。组织
现在尝试根据 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
我究竟做错了什么?