[
https://issues.apache.org/jira/browse/MNG-8265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17892315#comment-17892315
]
Guillaume Nodet commented on MNG-8265:
--------------------------------------
You're right, that's not currently possible.
We can't just inherit from stuff in a dependency pom.xml. Dependencies undergo
complex process for resolving conflicts.
I suppose you want to import version properties from a BOM.
Such process would rather require a real BOM import with some specific flag,
but again, we'd need a way to resolve conflicts, so that's clearly not a
trivial thing.
> Dependency should inherit properties like parent
> ------------------------------------------------
>
> Key: MNG-8265
> URL: https://issues.apache.org/jira/browse/MNG-8265
> Project: Maven
> Issue Type: Improvement
> Reporter: abccbaandy
> Priority: Major
>
> Now only parent have these feature, but sometimes we need some properties
> from the dependency too.
> For ex:
> We have a spring project
> {code:xml}
> <parent>
> <groupId>org.springframework.boot</groupId>
> <artifactId>spring-boot-starter-parent</artifactId>
> <version>3.3.4</version>
> <relativePath/> <!-- lookup parent from repository -->
> </parent>
> <dependencies>
> <dependency>
> <groupId>org.springframework.boot</groupId>
> <artifactId>spring-boot-starter-data-neo4j</artifactId>
> </dependency>
> </dependencies>
> {code}
> If I want reuse the properties in the child of
> `spring-boot-starter-data-neo4j`, it's not possible right now.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)