Re: How to solve dependency convergence issue
This shouldn't be solved via exclusions but rather by specifying the wanted version in the dependencyManagement section of your project. /Anders On Tue, Mar 6, 2018 at 10:37 PM, Niranjan Raowrote: > Greetings, > > > I am using maven-enforcer-plugin to ensure only one version of jar files > is loaded. In case of conflicts, I normally would use exclusions to weed > out unwanted jars. Normally I would pick latest version of library. > > I am not clear how to solve following problem reported by maven enforcer > plugin. I am adding dependency on org.hibernate:hibernate-core which in > turn has dependency on org.hibernate.common:hibernate-commons-annotations. > Both these are pulling different versions on jboss-logging. > > > If I add exclusion on jboss-logging, which will get dropped? How do I > force to drop dependency from > org.hibernate.common:hibernate-commons-annotations > where it seems to be using older version. > > > Dependency convergence error for org.jboss.logging:jboss-logging:3.3.1.Final > paths to dependency are: > +group:artifcat:version > +-org.hibernate:hibernate-core:5.2.14.Final > +-org.jboss.logging:jboss-logging:3.3.1.Final > and > +group:artifcat:version > +-org.hibernate:hibernate-core:5.2.14.Final > +-org.hibernate.common:hibernate-commons-annotations:5.0.1.Final > +-org.jboss.logging:jboss-logging:3.3.0.Final > > > Thanks, > > > Niranjan > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >
Re: [ANN] Apache Maven Surefire Plugin 2.21.0 Released
The Apache Maven team is pleased to announce the release of the Apache Maven Surefire Plugin, version 2.21.0. The release contains 33 bug fixes. Again we received contributions from the community in form of bug reports and bug fixes. Thank you and keep them coming! http://maven.apache.org/plugins/maven-surefire-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-surefire-plugin 2.21.0 or for failsafe: org.apache.maven.plugins maven-failsafe-plugin 2.21.0 or for surefire-report: org.apache.maven.plugins maven-surefire-report-plugin 2.21.0 Release Notes - Maven Surefire - Version 2.21.0 Bug [SUREFIRE-1372] - Rerunning failing tests fails in combination with Description#createSuiteDescription [SUREFIRE-1422] - Forking fails on Linux if /bin/ps isn't available [SUREFIRE-1424] - javax.transaction.TransactionManager not visible with Java9 [SUREFIRE-1439] - NullPointerException on JDK10 [SUREFIRE-1443] - surefire report: broken links with inner classes [SUREFIRE-1445] - Properties from configuration POM are not passed to Provider on JDK 9 [SUREFIRE-1450] - TestNG Listener aren't working from Property Tag in POM.xml With JDK9 [SUREFIRE-1451] - Surefire Booter compatibility with NetBSD ps(1) output [SUREFIRE-1452] - Support filtering of tests from Base Class (TestNG) [SUREFIRE-1475] - PpidChecker.windows() assumes wmic is on the path Improvement [SUREFIRE-1183] - Custom Test Report Titles and Descriptions [SUREFIRE-1262] - Add modulepath support [SUREFIRE-1416] - maven-surefire-parser: add new method isError in ReportTestCase [SUREFIRE-1435] - Improve Thread Dump. Use prefix "surefire-forkedjvm" in daemon Threads in forked JVM [SUREFIRE-1448] - Clarified specifying multiple categories for JUnit [SUREFIRE-1453] - Allow to specify non existant classes as "groups" [SUREFIRE-1454] - Speedup Standard Output if Tests [SUREFIRE-1491] - LocationManager injected in MOJO unables plugin to run in JDK 1.6 Test [SUREFIRE-1437] - Improve unit tests. Call PID parser on all platforms in SystemUtilsTest. Wish [SUREFIRE-1436] - Increase usability in quiet mode Task [SUREFIRE-1455] - JaCoCo on integration tests [SUREFIRE-1461] - UnicodeTestNamesIT should be able to run multiple times [SUREFIRE-1463] - integration tests should run on the top of JDK 9 [SUREFIRE-1471] - Too long Windows path cause CI issues. Renamed surefire-intergation-tests to surefire-its. [SUREFIRE-1472] - Multibranch Pipeline supports JDK 7-10 Maven 3.2-3.5 Linux Windows [SUREFIRE-1481] - Surefire1295AttributeJvmCrashesToTestsIT should be Parameterized test instead of using Theories runner [SUREFIRE-1482] - Obsolete workaround with commons-lang3 in project unit tests [SUREFIRE-1484] - maven-clean-plugin should be used in integration test resource junit-pathWithUmlaut [SUREFIRE-1485] - surefire-shadefire project should not be deployed in Maven Central [SUREFIRE-1486] - maven-failsafe-plugin does not use JUnit adapter for JUnit4 annotations and TestNG providers do not have maven-surefire-plugin config in POM [SUREFIRE-1488] - Native library in Surefire1295AttributeJvmCrashesToTestsIT caused unstable test [SUREFIRE-1489] - Implement different HTTP ports in ITs and zip() in jenkinsfile Dependency upgrade [SUREFIRE-1434] - Upgrade PowerMock@Java9 to Version 2.0.0-beta.5 Enjoy, -The Apache Maven team On Tue, Mar 6, 2018 at 7:03 PM, Tibor Diganawrote: > The Apache Maven team is pleased to announce the release of the Apache > Maven Surefire Plugin, version 2.21.0. > > The release contains 33 bug fixes. > Again we received contributions from the community in form of bug reports > and bug fixes. > Thank you and keep them coming! > > http://maven.apache.org/plugins/maven-surefire-plugin/ > > You should specify the version in your project's plugin configuration: > > > org.apache.maven.plugins > maven-surefire-plugin > 2.21.0 > > > or for failsafe: > > > org.apache.maven.plugins > maven-failsafe-plugin > 2.21.0 > > > or for surefire-report: > > > org.apache.maven.plugins > maven-surefire-report-plugin > 2.21.0 > > > > ( The text area below allows the project release notes to be copied to > another HTML document.) > > Release Notes - Maven Surefire - Version 2.21.0 > > Bug > > > [ href='https://issues.apache.org/jira/browse/SUREFIRE-1372'>SUREFIRE-1372] > - Rerunning failing tests fails in combination with Description# > createSuiteDescription > > [ href='https://issues.apache.org/jira/browse/SUREFIRE-1422'>SUREFIRE-1422] > - Forking fails on Linux if /bin/ps isnt available > > [ href='https://issues.apache.org/jira/browse/SUREFIRE-1424'>SUREFIRE-1424] > - javax.transaction.TransactionManager not visible with Java9 > > [
How to solve dependency convergence issue
Greetings, I am using maven-enforcer-plugin to ensure only one version of jar files is loaded. In case of conflicts, I normally would use exclusions to weed out unwanted jars. Normally I would pick latest version of library. I am not clear how to solve following problem reported by maven enforcer plugin. I am adding dependency on org.hibernate:hibernate-core which in turn has dependency on org.hibernate.common:hibernate-commons-annotations. Both these are pulling different versions on jboss-logging. If I add exclusion on jboss-logging, which will get dropped? How do I force to drop dependency from org.hibernate.common:hibernate-commons-annotations where it seems to be using older version. Dependency convergence error for org.jboss.logging:jboss-logging:3.3.1.Final paths to dependency are: +group:artifcat:version +-org.hibernate:hibernate-core:5.2.14.Final +-org.jboss.logging:jboss-logging:3.3.1.Final and +group:artifcat:version +-org.hibernate:hibernate-core:5.2.14.Final +-org.hibernate.common:hibernate-commons-annotations:5.0.1.Final +-org.jboss.logging:jboss-logging:3.3.0.Final Thanks, Niranjan - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
[ANN] Apache Maven Surefire Plugin 2.21.0 Released
The Apache Maven team is pleased to announce the release of the Apache Maven Surefire Plugin, version 2.21.0. The release contains 33 bug fixes. Again we received contributions from the community in form of bug reports and bug fixes. Thank you and keep them coming! http://maven.apache.org/plugins/maven-surefire-plugin/ You should specify the version in your project's plugin configuration: org.apache.maven.plugins maven-surefire-plugin 2.21.0 or for failsafe: org.apache.maven.plugins maven-failsafe-plugin 2.21.0 or for surefire-report: org.apache.maven.plugins maven-surefire-report-plugin 2.21.0 ( The text area below allows the project release notes to be copied to another HTML document.) Release Notes - Maven Surefire - Version 2.21.0 Bug [SUREFIRE-1372] - Rerunning failing tests fails in combination with Description#createSuiteDescription [SUREFIRE-1422] - Forking fails on Linux if /bin/ps isnt available [SUREFIRE-1424] - javax.transaction.TransactionManager not visible with Java9 [SUREFIRE-1439] - NullPointerException on JDK10 [SUREFIRE-1443] - surefire report: broken links with inner classes [SUREFIRE-1445] - Properties from configuration POM are not passed to Provider on JDK 9 [SUREFIRE-1450] - TestNG Listener arent working from Property Tag in POM.xml With JDK9 [SUREFIRE-1451] - Surefire Booter compatibility with NetBSD ps(1) output [SUREFIRE-1452] - Support filtering of tests from Base Class (TestNG) [SUREFIRE-1475] - PpidChecker.windows() assumes wmic is on the path Improvement [SUREFIRE-1183] - Custom Test Report Titles and Descriptions [SUREFIRE-1262] - Add modulepath support [SUREFIRE-1416] - maven-surefire-parser: add new method isError in ReportTestCase [SUREFIRE-1435] - Improve Thread Dump. Use prefix surefire-forkedjvm in daemon Threads in forked JVM [SUREFIRE-1448] - Clarified specifying multiple categories for JUnit [SUREFIRE-1453] - Allow to specify non existant classes as groups [SUREFIRE-1454] - Speedup Standard Output if Tests [SUREFIRE-1491] - LocationManager injected in MOJO unables plugin to run in JDK 1.6 Test [SUREFIRE-1437] - Improve unit tests. Call PID parser on all platforms in SystemUtilsTest. Wish [SUREFIRE-1436] - Increase usability in quiet mode Task [SUREFIRE-1455] - JaCoCo on integration tests [SUREFIRE-1461] - UnicodeTestNamesIT should be able to run multiple times [SUREFIRE-1463] - integration tests should run on the top of JDK 9 [SUREFIRE-1471] - Too long Windows path cause CI issues. Renamed surefire-intergation-tests to surefire-its. [SUREFIRE-1472] - Multibranch Pipeline supports JDK 7-10 Maven 3.2-3.5 Linux Windows [SUREFIRE-1481] - Surefire1295AttributeJvmCrashesToTestsIT should be Parameterized test instead of using Theories runner [SUREFIRE-1482] - Obsolete workaround with commons-lang3 in project unit tests [SUREFIRE-1484] - maven-clean-plugin should be used in integration test resource junit-pathWithUmlaut [SUREFIRE-1485] - surefire-shadefire project should not be deployed in Maven Central [SUREFIRE-1486] - maven-failsafe-plugin does not use JUnit adapter for JUnit4 annotations and TestNG providers do not have maven-surefire-plugin config in POM [SUREFIRE-1488] - Native library in Surefire1295AttributeJvmCrashesToTestsIT caused unstable test [SUREFIRE-1489] - Implement different HTTP ports in ITs and zip() in jenkinsfile Dependency upgrade [SUREFIRE-1434] - Upgrade PowerMock@Java9 to Version 2.0.0-beta.5 Enjoy, -The Apache Maven team