gpt4 book ai didi

maven - 遵循Cloudera演示时如何解决Maven CDK插件依赖性错误

转载 作者:行者123 更新时间:2023-12-02 20:08:37 24 4
gpt4 key购买 nike

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

但是,我无法获得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

最佳答案

查看pom.xml here,我发现snapshots对于disabledrepository都是pluginRepository

您可以尝试对其进行enable并尝试构建。

关于maven - 遵循Cloudera演示时如何解决Maven CDK插件依赖性错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19392233/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com