• 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>
  • 相关阅读:
    网络流 方阵移动
    NOI2019滚粗记
    PKUSC2019游记
    CQOI十二省联考游记
    数学结论题 书堆
    计算几何 大灾变
    51NOD 1773 A国的贸易
    BZOJ 3944
    51Nod 1238
    NOIP2018游记
  • 原文地址:https://www.cnblogs.com/wjoyxt/p/11327239.html
Copyright © 2020-2023  润新知