1. 程式人生 > >IDEA 創建java maven項目筆記

IDEA 創建java maven項目筆記

tab rep cat 默認 上一個 posit xsd ada 1.0

1.IDEA 關閉默認打開上一個項目 File | Settings | Appearance & Behavior | System Settings=> Reopen last project on startup

2.IDEA maven 安裝的地址 C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3\plugins\maven\lib

3.IDEA 導入 maven 項目 https://jingyan.baidu.com/article/b0b63dbf0c0ac04a49307078.html

4.Maven 阿裏雲鏡像配置 settings.xml

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <mirrors>
        <!--
阿裏雲倉庫 --> <mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/repositories/central/</url> </mirror> <!--
中央倉庫1 --> <mirror> <id>repo1</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://repo1.maven.org/maven2/</url> </mirror> <!-- 中央倉庫2 --> <mirror> <id>repo2</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://repo2.maven.org/maven2/</url> </mirror> </mirrors> </settings>

5.IDEA main 函數快捷鍵 輸入psvm 按tab鍵補全

IDEA 創建java maven項目筆記