如何在Cloudera演示后解决Maven CDK插件依赖错误

时间:2013-10-15 22:33:02

标签: maven hadoop cloudera

我正在尝试跟随Cloudera CDK-examples Demo(https://github.com/cloudera/cdk-examples/tree/master/demo);这是Cloudera关于Hadoop App开发的会议(Big Data Techon 2013)会议的一部分

但是,我无法成功构建mvn install。我一直收到这样的警告

[WARNING] The POM for com.cloudera.cdk:cdk-maven-plugin:jar:0.8.1-SNAPSHOT is missing, no         dependency information available
[WARNING] Failed to retrieve plugin descriptor for com.cloudera.cdk:cdk-maven-plugin:0.8.1-SNAPSHOT: Plugin com.cloudera.cdk:cdk-maven-plugin:0.8.1-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.cloudera.cdk:cdk-maven-plugin:jar:0.8.1-SNAPSHOT

然后它因这些错误而失败...我尝试使用Google和错误中提到的链接自行排除故障,但这无济于事

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.263s
[INFO] Finished at: Tue Oct 15 15:21:23 PDT 2013
[INFO] Final Memory: 6M/57M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'cdk' in the current project and in the plugin groups         [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/cloudera/.m2/repository), cdh.repo (https://repository.cloudera.com/artifactory/cloudera-repos), central     (http://repo.maven.apache.org/maven2)] -> [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/NoPluginFoundForPrefixException

1 个答案:

答案 0 :(得分:1)

查看pom.xml here,我发现snapshotsdisabled的{​​{1}}为repository

您可以尝试pluginRepository并尝试构建。