Edhilion opened a new issue, #1908:
URL: https://github.com/apache/logging-log4j2/issues/1908

   ## Description
   
   When I try to build my project using _log4j-core-test_ via maven, the 
following error is displayed :
   ```
   [ERROR] Rule 0: 
org.apache.maven.enforcer.rules.dependency.DependencyConvergence failed with 
message:
   [ERROR] Failed while enforcing releasability.
   [ERROR] 
   [ERROR] Dependency convergence error for org.hamcrest:hamcrest:jar:2.1 paths 
to dependency are:
   [ERROR] +-com.me.mypackage:myapp:jar:2.0.1-SNAPSHOT
   [ERROR]   +-org.apache.logging.log4j:log4j-core-test:jar:2.21.1:compile
   [ERROR]     +-org.awaitility:awaitility:jar:4.2.0:compile
   [ERROR]       +-org.hamcrest:hamcrest:jar:2.1:compile
   [ERROR] and
   [ERROR] +-com.me.mypackage:myapp:jar:2.0.1-SNAPSHOT
   [ERROR]   +-org.apache.logging.log4j:log4j-core-test:jar:2.21.1:compile
   [ERROR]     +-org.hamcrest:hamcrest:jar:2.2:compile
   ```
   And I must keep a strict dependency rule.
   I know I can simply force _hamcrest_ to 2.2 in my pom.xml, or exclude it 
from the file, but I don't want to do it to solve a dependency problem that is 
not on my side.
   
   Please can you fix it on your side, or better, get rid of _awaitility_, 
which hasn't been updated since 2022 ?
   
   ## Configuration
   
   **Version:** 2.21.1
   
   **Operating system:** Ubuntu 20.04.6 LTS 
   
   **JDK:** openjdk 11.0.20.1 2023-08-24
   
   ## Logs
   After a simple _mvn clean install_ command.
   
   ```
   [ERROR] Rule 0: 
org.apache.maven.enforcer.rules.dependency.DependencyConvergence failed with 
message:
   [ERROR] Failed while enforcing releasability.
   [ERROR] 
   [ERROR] Dependency convergence error for org.hamcrest:hamcrest:jar:2.1 paths 
to dependency are:
   [ERROR] +-com.me.mypackage:myapp:jar:2.0.1-SNAPSHOT
   [ERROR]   +-org.apache.logging.log4j:log4j-core-test:jar:2.21.1:compile
   [ERROR]     +-org.awaitility:awaitility:jar:4.2.0:compile
   [ERROR]       +-org.hamcrest:hamcrest:jar:2.1:compile
   [ERROR] and
   [ERROR] +-com.me.mypackage:myapp:jar:2.0.1-SNAPSHOT
   [ERROR]   +-org.apache.logging.log4j:log4j-core-test:jar:2.21.1:compile
   [ERROR]     +-org.hamcrest:hamcrest:jar:2.2:compile
   ```
   
   ## Reproduction
   
   _mvn clean install_ on any project with strict dependency Maven Enforcer 
Plugin 
(https://maven.apache.org/enforcer/enforcer-rules/dependencyConvergence.html).
   
   Let me know if you need a full live project to reproduce.
   
   Cheers.
   


-- 
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]

Reply via email to