Results 1 to 8 of 8

Thread: Unable to spring-data-neo4j configured

  1. #1

    Question Unable to spring-data-neo4j configured

    After adding
    Code:
      <dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-data-neo4j</artifactId>
        <version>2.0.0.RELEASE</version>
      </dependency>
    into my project POM file, I get an error "Missing artifact org.springframework.data:spring-data-commons-core:jar:1.2.0.RC1". I just can't get the jar file downloaded after deleting the springframework/data/spring-data-commons-core/1.2.0.RC1.

    Here is messages from running maven:
    Code:
    Downloading: http://localhost:8081/nexus/content/groups/public/org/springframework/data/spring-data-commons-core/1.2.0.RC1/spring-data-commons-core-1.2.0.RC1.pom
    [WARNING] The POM for org.springframework.data:spring-data-commons-core:jar:1.2.0.RC1 is missing, no dependency information available
    Downloading: http://localhost:8081/nexus/content/groups/public/org/springframework/data/spring-data-commons-core/1.2.0.RC1/spring-data-commons-core-1.2.0.RC1.jar
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 4.047s
    [INFO] Finished at: Mon Feb 06 21:05:00 PST 2012
    [INFO] Final Memory: 4M/15M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project circle: Could not resolve dependencies for project com.abc:circle:war:1.0.0-BUILD-SNAPSHOT: Could not find artifact org.springframework.data:spring-data-commons-core:jar:1.2.0.RC1 in nexus (http://localhost:8081/nexus/content/groups/public) -> [Help 1]
    How to solve this problem?
    [URL="http://vicina.info"] 新闻,社区新闻,分类广告

  2. #2
    Join Date
    Jan 2011
    Location
    Dresden, Germany
    Posts
    525

    Default

    Sorry there was an issue when releasing 2.0 with a dependency merge, could you now (for the time being include the spring milestone repository in your pom?

    Code:
    		<repository>
    			<id>repository.springframework.maven.milestone</id>
    			<name>Spring Framework Maven Milestone Repository</name>
    			<url>http://maven.springframework.org/milestone</url>
    		</repository>

  3. #3

    Default

    Thanks Michael for your information. In fact, I already have a mile stone repository in the POM file as
    Code:
    		<repository>
    			<id>spring-milestone</id>
    			<name>Spring Maven MILESTONE Repository</name>
    			<url>http://maven.springframework.org/milestone</url>
    		</repository>
    The situation doesn't get better after replacing with yours.
    [URL="http://vicina.info"] 新闻,社区新闻,分类广告

  4. #4
    Join Date
    Jan 2011
    Location
    Dresden, Germany
    Posts
    525

    Default

    Don't replace it, but add the ones I gave you.

    Michael

  5. #5

    Default

    That doesn't help unfortunately. The essential part of the repository, I believe, is the url, which is the same for both versions.
    [URL="http://vicina.info"] 新闻,社区新闻,分类广告

  6. #6
    Join Date
    Jan 2012
    Posts
    9

    Default

    You may try this:

    1- temporarily comment your nexus repository (the one with URL http://localhost:8081/nexus/content/groups/public )
    2- rebuild so that it now fetches files from the spring milestone repository -- now you'll have the file in your local repository
    3- decomment the code you commented in 1.

    If it doesn't work, you may get the files from the spring milestone repository manually and copy them in your local repository.

  7. #7
    Join Date
    Jan 2009
    Location
    Huntington Beach, CA
    Posts
    718

    Default

    This was my fix

    Code:
     <!-- Spring Data Neo4j -->
            <dependency>
                <groupId>org.springframework.data</groupId>
                <artifactId>spring-data-neo4j</artifactId>
                <version>${spring-data-neo4j.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.springframework.data</groupId>
                        <artifactId>spring-data-commons-core</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.springframework.data</groupId>
                <artifactId>spring-data-commons-core</artifactId>
                <version>${spring-data-commons.version}</version>
            </dependency>
    With properties set

    Code:
    <properties>
        <spring-data-neo4j.version>2.0.0.RELEASE</spring-data-neo4j.version>
        <spring-data-commons.version>1.2.0.RELEASE</spring-data-commons.version>
    </properties>
    I didn't want any SNAPSHOTS only RELEASEs in my pom.

    So here are the Repos I have in my pom

    Code:
    <repositories>
            <repository>
                <id>spring-maven-release</id>
                <name>Spring Maven Release Repository</name>
                <url>http://maven.springframework.org/release</url>
            </repository>
            <repository>
                <id>neo4j-public-release-repository</id>
                <name>Neo4J Public Release Repository</name>
                <url>http://m2.neo4j.org/releases</url>
            </repository>
    </repositories>


    Mark

  8. #8

    Default

    Thanks Mark. Excluding spring-data-commons-core solves my problem. I don't need to have any repositories in my POM file for this matter.
    Last edited by vw729; Feb 8th, 2012 at 07:55 PM.
    [URL="http://vicina.info"] 新闻,社区新闻,分类广告

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •