IDEA配置maven教程maven下载地址
解压后如
G:\apache-maven-3.8.4-bin\apache-maven-3.8.4
配置环境变量
MAVEN_HOME G:\apache-maven-3.8.4-bin\apache-maven-3.8.4
Path %MAVEN_HOME%\bin
测试
IDEA配置maven
配置本地maven仓库
修改依赖下载地址
<mirrors>
<!-- mirror | Specifies a repository mirror site to use instead of a given repository.
The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror.
IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.| <mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for thisMirror.</name>
<url>my.repository/repo/path</url>
</mirror> -->
<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>0.0.0.0/</url>
<blocked>true</blocked>
</mirror>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>maven.aliyun/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>ui</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>/maven2/</url>
</mirror>
<mirror>
<id>jboss-public-repository-group</id>
<mirrorOf>central</mirrorOf>
<name>JBoss Public Repository Group</name>
<url>/nexus/content/groups/public</url> </mirror>
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>/maven2/</url>
</mirror>
<mirror>
<id>OSChina</id>
<name>OSChina Central</name>
<url>maven.oschina/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>nexus-osc-thirdparty</id>
<mirrorOf>thirdparty</mirrorOf>
<name>Nexus osc thirdparty</name>
<url>maven.oschina/content/repositories/thirdparty/</url> </mirror>
maven下载教程</mirrors>
修改IDEA的maven配置
配置完成后新建项⽬会出现maven
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论