我是maven的新手,也是spring-data-neo4j的新手。我已经下载了这个helloworlds示例
我尝试使用以下命令来执行通过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:UsersmeDesktopSpringSource-spring-data-graph-exampleshello-worldstarget
[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:Usersme>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 FilesJavajdk1.7.0_02jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
谢谢你的帮助。
EDIT(与jdk1.6相同):
C:Usersme>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 FilesJavajdk1.6.0_30jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
和:
C:UsersmeDesktopSpringSource-spring-data-graph-exampleshello-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:UsersmeDesktopSpringSource-spring-data-graph-exampleshello-worldstarget
[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
我可以确认它适用于Windows 7、Java 6/7和Maven 3:
C:UserslassewesthIdeaProjectsspring-data-neo4jspring-data-neo4j-exampleshello-worlds>mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
Maven home: C:Userslassewesthapache-maven-3.0.4
Java version: 1.6.0_30, vendor: Sun Microsystems Inc.
Java home: C:Program FilesJavajdk1.6.0_30jre
Default locale: en_GB, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
C:UserslassewesthIdeaProjectsspring-data-neo4jspring-data-neo4j-exampleshe
llo-worlds>mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
Maven home: C:Userslassewesthapache-maven-3.0.4
Java version: 1.7.0_02, vendor: Oracle Corporation
Java home: C:Program FilesJavajdk1.7.0_02jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"