mac 安裝JDKsegmentfault
配置settings.xml下載源:maven
<!-- 阿里雲倉 --> <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> -->
直接點擊 next 進行下一步,不要勾選 Create from archetype
選項。this
Name
: 項目名稱。Location
: 項目存儲路徑。GroupId
: 項目組,通常爲公司域名的反寫。ArtifactId
: 項目組內惟一的ID,用做項目名稱。Version
: 版本號。阿里雲
生成項目結構以下:url