以下是解决依赖关系时 spring security 3 的错误 I:
Multiple annotations found at this line:
- Missing artifact org.springframework.security:org.springframework.security.web:jar:3.0.3.RELEASE
- ArtifactTransferException: Failure to transfer
org.springframework.security:org.springframework.security.web:jar:3.0.3.RELEASE from http://
repository.springsource.com/maven/bundles/release was cached in the local repository, resolution will not be
reattempted until the update interval of com.springsource.repository.bundles.release has elapsed or updates are
forced. Original error: Could not transfer artifact org.springframework.security:org.springframework.security.web:jar:
3.0.3.RELEASE from/to com.springsource.repository.bundles.release (http://repository.springsource.com/maven/
bundles/release): connection timed out to http://repository.springsource.com/maven/bundles/release/org/
springframework/security/org.springframework.security.web/3.0.3.RELEASE/
org.springframework.security.web-3.0.3.RELEASE.jar
以下是我的 pom 文件中定义的 spring security 3 依赖项:
<!-- Spring Security dependencies -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>org.springframework.security.acls</artifactId>
<version>${spring.security.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>org.springframework.security.config</artifactId>
<version>${spring.security.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>org.springframework.security.core</artifactId>
<version>${spring.security.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>org.springframework.security.taglibs</artifactId>
<version>${spring.security.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>org.springframework.security.web</artifactId>
<version>${spring.security.version}</version>
</dependency>
以下是我在 pom 中定义的存储库:
<!-- SpringSource EBR repos -->
<repository>
<id>com.springsource.repository.bundles.release</id>
<name>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</name>
<url>http://repository.springsource.com/maven/bundles/release</url>
</repository>
<repository>
<id>com.springsource.repository.bundles.external</id>
<name>SpringSource Enterprise Bundle Repository - External Bundle Releases</name>
<url>http://repository.springsource.com/maven/bundles/external</url>
</repository>
有人可以帮我理解为什么我会收到这个错误吗?
谢谢。