Maven的学习资料收集--(十)Myeclipse下创建Maven的Web项目
2014-08-06 01:10
615 查看
先要在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
【解决办法】:
到此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
【解决办法】:
相关文章推荐
- Maven的学习资料收集--(十)Myeclipse下创建Maven的Web项目
- Maven的学习资料收集--(四)使用Maven构建Web项目-测试
- Maven的学习资料收集--(三)使用Maven构建Web项目
- Maven创建java项目和web项目(maven学习资料)
- Maven的学习资料收集--(四)使用Maven构建Web项目-测试
- Maven的学习资料收集--(三)使用Maven构建Web项目
- Myeclipse2014 用Maven创建第一个web项目(1)---helloworld
- myeclipse 创建maven项目 creating maven-archetype-webapp has encountered a problem
- myeclipse maven 创建 web项目
- Maven学习 (三) 使用m2eclipse创建web项目
- 不错的maven学习笔记,收藏——Maven学习 (三) 使用m2eclipse创建web项目
- Maven的学习资料收集--(九) 构建SSH项目以及专栏maven
- Maven的学习资料收集--(九) 构建SSH项目以及专栏maven
- Maven学习 (三) 使用m2eclipse创建web项目
- Maven学习 (三) 使用m2eclipse创建web项目
- Maven 学习(2)-创建web项目
- Maven的学习资料收集--(七) 构建Spring项目
- Maven学习 (三) 使用m2eclipse创建web项目
- Maven的学习资料收集--(六 构建Hibernate项目
- maven 学习笔记(二)--在Myeclipse中创建maven项目