zoukankan      html  css  js  c++  java
  • Maven工作记录

    快读安装

    wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.6.0/binaries/apache-maven-3.6.0-bin.tar.gz
    vi /etc/profile
    export M2_HOME=/usr/local/maven36
    export PATH=$PATH:$M2_HOME/bin
    source /etc/profile
    验证 : mvn -v
    

    仓库jar手动安装

    oracle jdbc 驱动为例

    mvn install:install-file -DgroupId=com.oracle "-DartifactId=ojdbc14" "-Dversion=10.2.0.2.0" "-Dpackaging=jar" "-Dfile=D:ojdbc14.jar"
    

    阿里云镜像

    setting.xml文件设置

    <mirrors>
        <mirror>
            <id>alimaven</id>
            <name>aliyun maven</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
            <mirrorOf>central</mirrorOf>
        </mirror>
    </mirrors>
    

    工程pom.xml文件设置

    <repositories>
        <repository>
            <id>alimaven</id>
            <name>aliyun maven</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>
    

    批量更新maven工程版本号

    mvn versions:set ‐DnewVersion=1.0.1‐SNAPSHOT
    
  • 相关阅读:
    bower一个强大的前端依赖包管理工具
    Nodejs中的this
    探讨Nodejs中的作用域问题。
    初了解NodeJS
    小心情。
    关于数组方面的算法分析
    JS算法总结
    JS Event事件
    封装Js事件代理方法
    SqlServer 操作 JSON
  • 原文地址:https://www.cnblogs.com/fubinhnust/p/14249158.html
Copyright © 2011-2022 走看看