Vì vậy, tôi đã tải xuống và cài đặt STS và sau đó tôi đã tạo một dự án Spring MVC mới. Ngay sau đó sts cảnh báo tôi về 22 vấn đề, ở đây họ là:công cụ mùa xuân bộ dự án mvc mùa xuân - 22 vấn đề ngay sau khi tạo
Description Resource Path Location Type
Missing artifact aopalliance:aopalliance:jar:1.0 pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact org.springframework:spring-beans:jar:3.1.1.RELEASE pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact org.springframework:spring-context:jar:3.1.1.RELEASE pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact org.springframework:spring-aop:jar:3.1.1.RELEASE pom.xml /ContactManager line 1 Maven Dependency Problem
ArtifactDescriptorException: Failed to read artifact descriptor for org.slf4j:slf4j-api:jar:1.6.6: ArtifactResolutionException: Failure to transfer org.slf4j:slf4j-api:pom:1.6.6 from 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. Original error: Could not transfer artifact org.slf4j:slf4j-api:pom:1.6.6 from/to central (http://repo.maven.apache.org/maven2): C:\Users\Skeeve\.m2\repository\org\slf4j\slf4j-api\1.6.6\slf4j-api-1.6.6.pom.ahc3656264e3b414ddf (Не удается найти указанный файл) pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact org.slf4j:jcl-over-slf4j:jar:1.6.6 pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact org.aspectj:aspectjrt:jar:1.6.10 pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact org.springframework:spring-web:jar:3.1.1.RELEASE pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact org.springframework:spring-context-support:jar:3.1.1.RELEASE pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact org.springframework:spring-webmvc:jar:3.1.1.RELEASE pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact org.springframework:spring-asm:jar:3.1.1.RELEASE pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact org.springframework:spring-expression:jar:3.1.1.RELEASE pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact org.springframework:spring-core:jar:3.1.1.RELEASE pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact junit:junit:jar:4.7 pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact javax.servlet:jstl:jar:1.2 pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact javax.servlet.jsp:jsp-api:jar:2.1 pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact javax.servlet:servlet-api:jar:2.5 pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact javax.inject:javax.inject:jar:1 pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact log4j:log4j:jar:1.2.15 pom.xml /ContactManager line 1 Maven Dependency Problem
Missing artifact org.slf4j:slf4j-log4j12:jar:1.6.6 pom.xml /ContactManager line 1 Maven Dependency Problem
Description Resource Path Location Type
The project cannot be built until build path errors are resolved ContactManager Unknown Java Problem
Description Resource Path Location Type
The container 'Maven Dependencies' references non existing library 'C:\Users\Skeeve\.m2\repository\org\springframework\spring-context\3.1.1.RELEASE\spring-context-3.1.1.RELEASE.jar' ContactManager Build path Build Path Problem
Làm cách nào để giải quyết vấn đề này? Cảm ơn bạn
Hoạt động hoàn hảo cho tôi, cảm ơn bạn rất nhiều! Tôi cũng khuyên mọi người gặp vấn đề tương tự để thiết lập các biến môi trường, vì vậy họ chỉ có thể mở thư mục dự án và chạy 'biên dịch mvn'. ví dụ: http://documentation.magnolia-cms.com/developing/dev-environment/maven/maven-env-var.html – Skeeve
Đánh dấu vào hộp kiểm "Force Update of Snapshots/Releases" đã làm điều đó cho tôi! Cảm ơn – nilsi
cảm ơn ..đã giải quyết vấn đề của tôi .."ArtifactTransferException: Không thể chuyển org.aspectj: aspectjrt: jar" – tejaspillai