依赖:属性哪里去了?

发布于 2024-11-06 22:34:54 字数 358 浏览 7 评论 0原文

旧版本的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遗失的美好 2024-11-13 22:34:54

从依赖插件的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文