[
https://issues.apache.org/jira/browse/MNG-8265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17892489#comment-17892489
]
Guillaume Nodet edited comment on MNG-8265 at 10/24/24 1:31 PM:
----------------------------------------------------------------
What about the following:
{code}
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-neo4j</artifactId>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-neo4j</artifactId>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-cypher-dsl-parser</artifactId>
</dependency>
</dependencies>
{code}
was (Author: gnt):
What about the following:
{code}
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-neo4j</artifactId>
<type>pom>/type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-neo4j</artifactId>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-cypher-dsl-parser</artifactId>
</dependency>
</dependencies>
{code}
> 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>
> <dependency>
> <groupId>org.neo4j</groupId>
> <artifactId>neo4j-cypher-dsl-parser</artifactId>
> <version>${cypher-dsl.version}</version>
> </dependency>
> </dependencies>
> {code}
> If I want reuse the properties in the child of
> `spring-boot-starter-data-neo4j`, it's not possible right now.
> The {{cypher-dsl.version}} is from {{spring-boot-starter-data-neo4j}}
> https://github.com/spring-projects/spring-data-neo4j/blob/7.3.3/pom.xml#L79
--
This message was sent by Atlassian Jira
(v8.20.10#820010)