Ill*_*lep 3 java hibernate struts2 maven
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
Run Code Online (Sandbox Code Playgroud)
我输入了上面的命令来创建我的 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
Run Code Online (Sandbox Code Playgroud)
编辑
[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]
Run Code Online (Sandbox Code Playgroud)
即使它说有一个丢失的;标志,当我检查App.java文件时我没有发现任何语法错误。
| 归档时间: |
|
| 查看次数: |
2442 次 |
| 最近记录: |