先要在MyEclipse中对Maven进行设置:
下面我们在MyEclipse中创建一个Maven标准的Web工程:
New --> Web Project
添加Maven的标准目录:
右键单击项目名称-->New-->Source Folder
右键单击项目名称-->Build Path-->Configure Build Path...
到此为止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标准Web工程,并添加契约目录及更改jdk版本。同时提供了解决创建过程中可能出现的插件依赖问题的方法。














1024

被折叠的 条评论
为什么被折叠?



