【问题标题】:How to generate a Maven dependencies.properties file?如何生成 Maven dependencies.properties 文件?
【发布时间】:2011-09-18 18:14:40
【问题描述】:

一点上下文:我正在使用Pax Exam 编写一个集成测试,我需要尽可能多地收集有关当前 Maven 项目的信息。这是为了在加载依赖包和工作项目本身时减少样板代码。 例如,Pax Exam 允许通过在

中提供 groupId 和 artifactId 来收集 Maven 依赖项的版本

org.ops4j.pax.exam.MavenUtils.getArtifactVersion(String,String)

方法。为此,要查找 META-INF/maven/dependencies.properties 文件。文档说这样的文件是由 Maven 插件生成的,但我真的找不到。

有没有办法生成这样的dependencies.properties文件?

【问题讨论】:

    标签: maven dependencies


    【解决方案1】:

    看起来像这样depends-maven-plugin 做到了。

    【讨论】:

    • 确实如此,先生!太依赖谷歌而不是官方文档让我感到羞耻。
    猜你喜欢
    • 2011-10-05
    • 1970-01-01
    • 1970-01-01
    • 2016-02-19
    • 2011-07-11
    • 2015-03-04
    • 2013-10-19
    • 1970-01-01
    • 2017-11-02
    相关资源
    最近更新 更多