MyEclipse中创建maven工程
2015-07-12 09:18
429 查看
转载:http://blog.sina.com.cn/s/blog_4f925fc30102epdv.html
先要在MyEclipse中对Maven进行设置:
到此Maven对MyEclipse的支持设置完毕。
下面我们在MyEclipse中创建一个Maven标准的Web工程:
New --> Web Project
到此为止一个Maven标准的Web工程创建成功了。
添加Maven的标准目录:
右键单击项目名称-->New-->Source Folder
到此为止添加Maven的契约目录完毕。
右键单击项目名称-->Build Path-->Configure Build Path...
右键单击项目名称-->Maven4MyEclipse-->Update Project Configuration...
到此为止MyEclipse中创建的Maven工程的jdk版本更改完毕。
--------------------------------------------------------------------------------------------------
笔者这边多啰嗦一句,在用MyEclipse创建Maven工程的时候可能会碰到下面的这个问题:
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:
maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 from http://repo1.maven.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.plugins:maven-compiler-plugin:jar:2.3.2 from/to central (http://
repo1.maven.org/maven2): No response received after 60000
【解决办法】:
--------------------------------------------------------------------------------------------------
笔者这边多啰嗦一句,在用MyEclipse创建Maven工程的时候可能会碰到下面的这个问题:
Failure to transfer org.apache.maven.plugins:maven-war-plugin:jar:2.1.1 from http://repo1.maven.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.plugins:
maven-war-plugin:jar:2.1.1 from/to central (http://repo1.maven.org/maven2): No response received after 60000
【解决办法】:
先要在MyEclipse中对Maven进行设置:
到此Maven对MyEclipse的支持设置完毕。
下面我们在MyEclipse中创建一个Maven标准的Web工程:
New --> Web Project
到此为止一个Maven标准的Web工程创建成功了。
添加Maven的标准目录:
右键单击项目名称-->New-->Source Folder
到此为止添加Maven的契约目录完毕。
右键单击项目名称-->Build Path-->Configure Build Path...
右键单击项目名称-->Maven4MyEclipse-->Update Project Configuration...
到此为止MyEclipse中创建的Maven工程的jdk版本更改完毕。
--------------------------------------------------------------------------------------------------
笔者这边多啰嗦一句,在用MyEclipse创建Maven工程的时候可能会碰到下面的这个问题:
CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:
maven-compiler-plugin:2.3.2 or one of its dependencies could not be resolved: Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 from http://repo1.maven.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.plugins:maven-compiler-plugin:jar:2.3.2 from/to central (http://
repo1.maven.org/maven2): No response received after 60000
【解决办法】:
--------------------------------------------------------------------------------------------------
笔者这边多啰嗦一句,在用MyEclipse创建Maven工程的时候可能会碰到下面的这个问题:
Failure to transfer org.apache.maven.plugins:maven-war-plugin:jar:2.1.1 from http://repo1.maven.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.plugins:
maven-war-plugin:jar:2.1.1 from/to central (http://repo1.maven.org/maven2): No response received after 60000
【解决办法】:
相关文章推荐
- Java-内部类
- Exception in thread "main" java.lang.NoClassDefFoundError:
- Java实用片段
- Java多线程编程中使用DateFormat类
- 安卓4.X环境搭建(MyEclipse)
- MyEclipse调整项目的顺序
- LeetCode java Longest Substring Without Repeating Characters
- java异常处理
- Java 向上造型详解
- MyEclipse移动开发教程:移动Web模拟器指南(一)
- ubuntu下eclipse连接mysql
- Spring学习使用标签来标记资源(@Component、@Repository、 @Service和@Controller)和用法(包括如何jsp正在使用)
- Eclipse中Junit相关介绍
- 打造最强Eclipse,搭建嵌入式开发环境(AVR)
- java基础 泛型
- Eclipse MAT 工具的使用(a)
- Java模式开发之责任链模式
- Java编程50题
- Scheme 4 Javaer-1. 基本结构
- iOS上SpringBoard九宫格的实现 (基于UICollectionView)