我正在使用mvn versions:display-dependency-updates versions:display-plugin-updates
目标来检查依赖项或插件更新。
我的 maven 项目是一个多模块项目,如下所示:
moduleA
|- moduleB1
| |- moduleC
|- moduleB2
|- build-config/rules.xml
由于有一些不需要的更新,比如我不想要的测试版,我制作了一个过滤器(有效)。我这样使用它:
<profile>
<id>maven-version-plugin-1</id>
<activation>
<property>
<name>version.rules.uri</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<configuration>
<rulesUri>${version.rules.uri}</rulesUri>
</configuration>
</plugin>
</plugins>
</build>
</profile>
我被迫使用配置文件和属性version.rules.uri
,因为它必须引用现有文件(默认情况下它指向./build-config/rules.xml
,但它也在我settings.xml
的绝对路径中)。
我想通过以下方式避免这种情况:
- 发布独立
build-config
项目 - 使用一些 uri 引用这个项目:
m2:myGroupId:myArtifactId:version:scope:jar/rules.xml
现在的问题是:是否有允许读取存储库条目(例如 jar )的 Maven Wagon 插件(由 maven 版本插件使用)的实现?