zoukankan      html  css  js  c++  java
  • maven项目依赖中报错Plugin ‘org.apache.maven.plugins:maven-compiler-plugin:’ not found

     我的解决方案,maven仓库中配置的地址不对。我们的项目使用的是私有仓库地址,我最开始配置的是阿里云公共的仓库地址,后来我把阿里云仓库注释掉,此时使用的是默认仓库地址,这时还是报错。如下所示:

    <mirrors>
        <!-- mirror
         | Specifies a repository mirror site to use instead of a given repository. The repository that
         | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
         | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
         |
        <mirror>
          <id>mirrorId</id>
          <mirrorOf>repositoryId</mirrorOf>
          <name>Human Readable Name for this Mirror.</name>
          <url>http://my.repository.com/repo/path</url>
        </mirror>
         -->
        <!-- 阿里云仓库 -->
          <!--
          <mirror>
              <id>alimaven</id>
              <mirrorOf>central</mirrorOf>
              <name>aliyun maven</name>
              <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
          </mirror>
          -->
      </mirrors>

    最后替换成公司私有的仓库地址就可以了。

    仅此记录一下遇到的问题~

  • 相关阅读:
    centos6系列更换阿里yum源
    javascript字符串方法学习汇总
    ORA-01439:要更改数据类型,则要修改的列必须为空
    Python之字典
    Python之元组
    Python之列表
    Tensorflow 快速学习
    Ubuntu 切换到root 授权失败
    受限玻尔兹曼机二
    Numpy 数组ndarray和常用函数速查
  • 原文地址:https://www.cnblogs.com/zhlblogs/p/14024911.html
Copyright © 2011-2022 走看看