resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced


Maven在執行中報錯:

- Failure to transfer org.slf4j:slf4j-api:jar:1.7.24 from http://localhost:8081/nexus/content/groups/public/ was cached in the local repository, 
    resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced. 

原因是有些jar包沒有完全下載下來,在編譯中找不到jar包。

解決方法是 在setting.xml中增加一個更新策略,如下:

  <profiles>
    <profile>
  <id>nexus</id>
    <!--所有請求均通過鏡像 -->
    <repositories>
         <repository>
            <id>central</id>
            <url>http://central</url>
            <releases><enabled>true</enabled><updatePolicy>always</updatePolicy></releases>
            <snapshots><enabled>true</enabled><updatePolicy>always</updatePolicy></snapshots>
         </repository>
    </repositories>
    <pluginRepositories>
          <pluginRepository>
             <id>central</id>
             <url>http://central</url>
             <releases><enabled>true</enabled><updatePolicy>always</updatePolicy></releases>
             <snapshots><enabled>true</enabled><updatePolicy>always</updatePolicy></snapshots>
          </pluginRepository>
     </pluginRepositories>
    </profile>
    
    <profile>   
        <id>jdk-1.7</id>   
        <activation>   
          <activeByDefault>true</activeByDefault>   
          <jdk>1.7</jdk>   
        </activation>   
        <properties>   
            <maven.compiler.source>1.7</maven.compiler.source>   
            <maven.compiler.target>1.7</maven.compiler.target>   
            <maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>   
        </properties>   
    </profile>
  </profiles>

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 Failure to find xxx in xxx was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced @ xxx resolution will not be reattempted until the update interval of repository-group has elapsed or updates are forced was cached in the local repository, resolution will not be reattempted until the update interval of fintech has elapsed or updates are forced maven 下載jar失敗: resolution will not be reattempted until the update interval of central has elapsed or updates are forced Maven-010-maven 編譯報錯:Failure to ... in ... was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced. Failure to find ... was cached in the local repository, resolution will not be reattempted until the update interval of public has elapsed or updates are forced 問題解決 pom文件報錯:http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced maven問題-"resolution will not be reattempted until the update interval of MyRepo has elapsed" maven執行報錯resolution will not be reattempted until the update interval of nexus h Maven 2種異常解決方案: Failure to transfer org.apache.maven 和 Project build error: Non-resolvable parent POM for resolution will not be reattempted until the update interval of central has elapsed or upd
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM