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