Announcement Announcement Module
Collapse
No announcement yet.
AsepctJ ITD not longer working. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    I cant make it work either, so you are not alone.

    Comment


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

      Comment


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

        Comment


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

          Comment


          • #6
            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, 03:22 AM. Reason: fixed code sample datastore -> data

            Comment


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

              Comment


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

                Does not say spring-datastore-neo4j-aspects

                Comment


                • #9
                  "datastore" is wrong btw.
                  should be just "data".

                  But I believe they know already.

                  Comment


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

                    Comment

                    Working...
                    X