Results 1 to 3 of 3

Thread: [neo4j] Cannot resolve relateTo method

  1. #1
    Join Date
    Oct 2012
    Location
    Atlanta, GA
    Posts
    3

    Default [neo4j] Cannot resolve relateTo method

    I have a few of my own projects where the relateTo method is not being resolved correctly. To confirm that is was not my own project I downloaded the spring-data-neo4j-samples (git://github.com/SpringSource/spring-data-neo4j.git) and I'm having the same problem. The myrestaurants-social UserAccount node entity is one specific example. I've also tried this in both intellij and eclipse, so am I missing any maven dependencies or something? I'm sure its something simple.

    Here are my mvn dependencies:
    Code:
    <dependencies>
        <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>3.8.1</version>
          <scope>test</scope>
        </dependency>
          <dependency>
              <groupId>org.springframework.data</groupId>
              <artifactId>spring-data-neo4j</artifactId>
              <version>2.1.0.RC3</version>
          </dependency>
          <dependency>
              <groupId>junit</groupId>
              <artifactId>junit</artifactId>
              <version>4.9</version>
          </dependency>
          <dependency>
              <groupId>org.springframework</groupId>
              <artifactId>spring-test</artifactId>
              <version>3.2.0.M1</version>
          </dependency>
          <dependency>
              <groupId>org.springframework</groupId>
              <artifactId>spring-webmvc</artifactId>
              <version>3.1.2.RELEASE</version>
          </dependency>
          <dependency>
              <groupId>org.springframework.data</groupId>
              <artifactId>spring-data-neo4j</artifactId>
              <version>2.1.0.RC3</version>
          </dependency>
      </dependencies>

  2. #2
    Join Date
    Oct 2012
    Location
    Atlanta, GA
    Posts
    3

    Default

    I also tested this on another machine and had the same results. Any thoughts?

  3. #3
    Join Date
    Oct 2012
    Location
    Atlanta, GA
    Posts
    3

    Default

    Just wanted to update that I was able to resolve this issue by following this archived forum post

    http://forum.springsource.org/archiv...t-114627.html?

    In particular, I used the following suggestion:
    Import -> Maven -> Existing Maven Maven Project and imported the SDG HelloWorld project, there were no editor errors at all.

    Please make sure that Project Properties -> AspectJ Build -> Aspect Path should contain two entries, first spring-aspects from the springframework and the spring-data-neo4j jars.

Posting Permissions

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