zoukankan      html  css  js  c++  java
  • Maven的学习资料收集--(十)Myeclipse下创建Maven的Web项目

    先要在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
    【解决办法】:
  • 相关阅读:
    5.我国最高山峰是珠穆朗玛峰,8848米。现在我有一张足够大的纸,它的厚度是0.01米。请问,我折叠多少次,可以折成珠穆朗玛峰的高度。
    sqylog 50道练习题
    sqylog练习题 2018.7.10
    WPF---依赖属性(一)
    C#基础知识---is与as
    C#基础知识---装箱与拆箱
    C#基础知识---Lambda表达式
    C#基础知识---Linq操作XML文件
    C#基础知识---匿名方法使用
    C#基础知识---?为何物
  • 原文地址:https://www.cnblogs.com/gxbk629/p/3893572.html
Copyright © 2011-2022 走看看