[英]creating maven project error
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 eclipse:eclipse
然后鍵入mvn clean install
之后,我在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
文件時,我沒有發現任何語法錯誤。
在aspectj插件中作為方面庫引用的工件
org.springframework:spring-aspects
找不到項目依賴項
您需要為此插件工件添加依賴項
嘗試刪除打包路徑中的連字符。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.