标签:.com mpi default repos https settings pos tin repo
1)由于maven缺少对应包
修改maven 文件夹中的settings.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>
<profile>
<repositories>
<repository>
<id>spring-releases</id>
<url>https://repo.spring.io/libs-release</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spring-releases</id>
<url>https://repo.spring.io/libs-release</url>
</pluginRepository>
</pluginRepositories>
</profile>
2.在命令行运行 mvn spring-boot:run
时,确认在你项目所在的,并包含了该pom.xml的文件夹下。
标签:.com mpi default repos https settings pos tin repo
原文地址:http://www.cnblogs.com/yangxuming/p/6747577.html