欢迎来到天天文库
浏览记录
ID:57630651
大小:564.00 KB
页数:12页
时间:2020-08-29
《在MyEclipse中使用maven构建web项目.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、先要在MyEclipse中对Maven进行设置:到此Maven对MyEclipse的支持设置完毕。下面我们在MyEclipse中创建一个Maven标准的Web工程:New-->WebProject到此为止一个Maven标准的Web工程创建成功了。添加Maven的标准目录:右键单击项目名称-->New-->SourceFolder到此为止添加Maven的契约目录完毕。右键单击项目名称-->BuildPath-->ConfigureBuildPath...右键单击项目名称-->Maven4MyEclipse-->UpdateProjectConfiguration...到此为
2、止MyEclipse中创建的Maven工程的jdk版本更改完毕。--------------------------------------------------------------------------------------------------笔者这边多啰嗦一句,在用MyEclipse创建Maven工程的时候可能会碰到下面的这个问题:CoreException:Couldnotcalculatebuildplan:Pluginorg.apache.maven.plugins:maven-compiler-plugin:2.3.2 oroneofitsdep
3、endenciescouldnotberesolved:Failuretotransferorg.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2 fromrepo1.maven.org/maven2wascachedinthelocalrepository,resolutionwillnotbe reattempteduntiltheupdateintervalofcentralhaselapsedorupdatesareforced.Originalerror:Couldnot transferartifac
4、torg.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2from/tocentral( repo1.maven.org/maven2):Noresponsereceivedafter60000【解决办法】:--------------------------------------------------------------------------------------------------笔者这边多啰嗦一句,在用MyEclipse创建Maven工程的时候可能会碰到下面的这个问题:Failuretotran
5、sferorg.apache.maven.plugins:maven-war-plugin:jar:2.1.1 fromrepo1.maven.org/maven2was cachedinthelocalrepository,resolutionwillnotbereattempteduntiltheupdateintervalofcentralhas elapsedorupdatesareforced.Originalerror:Couldnottransferartifactorg.apache.maven.plugins:maven-war-plugin:jar
6、:2.1.1 from/tocentral(repo1.maven.org/maven2):Noresponsereceivedafter60000【解决办法】:
此文档下载收益归作者所有