1、下载Idea安装,地址:https://www.jetbrains.com/idea/download/other.html
2、下载jdk,安装jdk,配置环境变量
新建JAVA_HOME 系统变量,设置jdk安装路径
再path变量中后面添加,%JAVA_HOME%\bin
检查jdk是否安装成功,执行Java -version
λ java -version java version "1.8.0_231" Java(TM) SE Runtime Environment (build 1.8.0_231-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)
3、配置 maven ,
下载maven , https://archive.apache.org/dist/maven/maven-3/3.6.2/binaries/
设置maven环境变量,再path后面添加C:\software\apache-maven-3.6.2\bin ,测试是否正常
λ mvn -v Apache Maven 3.8.5 (3599d3414f046de2324203b78ddcf9b5e4388aa0) Maven home: C:\software\apache-maven-3.8.5 Java version: 1.8.0_231, vendor: Oracle Corporation, runtime: C:\software\Java\jdk1.8.0_231\jre Default locale: zh_CN, platform encoding: GBK OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
新建一个本地仓库地址,C:\software\localRepository
设置conf/settings.xml配置文件,设置阿里云仓库和本地仓库
复制出来,设置本地仓库 <localRepository>C://software//localRepository</localRepository> 设置阿里云仓库,根据maven.aliyun.com帮助设置 <mirror> <id>aliyunmaven</id> <mirrorOf>*</mirrorOf> <name>阿里云公共仓库</name> <url>https://maven.aliyun.com/repository/public</url> </mirror>
设置ideal=》setting=maven仓库地址,
3、新建项目测试是否安装成功,
报错一、无法找到各种依赖包,maven配置的所有需要打勾,检查本地仓库是否有各种插件包
报错二、1) Error injecting constructor, java.lang.NoSuchMethodError: org.apache.maven.model.validation.DefaultModelValidator: method 'void <init>()' not found
maven 版本不对
https://archive.apache.org/dist/maven/maven-3/3.6.2/binaries/
报错三、无法识别springboot启动项,检查各个依赖是否配置对
最后启动成功
2、新建项目,把插件拉入到intellij中,ide-eval-resetter-2.1.13.zip,重启Ideal,无法重置日期需要注意ideal版本,不能太高
3、 检查插件是否安装成功
标签:Java,仓库,maven,Ideal,version,设置,mysql,apache From: https://www.cnblogs.com/topguntopgun/p/15866648.html