gitgabrio commented on PR #6886:
URL: https://github.com/apache/incubator-kie/pull/6886#issuecomment-5291074424
@yesamer This PR provide the standard approach, i.e. use the order of
imports in dependencyManagement so that the first one is selected.
I was wondering, for future, to check if it would be possible to achieve the
same result including the exclusion inside the import, i.e., instead of ->
```xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${version.tools.jackson.core}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
...
```
(that relies on the order, something a bit frail)
that ->
```xml
<dependencyManagement>
<dependencies>
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${version.tools.jackson.core}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<exclusions>
<exclusion>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
....
</dependency>
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${version.tools.jackson.core}</version>
</dependency>
```
Again, just a suggestion for the future, not for this one. And, it should
be verified: wdyt ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]