【发布时间】:2014-11-25 01:46:38
【问题描述】:
我正在使用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
现在的问题是:是否有 Maven Wagon 插件(由 maven 版本插件使用)的实现,允许读取存储库条目,例如 jar ?
【问题讨论】:
标签: java maven versions-maven-plugin maven-wagon-plugin