依赖:属性哪里去了?
旧版本的 maven-dependency-plugin
包括dependency:properties
目标。新版本好像没有包含这个功能。它是否被移动到另一个插件,或者只是被弃用而没有机会访问其功能(即每个依赖项都有一个属性,允许作为示例激活基于依赖项的配置文件)?
Old versions of maven-dependency-plugin
include a dependency:properties
goal. New versions don't seem to include it. Has it been moved to another plugin, or is it simply deprecated with no chance to access its features (namely having a property for each dependency, allowing as an example activation of profile based upon dependencies) ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从依赖插件的 2.2 版(最新版本)开始,properties-goal 就可用了。 Maven 3 默认使用 2.1,因此您必须在构建部分的 pom 中手动指定依赖插件的版本。
The properties-goal is available since version 2.2 (the latest version) of the dependency plugin. Maven 3 uses 2.1 as default, so you have to specify the version of the dependency plugin manually in your pom in the build section.