A Java web project created with Maven is not recognized as such by Eclipse

前端 未结 4 1849
说谎
说谎 2020-12-16 04:40

I created a web project with maven like this:

mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-web

4条回答
  •  再見小時候
    2020-12-16 05:12

    You can also use mvn eclipse:eclipse -Dwtpversion=2.0 to generate all WTP meta-data for the project without changing the POM.

    Of course, you'd have to change the WTP version if you are using an older version of Eclipse.

提交回复
热议问题