使用myeclipse创建maven项目
来源:互联网 发布:mysql默认事务隔离级别 编辑:程序博客网 时间:2024/06/06 03:18
方法/步骤
因为教程使用的maven是自己下载配置的,并没有使用myeclipse自带的(高版本的myeclipse自带maven)。所以首先你要安装了maven。maven的下载安装可参考下面的经验。
打开myeclipse(本经验中使用的是myeclipse2014),Window-->preferences。
找到myeclipse-->maven4myeclipse,如果你要下载源码和帮助文档就勾选上图中那两个框。
在maven4myeclipse下找到installations,把自己安装的maven添加进来。如图:
找到user settings。将user settings设置为maven项目下的cfon/settings.xml,确定。
新建一个web工程,勾选上add maven support,java version要在1.7及以上.
然后一路next,到项目结构那儿,选择maven的项目结构。
如果幸运的话,新建的项目没有错。如果提示错误:
Failure to transfer org.apache.maven:maven-artifact:pom:2.0.6 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-artifact:pom:2.0.6 from/to central (http://repo.maven.apache.org/maven2): No connector available to access repository central (http://repo.maven.apache.org/maven2) of type default using the available factories pom.xml /hello line 1 Maven Configuration Problem
那样的话,打开Window-->preferences-->myeclipse-->maven4myeclipse--->user settings把local repository里面的地址复制。
如果你的myeclipse没有的话,就找到:
c:\users\{你的电脑账号}\.m2\repository (一般在这个文件夹里)。
比如我的:c:\users\long\.m2\repository
找打repository文件及后,在里面搜索 maven*.lastupdated。把搜出来的文件都删了。
重启myeclipse,右键项目--->maven4myeclipse--->update project...
勾选Force Update of Snapshots/Releases,然后ok退出,如果还是错误,不要着急,先等一会。如果过了一会还是有错,那就问度娘吧。如果解决了,记得投我一票哦。
- 使用myeclipse创建maven项目
- 使用Myeclipse创建Maven项目
- 使用Myeclipse创建Maven项目
- 使用Myeclipse创建第一个Maven项目
- MyEclipse下使用maven创建web项目
- MyEclipse中使用Maven创建web项目
- 使用myeclipse创建maven web项目
- myeclipse创建maven项目
- myEclipse创建maven项目
- MyEclipse创建maven项目
- Myeclipse创建maven项目
- myeclipse创建maven项目
- myeclipse创建maven项目
- 《Maven实战》笔记三:使用MyEclipse创建Maven项目
- Maven学习一:使用Myeclipse创建Maven项目
- myeclipse maven 创建 web项目
- myeclipse创建maven android项目
- 在myeclipse 创建maven项目
- Android 打码走江湖 之 天下第一帮 Fragment的前世今生(上)
- Codeforces828 C. String Reconstruction
- ButterKnife中如何绑定头View和脚View
- CSS颜色 尺寸 字体属性 文本属性
- 阿里搜索业务容器化中的一些经验和思考
- 使用myeclipse创建maven项目
- JVM性能调优
- ultraedit 使用
- Centos7 设置时区
- SQL 语句:基础
- 数据结构-AVL二叉平衡树
- C 宏的陷阱
- kettle 资源库连接中断解决办法
- NYOJ 90 整数划分(递推||dp)