Question

I'm trying to build a sample application from here.
I 'm getting this error message while running mvn clean install -U:

[ERROR] Failed to execute goal on project crowd-spring-security-sample: Could not resolve dependencies for project test:crowd-spring-security-sample:jar:1.0-SNAPSHOT: Could not find artifact com.atlassian.crowd:crowd-integration-springsecurity:jar:2.5.1 in central (http://repo.maven.apache.org/maven2) -> [Help 1]

Could somebody point where I am missing something? Here is my 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>
Was it helpful?

Solution

First of all you should check if the artifact crowd-integration-springsecurity exists in the maven central repo by browsing search.maven.org.

The artifact doesn't exist in maven central, but you can configure atlassian maven repository as in this blog entry Atlassian Maven 2 Integration.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top