zoukankan      html  css  js  c++  java
  • maven 简易入门笔记

    教程:http://www.yiibai.com/maven/

        http://maven.apache.org/

    第一步:下载安装maven。

              配置环境变量。

    第二步: 设置mirror 中央存储仓库的地址

      <mirrors>
        <!-- mirror
         | Specifies a repository mirror site to use instead of a given repository. The repository that
         | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
         | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
         |  -->
        <mirror>  
            <id>CN</id>  
            <name>OSChina Central</name>
            <url>http://maven.oschina.net/content/groups/public/</url>  
            <mirrorOf>central</mirrorOf>  
        </mirror>  
        <mirror>  
            <id>ui</id>  
            <mirrorOf>central</mirrorOf>  
            <name>Human Readable Name for this Mirror.</name>  
            <url>http://uk.maven.org/maven2/</url>  
        </mirror>
        <mirror>
            <id>jboss-public-repository-group</id>
            <mirrorOf>central</mirrorOf>
            <name>JBoss Public Repository Group</name>
            <url>http://repository.jboss.org/nexus/content/groups/public</url>
        </mirror> 
        <mirror>
            <id>ibiblio</id>
            <mirrorOf>central</mirrorOf>
            <name>Human Readable Name for this Mirror.</name>
            <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
        </mirror>
    </mirrors>
    mirror 配置,速度快

    第三步:用命令行或者在eclipse中使用maven创建项目。

    第四步:使用Maven创建Web应用程序项目:   http://www.yiibai.com/maven/create-a-web-application-project-with-maven.html

    Maven学习总结(三)——使用Maven构建项目

    mvn archetype:generate -DarchetypeCatalog=internal


  • 相关阅读:
    Flask基础01
    Django logging配置
    JSONP和CORS跨域
    Scrapy框架
    请求库之urllib,requests及工具selenium
    MongoDB安装
    Django 视图层
    Django REST framework 2
    WebSocket
    爬虫性能相关
  • 原文地址:https://www.cnblogs.com/netact/p/5339287.html
Copyright © 2011-2022 走看看