栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

找不到Spring Boot Starter Parent 2.0.0依赖项

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

找不到Spring Boot Starter Parent 2.0.0依赖项

将Spring Plugin Release Repo添加到中

Plugin-Repositories
。这样就可以找到了
spring-boot-maven-plugin-2.0.0.M1.jar
。我已经看到它包含在该回购中

将以下各行添加到

<project>
标记下,如下所示:

<project><!------ others lines -->    <pluginRepositories>        <pluginRepository> <id>repository.spring.release</id> <name>Spring GA Repository</name> <url>https://repo.spring.io/plugins-release/</url>        </pluginRepository>    </pluginRepositories></project>

编辑

由于我没有

com.test.testplugin
,我已经检查了以下内容。请删除
<dependencyManagement>
和放在
<dependencies>
下面
<project>
。最终
pom.xml
看起来像:

<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0"         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">    <modelVersion>4.0.0</modelVersion>    <groupId>com.test.testapplication</groupId>    <artifactId>application</artifactId>    <version>1.0-SNAPSHOT</version>    <packaging>jar</packaging>    <parent>        <groupId>org.springframework.boot</groupId>        <artifactId>spring-boot-starter-parent</artifactId>        <version>2.0.0.M1</version>    </parent>    <pluginRepositories>        <pluginRepository> <id>repository.spring.release</id> <name>Spring GA Repository</name> <url>https://repo.spring.io/plugins-release/</url>        </pluginRepository>    </pluginRepositories>    <repositories>        <repository> <id>repository.spring.milestone</id> <name>Spring Milestone Repository</name> <url>https://repo.spring.io/milestone</url>        </repository>    </repositories>    <dependencies>        <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId>        </dependency>        <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId>        </dependency>        <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId>        </dependency>        <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId>        </dependency>    </dependencies>    <build>        <plugins> <plugin>     <groupId>org.springframework.boot</groupId>     <artifactId>spring-boot-maven-plugin</artifactId> </plugin>        </plugins>    </build>    <properties>        <maven.compiler.source>1.8</maven.compiler.source>        <maven.compiler.target>1.8</maven.compiler.target>    </properties></project>


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/615564.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号