Unfortunately you have to wait for Idea 11 to get full AspectJ support.

I'm in close contact with the developer at JetBrains working on this.

Until then you have to be brave and ignore the editor errors.

It should compile and run fine in idea, even without special AJ plugins (at 
least for me it was enough to verify that AJC was set as compiler in Setup -> 
Compiler -> Java Compiler, check the AspectJ version and give it some more 
memory).

I also think the mentioned AJ plugins are outdated and deprecated (imho) and 
you should just use the AJC compile support built in IDEA.

Sorry to have no better news :( I'd love it to be different too.

Michael

Am 25.07.2011 um 19:17 schrieb gonfi:

> my setup:
>  - intellij 10.5 (IU-107.322, from 29. june 2011)
>  - maven 3
>  - spring 3.0.5.RELEASE
>  - aspectjrt 1.6.12.M1
>  - spring-data-neo4j 1.1.0.M2
>  - jdk 1.7.0, 64bit
>  - windows 7 64 bit
> 
> i have followed the instructions of 
> 
> https://github.com/SpringSource/spring-data-graph-examples/tree/master/imdb 
> to git clone the imdb example. it compiles and works fine when run using
> maven. in intellij idea however i don't get the aspects working.
> 
> then i installed the idea aspectj plugin as described on this post: 
> 
> http://stackoverflow.com/questions/6017767/relatedtoelementclass-concept-class-relatedto-elementclass-must-be-a-class-l
> (this is the demo app, so i'm using the annotated classes directly, no
> interfaces)
> 
> so now my idea plugins are, installed and activated: 
> - AspectJ Support
> - AspejctJ weaver
> - Spring-AOP and AspectJ support
> 
> in the idea menu "Build" i have "AspectJ weaving" enabled.
> 
> i have what this document 
> 
> http://static.springsource.org/spring-data/data-graph/snapshot-site/reference/html/#d0e992
>  
> asks for: ajc version 1.6.12M1. (in idea: settings, compiler, java compiler:
> is set to Ajc, version 1.6.12M1. command line params -target 1.6 -encoding
> UTF-8)
> 
> when compiling in idea i still get these errors and warnings:
> 
> ---
> aspect 'org.springframework.data.graph.neo4j.support.node.Neo4jNodeBacking'
> woven into 'org.neo4j.examples.imdb.domain.Actor' must be defined to the
> weaver (placed on the aspectpath, or defined in an aop.xml file if using
> LTW).
> ...
> Found @DeclareAnnotation while current release does not support it (see
> 'org.aspectj.weaver.bcel.AtAjAttributes')
> advice defined in
> org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not
> been applied [Xlint:adviceDidNotMatch]
> ...
> ---
> 
> i don't see the aspect-added methods, and i get the "incompatible types"
> errors for the elementClass.
> when i compile with maven then i can run the code in idea.
> did anyone get this to work in idea? 
> 
> 
> 
> --
> View this message in context: 
> http://neo4j-community-discussions.438527.n3.nabble.com/intellij-can-t-make-aspect-weaving-of-spring-data-neo4j-work-tp3198091p3198091.html
> Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to