Read fast installation

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 Verification: MVN -vCopy the code

The repository JAR is installed manually

An example is the Oracle JDBC driver

MVN install: install-file-dgroupid =com.oracle "-dartifactid =ojdbc14" "-dversion =10.2.0.2.0" "-dpackaging =jar" "-Dfile=D:\ojdbc14.jar"Copy the code

Ali Cloud Mirror

Setting. XML file setting

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

Project POM.xml file setup

<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>
Copy the code

Update the Maven project version in batches

MVN versions: set ‐ DnewVersion = 1.0.1 ‐ SNAPSHOTCopy the code