mvn archetype:generate -B
-DgroupId=com.my-company.my-project
-DartifactId=my-project-domain
-DpackageName=com.company.project.domain
-DarchetypeGroupId=org.appfuse.archetypes
-DarchetypeArtifactId=appfuse-basic-struts
-DremoteRepositories=http://maven.rodcoffin.com/repo
-DarchetypeVersion=1.0.0
我输入了上面的命令来创建我的maven-hibernate项目。在此之后我走进我的项目文件夹,然后通过mvn clean install
创建maven项目错误
类型mvn eclipse:eclipse
其次,我在Eclipse IDE中,我点击import --> existing projects in to workspace
,但我无法打开是因为pom.xml中是不存在。
注:当我输入mvn clean install
我得到了以下错误
[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:1.0:compil
e (default) on project my-project-domain: The artifact org.springframework:sprin
g-aspects referenced in aspectj plugin as an aspect library, is not found the pr
oject dependencies -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionE
xception
编辑
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.1:compile (default-compile) on project my-project-domain: Compilation failure
[ERROR] \Users\Administrator\Documents\MYPROJECTS\my-project-domain\src\main
\java\com\my-company\my-project\App.java:[1,14] ';' expected
[ERROR] -> [Help 1]
即使它说,有一个失踪;
标志,当我检查了App.java
文件我没找不到任何语法错误。
我做到了这一点;但我仍然得到错误; ' org.aspectj aspectjrt 1.6.9 org.aspectj aspectjtools 1.6.9 ' –
Illep
是不正确的依赖,依赖项工件是'org.springframework:spring-aspects' t在我的回答中 –
我上面编辑了我的问题,可否请您查看一下 – Illep