我有以下结构:的Maven无法获得访问父属性
parent-pom (pom)
|
- base-component (with <parent> parent-pom </parent>)(pom)
|
-- child-component (with <parent> base-component </parent>)(jar)
-- some-folder/another-child (with <parent> base-component </parent>)(jar)
在父POM我有一个像
<properties>
<product-version>3.7.8</product-version>
</properties>
当我建立child-component
和使用有${product-version}
与版本的属性 - 它的构建没有错误。 但是,当我试图建立another-child
(与子组件作为依赖) - maven无法读取${product-version}
或抛出错误Could not find artifact base-component
即使我设置<relativePath>
。
我认为问题是基础组件和另一个孩子之间的文件夹,但我无法将其移动到水平位置。
任何想法?
“另一个孩子”是否使用正确的家长? – wemu 2014-12-04 16:56:26
@wemu我认为是,基础组件中的“另一个孩子”是。 –
2014-12-04 17:01:46