eclipse for j2ee安装不了m2eclipse,是什么原因

M2Eclipse | M2Eclipse
provides tight
integration for
into the IDE with the
following features:
Launching Maven builds from within Eclipse
Dependency management for Eclipse build path based on Maven's pom.xml
Resolving Maven dependencies from the Eclipse workspace without installing to local Maven repository
Automatic downloading of the required dependencies from the remote Maven repositories
Wizards for creating new Maven projects, pom.xml and to enable Maven support on plain Java project
Quick search for dependencies in Maven remote repositories
Installation
You can install the lastest M2Eclipse release (1.7.0) by using the following update site from
within Eclipse:
There are also development builds available. Information on how to install those can be found .
Maven Development Hangout
Curious to know what's new with Maven and what might impact development with M2Eclipse? Join the weekly Maven Development Hangout with Takari to take part in the discussion.> 博客详情
关于m2eclipse插件在myeclipse9 及其以后版本的问题及终极解决办法!
关于maven-archetype-webapp 新建 maven webapp 无法直接在tomcat中部署的问题的解决方案
首先请注意,本文不配图 如果你看到本文请仔细看
首先说明 myeclipse自身自带有maven4Myeclipse 的maven插件,但是在myeclipse 9下通过
新建maven project 选择默认工作路径后 选择 maven-archetype-webapp 模式新建maven web工程会出现工程无法创建的情况或者创建工程不全的情况。
针对以上情况,对于以上情况 myeclipse9以后的用户可以保存好工作区然后
1、安装myeclipse 在安装时选择自定义 左下角复选框
2、把默认的maven support勾选掉然后进行安装(顺便说下这个地方不用的东西很多可以根据自己的选择去掉)
3、安装m2eclipse插件 官方网站:http://www.eclipse.org/m2e/download/
官方提供在线安装地址 ,但是不建议在线安装,离线咋myeclipse安装目录下myeclipse/dropins文件中采用离线安装方式更为好(具体安装方式)
4、关于版本选择:我在安装离线包的时候1.4版本最新release myeclipse9是可以识别
但是出现windows-preferrences-中没有maven选项 无法新建maven项目
最后我选择的是1.2版本进行安装,重启myeclipse一切OK 新建无错误
5、接下来出现新问题:maven-webapp工程要向tomcat中部署 这个时候servers 选择Tomcat 进行add deployment 的时候 可选工程中并无新建工程名称
然后就各种百度解决 结果都是各种转帖 ,最后一起总结得出:
myeclipse 在工程 右键项目工程 run as --& maven build.. 在goals框中输入eclipse:myeclipse
目的就是将此工程转化为Myeclipse 工程,然后重启 你就会高兴了 因为可以部署在tomcat了
有朋友eclipse下新建的maven-webapp工程出现同样问题无法部署是否可以mvn eclipse:eclipse解决 我测试后是不行juno4.2
怎么解决呢 ,
a、最省事 建议直接使用 springsource-tool-suite 开发套件 基于eclipse的(版本和eclipse同步
更新) 自带Maven插件 很不错
b、推荐文章 http://blog.csdn.net/lifetragedy/article/details/8110301
是可以解决问题的但是过于繁杂 不想用就别用了(修改过后记得重启eclipse,否则配置无法生效)
c、网上还有一种基于pom插件来build的方法 有兴趣的可以自己研究
&!-- lang: xml --&
&groupId&org.apache.maven.plugins&/groupId&
&artifactId&maven-eclipse-plugin&/artifactId&
&configuration&
&projectnatures&
&java.lang.String&com.genuitec.eclipse.j2eedt.core.webnature&/java.lang.String&
&java.lang.String&org.eclipse.jdt.core.javanature&/java.lang.String&
&/projectnatures&
&outputDirectory&src/main/webapp/WEB-INF/classes&/outputDirectory&
&/configuration&
最近又有朋友问我出现的问题(myeclipse9.1)8.X版本并未出现此问题
myeclipse 执行Build eclipse:myeclipse之后出现项目被转换为pom.xml依赖失效
网上有解决方案 是先右键maven
disabled maven nature
然后再Convert to maven project
但是会出现错误
关于错误:
Convert to maven project: An internal error occurred during: “Enabling Maven Dependency Management”. Unsupported IClasspathEntry kind=4
有个解决办法是
1、先工程是先右键maven
disabled maven nature
2、在工程目录cmd执行 mvn eclipse:clean
3、在myeclipse中刷新项目后再convert maven project
4、 此时项目还未正常显示的话
右键maven-》update project
人打赏支持
码字总数 821
支付宝支付
微信扫码支付
打赏金额: ¥
已支付成功
打赏金额: ¥

我要回帖

 

随机推荐