【发布时间】:2015-09-29 07:34:31
【问题描述】:
我想将项目 X pom 文件中的属性导入到我的项目 Y pom 中,例如库版本。我不想让项目 X 成为我项目的父项目。
我已尝试将项目 Xs pom 作为导入包含在依赖项管理部分中。
<dependency>
<groupId>abc</groupId>
<artifactId>def</artifactId>
<version>1.1</version>
<type>pom</type>
<scope>import</scope>
</dependency>
请指教。 谢谢。
【问题讨论】:
-
你必须像这样为你的项目定义一个父级:
aa prj-parent 1.5.4
标签: maven dependency-properties