gpt4 book ai didi

java - 构建 spring-crow-security 示例时出现 Maven 错误

转载 作者:行者123 更新时间:2023-12-01 13:17:50 29 4
gpt4 key购买 nike

我正在尝试从 here 构建一个示例应用程序。
我在运行mvn clean install -U时收到此错误消息:

[错误] 无法在项目 crowd-spring-security-sample 上执行目标:无法解析项目 test 的依赖项:crowd-spring-security-sample:jar:1.0-SNAPSHOT:找不到 Artifact com .atlassian.crowd:crowd-integration-springsecurity:jar:2.5.1 位于中心 (http://repo.maven.apache.org/maven2) -> [帮助 1]

有人能指出我遗漏了什么吗?这是我的 pom:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>test</groupId>
<artifactId>crowd-spring-security-sample</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
<crowd.version>2.5.1</crowd.version>
<spring.version>3.1.0.RELEASE</spring.version>
<springsecurity.version>3.1.0.RELEASE</springsecurity.version>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.5.8</version>
</dependency>

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.atlassian.crowd</groupId>
<artifactId>crowd-integration-springsecurity</artifactId>
<version>${crowd.version}</version>
<scope>runtime</scope>
</dependency>

<!-- Crowd needs at runtime -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>${springsecurity.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>${springsecurity.version}</version>
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
<version>${springsecurity.version}</version>
</dependency>
</dependencies>
</project>

最佳答案

首先,您应该通过浏览 search.maven.org 检查 Artifact crowd-integration-springsecurity 是否存在于 Maven 中央存储库中。 .

该 Artifact 在 Maven Central 中不存在,但您可以配置 Atlassian Maven 存储库,如本博客条目 Atlassian Maven 2 Integration 所示。 .

关于java - 构建 spring-crow-security 示例时出现 Maven 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22323166/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com