原parent继承方式

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.1.RELEASE</version>
<relativePath/>
</parent>

 依赖方式如下:

增加依赖dependencyManagement

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>1.5.1.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>

 

添加以下插件

<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>

<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>

 

相关文章:

  • 2018-03-13
  • 2022-02-10
  • 2021-10-31
  • 2021-09-05
  • 2021-11-06
  • 2021-11-08
  • 2022-02-25
  • 2022-01-14
猜你喜欢
  • 2018-07-17
  • 2021-08-26
  • 2019-10-21
  • 2021-09-15
  • 2021-06-13
相关资源
相似解决方案