zoukankan      html  css  js  c++  java
  • 创建maven项目前的准备工作

    第二步:

    在maven中的settings.xml文件中指定

    2.1 本地仓库:计算机中一个文件夹,自己定义是哪个文件夹.

      2.1 示例语法 <localRepository>D:/maven/r2/myrepository</localRepository>

    2.2 中央仓库:网上地址https://repo1.maven.org/maven2/

           2.2.1 中央仓库下载速度慢--> 配置国内镜像 

           2.2.1 修改镜像地址(不使用nexus时配置)

           2.2.1 阿里云镜像

            <mirror>

                               <id>alimaven</id>

                               <name>aliyun maven</name>

                               <url>http://maven.aliyun.com/nexus/content/groups/public/</url>

                               <mirrorOf>central</mirrorOf>

                      </mirror>

    2.3 保证JDK版本和开发环境一致,如果不配置1.4或1.5

      2.3 修改JDK版本(示例语法)

          <profile>

                               <id>jdk-1.7</id>

                               <activation>

                                        <activeByDefault>true</activeByDefault>

                                        <jdk>1.7</jdk>

                               </activation>

                               <properties>

                                        <maven.compiler.source>1.7</maven.compiler.source>

                                        <maven.compiler.target>1.7</maven.compiler.target>

                                        <maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>

                               </properties>

                      </profile>

  • 相关阅读:
    Python的17种骚操作
    Python使用pip下载慢的原因
    Mysql数据库的安装
    Python中遇到的难解的提示:
    Linux使用SecureCRT远程终端工具的使用
    Linux下IP命令使用详解
    (未解决)jmeter报错之“请在微信客户端打开链接”
    Python学习笔记系列——九九乘法表&猜大小
    《Mysql必知必会》笔记
    (未解决)记录一次登录&jmeter,留下的一地鸡毛
  • 原文地址:https://www.cnblogs.com/hwgok/p/10054005.html
Copyright © 2011-2022 走看看