2012-02-09 1 views
0

Я новичок на maven и новичок в spring-data-neo4j тоже. Я скачал этот hello-worlds-exampleне может построить пример hello-world весны-данных-графика

Я попытался выполнить пример, как описано с помощью Maven с помощью команды:

mvn clean package exec:java 

Я стал много ошибок. Я не нахожу способ решить проблему, даже понимая проблему.

[INFO] Scanning for projects... 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building Spring Data Neo4j hello-worlds 1.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ spring-data-neo4j-hello-worlds --- 
[INFO] Deleting C:\Users\me\Desktop\SpringSource-spring-data-graph-examples\hello-worlds\target 
[INFO] 
[INFO] --- aspectj-maven-plugin:1.0:compile (default) @ spring-data-neo4j-hello-worlds --- 
[ERROR] can't determine implemented interfaces of missing type org.springframework.beans.factory.wiring.BeanConfigurerSupport 
when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[Xlint:cantFindType] 
[ERROR] can't determine implemented interfaces of missing type org.springframework.beans.factory.BeanFactoryAware 
when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[Xlint:cantFindType] 
[ERROR] can't determine implemented interfaces of missing type org.springframework.beans.factory.InitializingBean 
when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[Xlint:cantFindType] 
[ERROR] can't determine implemented interfaces of missing type org.springframework.beans.factory.DisposableBean 
when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[Xlint:cantFindType] 
[ERROR] can't determine implemented interfaces of missing type org.springframework.beans.factory.BeanFactoryAware 
when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[Xlint:cantFindType] 
[ERROR] can't determine implemented interfaces of missing type org.springframework.beans.factory.InitializingBean 
when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[Xlint:cantFindType] 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 1.540s 
[INFO] Finished at: Thu Feb 09 12:26:59 CET 2012 
[INFO] Final Memory: 12M/108M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.0:compile (default) on project spring-data-neo4j-hello-worlds: Compiler errors : 
[ERROR] error can't determine implemented interfaces of missing type org.springframework.beans.factory.wiring.BeanConfigurerSupport 
[ERROR] when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[ERROR] [Xlint:cantFindType] 
[ERROR] error can't determine implemented interfaces of missing type org.springframework.beans.factory.BeanFactoryAware 
[ERROR] when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[ERROR] [Xlint:cantFindType] 
[ERROR] error can't determine implemented interfaces of missing type org.springframework.beans.factory.InitializingBean 
[ERROR] when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[ERROR] [Xlint:cantFindType] 
[ERROR] error can't determine implemented interfaces of missing type org.springframework.beans.factory.DisposableBean 
[ERROR] when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[ERROR] [Xlint:cantFindType] 
[ERROR] error can't determine implemented interfaces of missing type org.springframework.beans.factory.BeanFactoryAware 
[ERROR] when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[ERROR] [Xlint:cantFindType] 
[ERROR] error can't determine implemented interfaces of missing type org.springframework.beans.factory.InitializingBean 
[ERROR] when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[ERROR] [Xlint:cantFindType] 
[ERROR] -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 

Мой Maven установлен правильно:

C:\Users\me>mvn -version 
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) 
Maven home: C:\apache-maven-3.0.4 
Java version: 1.7.0_02, vendor: Oracle Corporation 
Java home: C:\Program Files\Java\jdk1.7.0_02\jre 
Default locale: de_DE, platform encoding: Cp1252 
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" 

Спасибо за вашу помощь.

EDIT (то же самое с jdk1.6):

C:\Users\me>mvn --version 
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) 
Maven home: C:\apache-maven-3.0.4 
Java version: 1.6.0_30, vendor: Sun Microsystems Inc. 
Java home: C:\Program Files\Java\jdk1.6.0_30\jre 
Default locale: de_DE, platform encoding: Cp1252 
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" 

и:

C:\Users\me\Desktop\SpringSource-spring-data-graph-examples\hello-worlds>mvn clean package exec:java 
[INFO] Scanning for projects... 
[INFO]                   
[INFO] ------------------------------------------------------------------------ 
[INFO] Building Spring Data Neo4j hello-worlds 1.0-SNAPSHOT 
[INFO] ------------------------------------------------------------------------ 
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ spring-data-neo4j-hello-worlds --- 
[INFO] Deleting C:\Users\me\Desktop\SpringSource-spring-data-graph-examples\hello-worlds\target 
[INFO] 
[INFO] --- aspectj-maven-plugin:1.0:compile (default) @ spring-data-neo4j-hello-worlds --- 
[ERROR] can't determine implemented interfaces of missing type org.springframework.beans.factory.wiring.BeanConfigurerSupport 
when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[Xlint:cantFindType] 
[ERROR] can't determine implemented interfaces of missing type org.springframework.beans.factory.BeanFactoryAware 
when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[Xlint:cantFindType] 
[ERROR] can't determine implemented interfaces of missing type org.springframework.beans.factory.InitializingBean 
when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[Xlint:cantFindType] 
[ERROR] can't determine implemented interfaces of missing type org.springframework.beans.factory.DisposableBean 
when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[Xlint:cantFindType] 
[ERROR] can't determine implemented interfaces of missing type org.springframework.beans.factory.BeanFactoryAware 
when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[Xlint:cantFindType] 
[ERROR] can't determine implemented interfaces of missing type org.springframework.beans.factory.InitializingBean 
when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[Xlint:cantFindType] 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 1.528s 
[INFO] Finished at: Thu Feb 09 14:56:22 CET 2012 
[INFO] Final Memory: 5M/78M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.0:compile (default) on project spring-data-neo4j-hello-worlds: Compiler errors : 
[ERROR] error can't determine implemented interfaces of missing type org.springframework.beans.factory.wiring.BeanConfigurerSupport 
[ERROR] when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[ERROR] [Xlint:cantFindType] 
[ERROR] error can't determine implemented interfaces of missing type org.springframework.beans.factory.BeanFactoryAware 
[ERROR] when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[ERROR] [Xlint:cantFindType] 
[ERROR] error can't determine implemented interfaces of missing type org.springframework.beans.factory.InitializingBean 
[ERROR] when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[ERROR] [Xlint:cantFindType] 
[ERROR] error can't determine implemented interfaces of missing type org.springframework.beans.factory.DisposableBean 
[ERROR] when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[ERROR] [Xlint:cantFindType] 
[ERROR] error can't determine implemented interfaces of missing type org.springframework.beans.factory.BeanFactoryAware 
[ERROR] when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[ERROR] [Xlint:cantFindType] 
[ERROR] error can't determine implemented interfaces of missing type org.springframework.beans.factory.InitializingBean 
[ERROR] when batch building BuildConfig[null] #Files=7 AopXmls=#0 
[ERROR] [Xlint:cantFindType] 
[ERROR] -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 
+0

Не могли бы вы запустить его с помощью JDK 1.6? –

+0

да, я могу, см. Ниже «EDIT (то же самое с jdk1.6):« – hilbert

+0

Настройка Java7, Windows и Maven3 обычно работает, как я только что узнал. Можете ли вы попытаться очистить свой репозиторий maven (должны быть в «Documents and Settngs/.m2/repository») и повторить попытку? –

ответ

0

Я могу подтвердить это работает с Windows 7, Java 6/7 и Maven 3:

C: \ Users \ lassewesth \ IdeaProjects \ spring-data-neo4j \ spring-data-neo4j-examples \ hello-worlds> mvn --version Apache Maven 3.0.4 (r1232337; 2012-01-17 08 : 44: 56 + 0000) Maven home: C: \ Users \ lassewesth \ apache-maven-3.0.4 Версия Java: 1.6.0_30, поставщик: Sun Microsystems Inc. Домашняя страница Java: C: \ Program Files \ Java \ jdk1.6.0_30 \ JRE региональные настройки по умолчанию: en_GB, кодировка платформы: CP1252 имя ОС: "Windows 7", версия: "6,1", арка: "amd64", семья: "окно"

C: \ Пользователи \ lassewesth \ IdeaProjects \ spring-data-neo4j \ spring-data-neo4j-examples \ he llo-worlds> mvn --version Apache Maven 3.0.4 (r1232337; 2012-01-17 08: 44: 56 + 0000) Maven home: C: \ Users \ lassewesth \ apache-maven-3.0.4 Версия Java: 1.7.0_02, поставщик: Корпорация Oracle Домашняя страница Java: C: \ Program Files \ Java \ jdk1.7.0_02 \ JRE По умолчанию локали: en_US, платформа кодирования: CP1252 название ОС: "Windows 7", версия: "6,1", арка: "amd64", семья: "окна"

+0

да его право, @ Майкл решает проблему, мой репозиторий был сломан – hilbert