myeclipse 导入 import maven web project
来源:互联网 发布:阿里云行政处罚 编辑:程序博客网 时间:2024/05/01 17:22
用google才收到了这个。。
http://stackoverflow.com/questions/12197662/maven-java-web-project-not-recognised-when-importing-into-eclipse
就是导入后 是普通的java项目,然后在 project factes 勾上Dynamic Web Module 选3.0 apply 就行了
貌似要翻墙才能看 直接发把
Maven Java web project not recognised when importing into Eclipse
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.
4 Answers
As it turns out, we needed to enable project facets in the project properties. I'm not sure why this wasn't enabled by default like it was when it was imported into my Eclipse installation, but enabling the appropriate project facets fixed the issues we were having.
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
Try selecting the project in the Package Explorer and performing Maven --> Update Project Configuration
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.
- myeclipse 导入 import maven web project
- myeclipse web project转换为maven project
- intelliJ idea 导入eclipse/myeclipse web project
- myeclipse web project如何导入jar包
- MyEclipse下创建Maven Web Project
- Maven web project error "import com.sun.image.codec.jpeg.*"
- eclipse 中的Dynamic Web Project 项目导入到myeclipse中
- Myeclipse 创建Maven项目:Cannot detect Web Project version
- myeclipse maven project .classpath
- Maven项目导入问题:Cannot detect Web Project version 解决方法
- idea导入项目出现Unable to import maven project: See logs for details提示
- svn检出maven web项目后导入到myeclipse中
- MyEclipse 导入Maven项目
- maven项目导入myeclipse
- maven工程导入myeclipse
- maven build web project
- IDEA Unable to import maven project 解决方法
- Myeclipse导入web项目时错误:The import org.springframework.orm cannot be resolved
- Linux Filesystem: 关于vfsmount的理解
- 查找练习 hash——出现过的数字
- CentOS虚拟机根分区磁盘扩容纪实
- Web应用测试监控执行时间 -- JavaSimon
- Extremal Region(极值区域)文本定位与识别法-学习笔记(一)
- myeclipse 导入 import maven web project
- 使用AlertDialog.Builder创建对话框
- 排序练习——找出前m大的数字
- 12100 - Printer Queue
- hdu 2498 Digits
- 计算线程index
- DSAPI多功能组件编程应用-网络相关(上)
- MonkeyImage
- 2015,新的旅程