开发者

Maven2 + Eclipse 3.5 web Project Errors

开发者 https://www.devze.com 2023-03-10 08:19 出处:网络
I\'m using Maven 2.2 to build Simple Web Project and Integrate it to Eclipse: I\'m doing it the following way:

I'm using Maven 2.2 to build Simple Web Project and Integrate it to Eclipse:

I'm doing it the following way:

1) Going to my workspace directory using command line:

2) Create Project using the following command:

mvn archetype:generate -DgroupId=com.vanilla.test -DartifactId=myTest -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false

3) Convert this project to Eclipse project:

cd myTest
 mvn eclipse:eclipse -Dwtpversio开发者_JAVA技巧n=R7

When I import then project to Eclispe I have red 'x' on the project name. Although, I tried to Clean project, to refresh it or run index.jsp, I can't fix it. No any other problems with the project.

Why does it happen?


Perhaps you should configure the workspace before converting to Eclipse project.

mvn eclipse:configure-workspace -Declipse.workspace=<path-of-your-workspace>
0

精彩评论

暂无评论...
验证码 换一张
取 消