Announcement Announcement Module
Collapse
No announcement yet.
Unable to spring-data-neo4j configured Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #2
    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>

    Comment


    • #3
      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.

      Comment


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

        Michael

        Comment


        • #5
          That doesn't help unfortunately. The essential part of the repository, I believe, is the url, which is the same for both versions.

          Comment


          • #6
            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.

            Comment


            • #7
              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

              Comment


              • #8
                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, 07:55 PM.

                Comment

                Working...
                X