zoukankan      html  css  js  c++  java
  • Maven构建报错问题解决

    [ERROR] Failed to execute goal on project zepeto-admin: Could not resolve dependencies for project com.yiruike.admin:zepeto-admin:jar:1.0.0-SNAPSHOT: Failure to find xuggle:xuggle-xuggler:jar:5.4 in http://10.35.33.29:8081/repository/maven-public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus-releases has elapsed or updates are forced -> [Help 1]

    解决办法有两种:

    1、命令行的方式(强制更新)

    mvn clean install -U

    2、修改maven配置文件settings.xml

    添加<updatePolicy>always</updatePolicy>;

    <repositories>
       <repository>
         <id>xr-snapshots</id>
           <url>http://nexus.alibaba.com/repository/snapshots/</url>
         <snapshots>
           <enabled>true</enabled>
           <!-- 注意 -- >
           <updatePolicy>always</updatePolicy>
         </snapshots>
         <releases>
           <enabled>false</enabled>
           <!-- 注意 -- >
           <updatePolicy>always</updatePolicy>
         </releases>
       </repository>
     </repositories>
    
    <pluginRepositories>
       <pluginRepository>
         <id>xr-plugins</id>
         <name>xingren plugins</name>
         <url>http://nexus.alibaba.com/repository/public/</url>
         <releases>
             <enabled>true</enabled>
             <!-- 注意 -- >
             <updatePolicy>always</updatePolicy>
         </releases>
          <snapshots>
              <enabled>true</enabled>
              <!-- 注意 -- >
              <updatePolicy>always</updatePolicy>
          </snapshots>
       </pluginRepository>
    </pluginRepositories>
  • 相关阅读:
    第七周学习进度
    环形数组求子数组最大和
    第六周学习进度
    团队
    子数组和最大值
    第五周学习进度
    第四周学习进度
    构建之法第一篇阅读笔记
    关于Sublime text 的PHP编译环境配置的问题
    PHP基础之 数组(二)
  • 原文地址:https://www.cnblogs.com/wjoyxt/p/11327239.html
Copyright © 2011-2022 走看看