
为此,找不到任何现有的Maven或插件功能,因此我分叉了旧的dependencypath-maven-
plugin并将其更改为使用版本。现在,我可以插入这样的插件:
<build> . . <plugins> . . <plugin> <groupId>io.reformanda.semper</groupId> <artifactId>dependencyversion-maven-plugin</artifactId> <version>1.0.0</version> <executions> <execution> <id>set-all</id> <goals> <goal>set-version</goal> </goals> </execution> </executions> </plugin> </plugins></build>
并访问如下属性:
groupId:artifactId:type [:classifier] .version
IE浏览器
io.undertow:undertow-core:jar.version = 1.3.15.Final
查看自述文件以获取有关如何使用该插件的更多信息。在Maven
Central可用:
<dependency> <groupId>io.reformanda.semper</groupId> <artifactId>dependencyversion-maven-plugin</artifactId> <version>1.0.0</version></dependency>
…插件一直到…
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)