问题描述
当 Maven 构建的父版本不是最新发布版本时,版本插件 display-parent-updates 的目标是很好地报告它,但我想以某种方式报告:
- 使用 WARNING 或 UNSTABLE 状态标记构建(在 jenkins 中具有彩色视觉效果)
- 将此添加到 jacoco 报告中(不知道这是否可行,会很棒)-> 在声纳中可见
- 也许可以使用执行器插件(不知道这是否有帮助)
有什么建议吗?
解决方法
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>`