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 [email protected] https://lists.neo4j.org/mailman/listinfo/user

