maven-resources-plugin:jar:2.6 is missing, no dependency information available

不要将 cloudera 仓库 配置到 maven 的 setting.xml 中

修改pom.xml

将 cloudera 加在 pom.xml 中,如下:

<repositories>
    <!-- 发布 CDH 的公司提供的maven仓库 -->
    <repository>
        <id>cloudera</id>
        <url>https://repository.cloudera.com/artifactory/cloudera-repos</url>
        <releases>
            <enabled>true</enabled>
        </releases>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>

注意: cloudera 仓库不要配置到 maven的 setting.xml 中,否则启动会报下面错误:

The POM for org.apache.maven.plugins:maven-resources-plugin:jar:2.6 is missing, no dependency information available

修改maven settings.xml

修改 settings.xml,表示除了 aliyun 仓库还使用 cloudera 仓库

<mirror>
    <id>aliyun</id>
    <name>aliyun Maven</name>
    <!-- 关键 -->
    <mirrorOf>*,!cloudera</mirrorOf>
    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>

原文出处:/show_1IX1z8TXhpTO.html