当 Maven 构建的父版本不是最新发布版本时,版本插件 display-parent-updates 的目标是很好地报告它,但我想以某种方式报告:
有什么建议吗?
答案 0 :(得分:0)
Image(dateValues["thithi_ico"] as! String)
.resizable()
.frame(maxWidth: 50, maxHeight:50 )
.border(Color.gray, width:0.5)
.position(x:-93, y: 150)
使用带有自定义规则的强制插件
公共类 MyCustomRule 实现 EnforcerRule2 {
I achieved this in 2 steps :
1. Use of the following plugin
`<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<executions>
<execution>
<id>display-dkv-boot-starter-parent-updates</id>
<phase>initialize</phase>
<goals>
<goal>display-parent-updates</goal>
</goals>
<configuration>
<allowSnapshots>true</allowSnapshots>
</configuration>
</execution>
</executions>
</plugin>`