就是导入后 是普通的java项目,然后在 project factes 勾上Dynamic Web Module 选3.0 apply 就行了
貌似要FQ才能看 直接发把
Maven Java web project not recognised when importing into Eclipse
up vote1down votefavorite
A colleague is trying to import a Java web project project into his Eclipse workspace. He's installed the m2e plugin and it recognises the "parent" project and the 3 sub projects it has (which are also Maven projects). However when the projects are imported, Eclipse doesn't seem to recognise them as Java projects (it doesn't show the usual "Java Resources" and "Deployment Descriptor"). The only two things that appear in the Project Explorer are shown below:
I've imported the same project using my version of Eclipse and it recognises that the project is a Java web project without any issues. Is there something he needs to do/install to get it to work? He has the Eclipse WTP as well as the m2e plugin, so I can't see any different between his Eclipse installation and mine.
eclipse java-ee maven m2eclipse
shareimprove this question
asked Aug 30 '12 at 13:11
up vote1down vote
You need to install m2eclipse-wtp 0.15.x (fromhttp://download.jboss.org/jbosstools/updates/m2eclipse-wtp/). It contains the necessary configurators to properly set the required project facets of Java EE projects, according to your pom.xml configuration.
Please note that m2eclipse-wtp is moving to the Eclipse foundation and is superceded by m2e-wtp. m2e-wtp 0.16.0 will be released on sept 28th 2012. Until then you can try playing with the latestrelease candidate
shareimprove this answer
answered Sep 14 '12 at 15:41
Fred Bricon 2,216719
add a comment
up vote0down vote
Try selecting the project in the Package Explorer and performing Maven --> Update Project Configuration
shareimprove this answer
answered Aug 30 '12 at 13:20
Chris Gerken 9,32651535
add a comment
up vote0down vote
I experienced something like this once when I was using the "project explorer" view when I thought I was actually using the "package explorer" view. These two views will display your project differently.
shareimprove this answer
answered Aug 30 '12 at 18:47
herrtim 1,031516
版权声明:本文为博主原创文章,未经博主允许不得转载。
posted on 2015-02-07 14:24 france 阅读(...) 评论(...) 编辑 收藏