我正在使用 maven 的依赖管理将 POM 导入到我的项目 Y 中,如下所示:
<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.abc</groupId>
            <artifactId>X</artifactId>
            <version>1.0</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>
我的工件 X 具有以下我想在项目 Y 的 POM 中访问的属性:
<properties>
    <property1>value1</property1>
    <property2>value2</property2>
</properties>
我无法将 X 中定义的属性访问到项目 Y 中。我知道使用上述方法我无法使用插件管理,但我无法在 Web 上找到与属性相关的任何内容。
另请注意,我不能使用工件 X 作为父级,因为我们已经定义了项目级父级。
请你指导一下。