Results 1 to 10 of 10

Thread: AsepctJ ITD not longer working.

  1. #1
    Join Date
    Oct 2011
    Posts
    9

    Default AsepctJ ITD not longer working.

    I have recently upgraded from SDN 1.1.0.RELEASE to SDN 2.0.0.RC1.

    This has caused the aspectj-maven-plugin (version 1.4) to stop being able to work properly and so I am stuck with my @NodeEntity relateTo methods as undefined methods.

    Do I need to change any Aspect J settings in Eclipse in order for the newer version to work?

    Thanks
    C.


    Version Info:
    Spring 3.0.6.RELEASE
    AspectJ 1.6.12
    neo4j 1.5
    aspectj-maven-plugin 1.4

  2. #2
    Join Date
    Jul 2011
    Location
    Denmark
    Posts
    31

    Default

    I cant make it work either, so you are not alone.

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

    Default

    Does it only fail in eclipse or also on the maven command line ?

    Do you use Eclipse or STS?

    I will look into the AJ-maven plugin 1.4

    Can you make sure that the project is still an AJ project and Project-Properties->AspectJ->Aspect-Path is correctly set to spring-aspects and spring-data-neo4j-aspects.

    Also Andy Clement mentioned that on Eclipse it would be sensible to install the AJDT Configurator which makes sure that the maven <-> eclipse setup works correctly. This is installed by default in STS.

  4. #4
    Join Date
    Oct 2011
    Posts
    9

    Default

    Hi Michael,

    My AspectJ path was not correct. But I have changed this now and it has fixed the problem.

    Looking at the nightly build documentation, I have noticed that the AspectJ configuration (Example 21.5) needs updating to reflect the AspectJ path change.

    Thanks for your help. It really is greatly appreciated.

    C.

  5. #5
    Join Date
    Oct 2011
    Posts
    9

    Default

    Forgot to mention that this only works for aspect-maven-plugin version 1.2.

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

    Default

    How was the AspectJ path broken?

    How would the Example have to change?

    besides changing:

    Code:
    <artifactId>spring-data-neo4j</artifactId>
    to
    <artifactId>spring-data-neo4j-aspects</artifactId>
    What is the exact issue with the 1.4 plugin?
    Last edited by MichaelHunger; Nov 19th, 2011 at 03:22 AM. Reason: fixed code sample datastore -> data

  7. #7
    Join Date
    Oct 2011
    Posts
    9

    Default

    The AspectJ path contained the jars for spring-aspects and spring-data-neo4j.

    The change you have highlighted is the only change needed.

    The problem I have when using version 1.4 is that although the code compiles, during run time it does not recognise that any @NodeEntity classes implement the NodeBacked interface.

    Thanks,

    C.

  8. #8

    Default

    You should be aware the documentation at:http://static.springsource.org/sprin.../html/#d0e2913

    Does not say spring-datastore-neo4j-aspects

  9. #9
    Join Date
    Jul 2011
    Location
    Denmark
    Posts
    31

    Default

    "datastore" is wrong btw.
    should be just "data".

    But I believe they know already.

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

    Default

    Ouch, you're right, it was a copy & paste error from c-fly's post.

Tags for this Thread

Posting Permissions

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