2017-08-24 98 views
0

我試圖將maven依賴關係下載到我的netbeans構建maven web應用程序。 ince我無法通過IDE更新依賴項我試圖使用它來執行此操作無法讀取org.springframework的工件描述符:spring-core:jar

mvn clean install 

命令槽cmd。
但我仍然有同樣的錯誤。 enter image description here

請幫忙。我試圖弄清楚這幾天。 (Internet連接工作相當精細。)
感謝您

編輯
這是輸出。

C:\Users\Dilini\Documents\NetBeansProjects\NewSpring>mvn clean install 
[INFO] Scanning for projects... 
[INFO] 
[INFO] ------------------------------------------------------------------------ 
[INFO] Building NewSpring 1.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[WARNING] The POM for org.springframework:spring-core:jar:5.0.0.RC3 is missing, no dependency information available 
[WARNING] The POM for org.springframework:spring-beans:jar:5.0.0.RC3 is missing, no dependency information available 
[WARNING] The POM for org.springframework:spring-context:jar:5.0.0.RC3 is missing, no dependency information available 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 0.552 s 
[INFO] Finished at: 2017-08-24T15:24:58+05:30 
[INFO] Final Memory: 8M/155M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal on project NewSpring: Could not resolve dependencies for project com.dilini:NewSpring:war:1.0-SNAPSHOT: The following artifacts could not be resolved: org.springframework:spring-core:jar:5.0.0.RC3, org.springframework:spring-beans:jar:5.0.0.RC3, org.springframework:spring-context:jar:5.0.0.RC3: Failure to find org.springframework:spring-core:jar:5.0.0.RC3 in https://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 -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 

C:\Users\Dilini\Documents\NetBeansProjects\NewSpring> 
+0

消息告訴你,這名失蹤的JAR不是你指着倉庫中。我建議去回購並確認它。這可能是你要求的版本不正確。 – duffymo

+0

將輸出添加爲文本而不是圖像 – Jens

+0

爲什麼要使用RC而不是發佈的彈簧版本 – Jens

回答

0

您需要將此回購添加到您的POM文件:

<repositories> 
    <repository> 
    <id>repository.spring.milestone</id> 
    <name>Spring Milestone Repository</name> 
    <url>http://repo.spring.io/milestone</url> 
    </repository> 
</repositories> 
+0

我可以知道那是什麼。所以我應該保留其他依賴關係 –

+0

由於您正在使用的spring-core版本尚未發佈,即它是一個候選版本(RC 5.0.0.RC3),它們存儲在Spring存儲庫中。 – Sam

+0

非常感謝。 –

相關問題