我 idea 2018 新建sring boot 项目maven上 都不能下载
我 idea 2018 新建sring boot 项目maven上 都不能下载,都漂红,我用阿里镜像也没得,新建项目的Pom是这样的
4.0.0
cn.stephen.study
demoproject
0.0.1-SNAPSHOT
demoproject
Demo project for Spring Boot
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.4</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
org.springframework.boot
spring-boot-dependencies
${spring-boot.version}
pom
import
org.apache.maven.plugins
maven-compiler-plugin
3.8.1
<source />1.8
1.8
UTF-8
org.springframework.boot
spring-boot-maven-plugin
2.3.7.RELEASE
cn.stephen.study.demoproject.DemoprojectApplication
repackage
repackage
运行结果及报错内容
漂红不能下载
我的解答思路和尝试过的方法
使用了阿里镜像都没得,点重新下都没得
我想要达到的结果
新建项目能自动下载