Java____MAVEN+M2E(坑)

——————————Maven好处、作用—————————

为什么要使用maven、以及使用maven的一些好处

http://jackycheng2007.iteye.com/blog/923791为什么使用maven1

http://jackycheng2007.iteye.com/blog/966144为什么使用maven2

#利用maven命令创建模板项目。

#利用pom配置依赖关系,还可以子项目继承父项目的pom.xml配置文件。

#多个子项目打包,形成完整项目

——————————M2E——————————

m2ec项目

m2eclipse插件是Eclipse的一款Maven插件。


The goal of the m2ec project is to provide a first-class Apache Maven support in the Eclipse IDE, making it easier to edit Maven's pom.xml, run a build from the IDE and much more. For Java developers, the very tight integration with JDT greatly simplifies the consumption of Java artifacts either being hosted on open source repositories such as Maven Central, or in your in-house Maven repository.

m2e is also a platform that let others provide better integration with additional Maven plugins (e.g. Android, web development, etc.), and facilitates the distribution of those extensions through the m2e marketplace.



安装m2eclipse插件的过程如下:

启动Eclipse,在菜单栏中选择Help,然后选择Install New Software…,可以看到一个Install对话框,点击Work with:字段边上的Add按钮,会得到一个新的Add Repository对话框,在Name字段中输入m2eLocation字段中输入http://download.eclipse.org/technology/m2e/releases,然后点击OKEclipse会下载m2eclipse安装站点上的资源信息。等待资源载入完成之后,



图片的状态为正在计算模块间的依赖关系。

如图显示了m2eclipse的核心模块Maven Integration for Eclipse (Required),选择“Maven Integration for Eclipse”后点击NextEclipse会自动计算模块间的依赖关系,然后给出一个将被安装的模块列表;确认无误后,继续点击Next;看到许可证信息,m2eclipse使用的开源许可证是Eclipse Public License v1.0,选择I accept the terms of the license agreements,然后点击FinishEclipse开始下载安装选择的模块。





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值