IDEA 配置maven
2017-09-20 16:42
162 查看
编写Maven的settings.xml文件内容如下 引入阿里镜像和maven在中国的中央仓库镜像
<?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"> <pluginGroups /> <proxies /> <servers /> <localRepository>/usr/local/pero</localRepository> <mirrors> <mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/repositories/central/</url> </mirror> <mirror> <id>alimaven</id> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>central</id> <name>Maven Repository Switchboard</name> <url>http://repo1.maven.org/maven2/</url> <mirrorOf>central</mirrorOf> </mirror> <mirror> <id>repo2</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://repo2.maven.org/maven2/</url> </mirror> <mirror> <id>ibiblio</id> <mirrorOf>central</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url> </mirror> <mirror> <id>jboss-public-repository-group</id> <mirrorOf>central</mirrorOf> <name>JBoss Public Repository Group</name> <url>http://repository.jboss.org/nexus/content/groups/public</url> </mirror> <mirror> <id>google-maven-central</id> <name>Google Maven Central</name> <url>https://maven-central.storage.googleapis.com </url> <mirrorOf>central</mirrorOf> </mirror> <!-- 中央仓库在中国的镜像 --> <mirror> <id>maven.net.cn</id> <name>oneof the central mirrors in china</name> <url>http://maven.net.cn/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror> </mirrors> </settings>
启动idea 点击下方的configure 选择setting
进入到setting界面,查找maven进行maven设置
选择mave的home目录和settings的目录
设置maven option 的系统变量
配置 maven的软件源
相关文章推荐
- 新版idea 运行maven web项目 配置
- Maven, IntellJ Idea 配置注意点
- SpringMVC框架入门配置 IDEA下搭建Maven项目
- 关于idea maven工程创建struts2入门配置及案例
- Spring Boot配置外置Tomcat和JSP视图教程(IntelliJ IDEA + Maven)
- IDEA的配置JDK,Tomcat,Maven
- IDEA配置maven(配置阿里云中央仓库)
- Maven学习记录(一)--IDEA下环境配置
- 常用工具说明--mongodb、mysql解压版、IDEA配置maven
- IDEA17用Maven创建SpringMVC+Spring+Mybatis工程及整合配置与实例
- IDEA搭建SpringMVC并用maven配置的小例子(非常详细)
- idea配置maven后提示 commond not found
- idea集成项目管理工具 --- Maven 并且【配置tomcat】
- maven由IDEA插件转换为自己的jar包配置出现cannot reconnect
- 新版idea 运行maven web项目 配置
- idea怎么配置maven仓库
- IDEA上做Maven项目开发并配置TOMCAT(windows版)
- idea maven spring+springmvc+sql server+mybatis项目配置
- IDEA社区版中maven-tomcat插件配置JNDI数据源
- SpringMVC框架入门配置 IDEA下搭建Maven项目