idea maven配置

  1. 修改maven的路径(使用本地的Maven),以及修改settings文件的位置和本地仓库的位置。

-DarchetypeCatalog=internal

  1. 配置阿里云镜像(在setting.xml文件中配置)

<!-- 配置阿里云 -->

<mirror>

<id>aliyunmaven</id>

<mirrorOf>*</mirrorOf>

<name>阿里云公共仓库</name>

<url>https://maven.aliyun.com/repository/public\</url>

</mirror>

  1. 配置默认JDK版本(在setting.xml文件中配置)

<profile>

<id>jdk-1.8</id>

<activation>

<activeByDefault>true</activeByDefault>

<jdk>1.8</jdk>

</activation>

<properties>

<maven.compiler.source>1.8</maven.compiler.source>

<maven.compiler.target>1.8</maven.compiler.target>

<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>

</properties>

</profile>

相关推荐
.鸣9 小时前
set和map
java·学习
ha_lydms9 小时前
5、Spark函数_s/t
java·大数据·python·spark·数据处理·maxcompute·spark 函数
黄河滴滴10 小时前
java系统变卡变慢的原因是什么?从oom的角度分析
java·开发语言
侠客行031710 小时前
Mybatis二级缓存实现详解
java·mybatis·源码阅读
老华带你飞10 小时前
农产品销售管理|基于java + vue农产品销售管理系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot·后端
Edward1111111111 小时前
tomcat_servlet
java·servlet·tomcat
短剑重铸之日11 小时前
SpringBoot声明式事务的源码解析
java·后端·spring·springboot
李白的粉11 小时前
基于springboot的银行客户管理系统(全套)
java·spring boot·毕业设计·课程设计·源代码·银行客户管理系统
JIngJaneIL11 小时前
基于springboot + vue房屋租赁管理系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot·后端
努力的小南11 小时前
Java字节码文件常量池索引两个问题
java·常量池·字节码文件·黑马jvm字节码文件常量池索引