mem*_*und 10 java spring maven versions-maven-plugin
我正在尝试使用Versions Maven Plugin和spring-boot
.
问题:在运行时versions:display-dependency-updates
,以autoecheck为最新的依赖关系,我不仅让我定义的更新pom.xml
,而且所有继承依赖从spring-boot-starter-parent
。
问题:如何防止继承而只显示自定义依赖项?
<project>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.0.RELEASE</version>
</parent>
<properties>
<cxf.version>3.0.0</cxf.version>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>
</dependencies>
</project>
Run Code Online (Sandbox Code Playgroud)
充其量,该插件会通知我类似于以下内容的更新:
spring-boot-starter-parent.....2.0.0 -> 2.0.3
cxf-rt-frontend-jaxws..........3.0.0 -> 3.2.6
Run Code Online (Sandbox Code Playgroud)
但是相反,我得到了从 spring 父级继承的所有依赖项的输出。
gjo*_*anv 11
您可以改用versions:display-property-updates
目标。这个目标只考虑作为属性给出的依赖版本,所以它不会显示传递依赖。您必须向 pom 添加更多版本属性,但这通常不是一件坏事。
该versions:display-dependency-updates
目标的文档不包含排除传递依赖项的标志。所以我认为不可能使用该目标。我也无法在issues.apache.org上找到任何相关的未决问题,因此它似乎不在路线图上。
归档时间: |
|
查看次数: |
900 次 |
最近记录: |