2012-02-09 82 views
0

我是新的Maven和新的弹簧数据Neo4j的了。 我已经下载这个hello-worlds-example不能建立弹簧数据图表你好,世界例如

我试着像使用命令通过行家描述执行示例:

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来运行它吗? – 2012-02-09 13:33:08

+0

是的,我可以查看下面的“编辑(与JDK1.6相同):” – hilbert 2012-02-09 14:20:46

+0

的设置Java7,Windows和Maven3正常工作,因为我刚刚得知。你可以尝试清理你的Maven仓库(应该在“Documents and Settngs/.m2/repository”)并重试? – 2012-02-09 14:29:09

回答

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的家:C:\用户\ lassewesth \ Apache的行家-3.0.4 Java版本:1.6.0_30,供应商:Sun微系统公司的Java 家:C:\ Program Files文件\的Java \ jdk1.6.0_30 \ jre的 默认区域:EN_GB,平台编码: 的Cp1252操作系统名称: “Windows 7的” 版本: “6.1”,拱: “AMD64”,家人: “窗口”

C:\用户\ lassewesth \ IdeaProjects \弹簧 - 数据 - 的Neo4j \弹簧数据的Neo4j-例子\他 LLO-世界> MVN --version 阿帕奇的Maven 3.0.4(r1232337; 2012-01-17 08:44:56 + 0000) Maven的家:C:\用户\ lassewesth \ Apache的行家-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 2012-02-10 08:46:48