打赏

星辰大海ゞ

That which does not kill us makes us stronger!

导航

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>

 

posted on 2019-08-09 15:03  星辰大海ゞ  阅读(788)  评论(0编辑  收藏  举报