Announcement Announcement Module
Collapse
No announcement yet.
Started need help setting up Neo4j with aspectJ in eclipse a project Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Started need help setting up Neo4j with aspectJ in eclipse a project

    Hello all I would like to create a project using Spring-Data, aspectJ and neo4j in eclipse.
    In the past couple of days I am strangling with this but I cannot find any resource online to reference how to create and set up a project, only abstract examples.
    I can understand how to model my application using spring-data I had an example up and running but when I tried to use the aspectJ the project wont run any more. This is my pom.xml
    Code:
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    	<modelVersion>4.0.0</modelVersion>
    
    	<groupId>org.neo4j.examples</groupId>
    	<artifactId>cineasts-aspects</artifactId>
    	<version>2.1.0.BUILD-SNAPSHOT</version>
    	<packaging>war</packaging>
    
    	<name>Cineasts.net Aspects</name>
    
    	<properties>
    		<spring.version>3.1.0.RELEASE</spring.version>
            <spring-security.version>3.0.0.RC1</spring-security.version>
            <spring-data-neo4j.version>${project.version}</spring-data-neo4j.version>
            <neo4j.version>1.8.M06</neo4j.version>
            <aspectj.version>1.6.12</aspectj.version>
    		<env>test</env>
            <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    	</properties>
    
    	<repositories>
    		<repository>
    			<id>spring-maven-release</id>
    			<name>Spring Maven Release Repository</name>
    			<url>http://maven.springframework.org/release</url>
    		</repository>
    		<repository>
    			<id>spring-maven-snapshot</id>
    			<name>Spring Maven Snapshot Repository</name>
    			<snapshots>
    				<enabled>true</enabled>
    			</snapshots>
    			<url>http://maven.springframework.org/snapshot</url>
    		</repository>
    		<repository>
    			<id>spring-maven-milestone</id>
    			<name>Spring Maven Milestone Repository</name>
    			<url>http://maven.springframework.org/milestone</url>
    		</repository>
    	    <repository>
    	      <id>neo4j-release-repository</id>
    	      <name>Neo4j Maven 2 release repository</name>
    	      <url>http://m2.neo4j.org/releases</url>
    	      <releases>
    	        <enabled>true</enabled>
    	      </releases>
    	      <snapshots>
    	        <enabled>false</enabled>
    	      </snapshots>
    	    </repository>
    	    <repository>
    	      <id>neo4j-snapshot-repository</id>
    	      <name>Neo4j Maven 2 snapshot repository</name>
    	      <url>http://m2.neo4j.org/snapshots</url>
    	      <snapshots>
    	        <enabled>true</enabled>
    	      </snapshots>
    	      <releases>
    	        <enabled>false</enabled>
    	      </releases>
    	    </repository>
    	</repositories>
    
    	<pluginRepositories>
    		<pluginRepository>
    			<id>spring-maven-release</id>
    			<name>Spring Maven Release Repository</name>
    			<url>http://maven.springframework.org/release</url>
    		</pluginRepository>
    		<pluginRepository>
    			<id>spring-maven-milestone</id>
    			<name>Spring Maven Milestone Repository</name>
    			<url>http://maven.springframework.org/milestone</url>
    		</pluginRepository>
    	</pluginRepositories>
    
    	<dependencies>
    		<!-- Spring dependencies -->
    		<dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>${spring.version}</version>
            </dependency>
    		<dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-test</artifactId>
                <version>${spring.version}</version>
                <scope>test</scope>
            </dependency>
    
    		<dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-context-support</artifactId>
                <version>${spring.version}</version>
            </dependency>
    		 <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-aop</artifactId>
                <version>${spring.version}</version>
            </dependency>
    		<dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-aspects</artifactId>
                <version>${spring.version}</version>
            </dependency>
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>slf4j-api</artifactId>
    			<version>${slf4j.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>jcl-over-slf4j</artifactId>
    			<version>${slf4j.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>org.slf4j</groupId>
    			<artifactId>slf4j-log4j12</artifactId>
    			<version>${slf4j.version}</version>
    			<scope>runtime</scope>
    		</dependency>
    		<dependency>
    			<groupId>log4j</groupId>
    			<artifactId>log4j</artifactId>
    			<version>1.2.16</version>
    			<scope>runtime</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.mongodb</groupId>
    			<artifactId>mongo-java-driver</artifactId>
    			<version>2.10.1</version>
    		</dependency>
    		<dependency>
    			<groupId>org.springframework.data</groupId>
    			<artifactId>spring-data-neo4j-aspects</artifactId>
    			<version>${spring-data-neo4j.version}</version>
    			<exclusions>
    				<exclusion>
    					<groupId>org.hibernate.javax.persistence</groupId>
    					<artifactId>hibernate-jpa-2.0-api</artifactId>
    				</exclusion>
    			</exclusions>
    		</dependency>
    		<dependency>
    			<groupId>opensymphony</groupId>
    			<artifactId>sitemesh</artifactId>
    			<version>2.4.2</version>
    		</dependency>
    		<dependency>
    			<groupId>org.codehaus.jackson</groupId>
    			<artifactId>jackson-mapper-asl</artifactId>
    			<version>1.8.3</version>
    		</dependency>
    		<dependency>
    			<groupId>org.aspectj</groupId>
    			<artifactId>aspectjrt</artifactId>
    			<version>${aspectj.version}</version>
    		</dependency>
    		<dependency>
    			<groupId>cglib</groupId>
    			<artifactId>cglib-nodep</artifactId>
    			<version>2.2</version>
    		</dependency>
    		<dependency>
    			<groupId>org.neo4j</groupId>
    			<artifactId>neo4j-kernel</artifactId>
    			<version>${neo4j.version}</version>
    			<type>test-jar</type>
    			<scope>test</scope>
    		</dependency>
    		<dependency>
    			<groupId>org.neo4j</groupId>
    			<artifactId>neo4j-cypher</artifactId>
    			<version>${neo4j.version}</version>
    		</dependency>
    
    		<dependency>
    			<groupId>junit</groupId>
    			<artifactId>junit</artifactId>
    			<version>4.8.1</version>
    			<scope>test</scope>
    		</dependency>
    	</dependencies>
    	<build>
    		<plugins>
    			<plugin>
    				<groupId>org.mortbay.jetty</groupId>
    				<artifactId>jetty-maven-plugin</artifactId>
    				<version>7.1.2.v20100523</version>
    				<configuration>
    					<webAppConfig>
    						<contextPath>/</contextPath>
    					</webAppConfig>
    					<!--scanIntervalSeconds>1</scanIntervalSeconds -->
    				</configuration>
    			</plugin>
    			<plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-compiler-plugin</artifactId>
    				<version>2.1</version>
    				<configuration>
    					<source>1.6</source>
    					<target>1.6</target>
    				</configuration>
    			</plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-eclipse-plugin</artifactId>
                    <version>2.8</version>
                    <configuration>
                        <ajdtVersion>1.5</ajdtVersion>
                        <additionalProjectnatures>
                            <projectnature>org.eclipse.ajdt.ui.ajnature</projectnature>
                            <projectnature>org.eclipse.jdt.core.javanature</projectnature>
                            <projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
                        </additionalProjectnatures>
                    </configuration>
                </plugin>
    			<plugin>
    				<groupId>org.codehaus.mojo</groupId>
    				<artifactId>aspectj-maven-plugin</artifactId>
    				<version>1.2</version>
    				<dependencies>
    					<dependency>
    						<groupId>org.aspectj</groupId>
    						<artifactId>aspectjrt</artifactId>
    						<version>${aspectj.version}</version>
    					</dependency>
    					<dependency>
    						<groupId>org.aspectj</groupId>
    						<artifactId>aspectjtools</artifactId>
    						<version>${aspectj.version}</version>
    					</dependency>
    				</dependencies>
    				<executions>
    					<execution>
    						<goals>
    							<goal>compile</goal>
    							<goal>test-compile</goal>
    						</goals>
    					</execution>
    				</executions>
    				<configuration>
    					<outxml>true</outxml>
    					<aspectLibraries>
    						<aspectLibrary>
    							<groupId>org.springframework</groupId>
    							<artifactId>spring-aspects</artifactId>
    						</aspectLibrary>
    						<aspectLibrary>
    							<groupId>org.springframework.data</groupId>
    							<artifactId>spring-data-neo4j-aspects</artifactId>
    						</aspectLibrary>
    					</aspectLibraries>
    					<source>1.6</source>
    					<target>1.6</target>
    				</configuration>
    			</plugin>
    		</plugins>
    	</build>
    
    </project>
    Eclipse complains and at the X sign it says :
    Code:
    can't determine annotations of missing type javax.persistence.Entity when weaving type com.graph.Graph when weaving classes when weaving when batch building with classpath: C:\Users\maximos\Documents\workspace-sts-3.1.0.RELEASE[Xlint:cantFindType]
    anyone has any Idea please help me out I have no idea what is wrong!
Working...
X