Updating library version, but transitive dependenies stay the same - spring

In order to fix CVE-2022-41881 I want to update the dependency for netty under org.springframework.boot:spring-boot-starter-reactor-netty:jar:2.7.1 from version 1.0.20 to 1.1.1
This is the section of the dependency tree before the change:
[INFO] | +- org.springframework.boot:spring-boot-starter-reactor-netty:jar:2.7.1:compile
[INFO] | | \- io.projectreactor.netty:reactor-netty-http:jar:1.0.20:compile
[INFO] | | +- io.netty:netty-codec-http:jar:4.1.78.Final:compile
[INFO] | | | +- io.netty:netty-common:jar:4.1.78.Final:compile
[INFO] | | | +- io.netty:netty-buffer:jar:4.1.78.Final:compile
[INFO] | | | +- io.netty:netty-transport:jar:4.1.78.Final:compile
[INFO] | | | +- io.netty:netty-codec:jar:4.1.78.Final:compile
[INFO] | | | \- io.netty:netty-handler:jar:4.1.78.Final:compile
[INFO] | | +- io.netty:netty-codec-http2:jar:4.1.78.Final:compile
[INFO] | | +- io.netty:netty-resolver-dns:jar:4.1.78.Final:compile
[INFO] | | | +- io.netty:netty-resolver:jar:4.1.78.Final:compile
[INFO] | | | \- io.netty:netty-codec-dns:jar:4.1.78.Final:compile
[INFO] | | +- io.netty:netty-resolver-dns-native-macos:jar:osx-x86_64:4.1.78.Final:compile
[INFO] | | | \- io.netty:netty-resolver-dns-classes-macos:jar:4.1.78.Final:compile
[INFO] | | +- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.78.Final:compile
[INFO] | | | +- io.netty:netty-transport-native-unix-common:jar:4.1.78.Final:compile
[INFO] | | | \- io.netty:netty-transport-classes-epoll:jar:4.1.78.Final:compile
[INFO] | | \- io.projectreactor.netty:reactor-netty-core:jar:1.0.20:compile
[INFO] | | \- io.netty:netty-handler-proxy:jar:4.1.78.Final:compile
[INFO] | | \- io.netty:netty-codec-socks:jar:4.1.78.Final:compile
When forcing the use of a newer dependency for reactor-netty-http like this:
<dependency>
<groupId>io.projectreactor.netty</groupId>
<artifactId>reactor-netty-http</artifactId>
<version>1.1.1</version>
</dependency>
I end up with this dependency tree:
[INFO] | | \- io.projectreactor.netty:reactor-netty-http:jar:1.1.1:compile
[INFO] | | +- io.netty:netty-codec-http:jar:4.1.78.Final:compile
[INFO] | | | +- io.netty:netty-common:jar:4.1.78.Final:compile
[INFO] | | | +- io.netty:netty-buffer:jar:4.1.78.Final:compile
[INFO] | | | +- io.netty:netty-transport:jar:4.1.78.Final:compile
[INFO] | | | +- io.netty:netty-codec:jar:4.1.78.Final:compile
[INFO] | | | \- io.netty:netty-handler:jar:4.1.78.Final:compile
[INFO] | | +- io.netty:netty-codec-http2:jar:4.1.78.Final:compile
[INFO] | | +- io.netty:netty-resolver-dns:jar:4.1.78.Final:compile
[INFO] | | | +- io.netty:netty-resolver:jar:4.1.78.Final:compile
[INFO] | | | \- io.netty:netty-codec-dns:jar:4.1.78.Final:compile
[INFO] | | +- io.netty:netty-resolver-dns-native-macos:jar:osx-x86_64:4.1.78.Final:compile
[INFO] | | | \- io.netty:netty-resolver-dns-classes-macos:jar:4.1.78.Final:compile
[INFO] | | +- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.78.Final:compile
[INFO] | | | +- io.netty:netty-transport-native-unix-common:jar:4.1.78.Final:compile
[INFO] | | | \- io.netty:netty-transport-classes-epoll:jar:4.1.78.Final:compile
[INFO] | | \- io.projectreactor.netty:reactor-netty-core:jar:1.0.20:compile
[INFO] | | \- io.netty:netty-handler-proxy:jar:4.1.78.Final:compile
[INFO] | | \- io.netty:netty-codec-socks:jar:4.1.78.Final:compile
As you can see the reactor-netty-http has the correct version, but all the dependencies underneath are still in the same version also according to Maven central they should have 4.1.86.Final
These dependencies are only defined through reactor-netty-http, so there should not be anything else that forces it to a lower version.
Any idea why an outdated version is used here?

The Netty version is controlled by Spring Boot. In order to update it, in your pom.xml add the property below
<properties>
<netty.version>4.1.86.Final</netty.version>
</properties>
See more here

If you are using the spring-boot-dependencies via import scope (BOM) in your project instead of the spring-boot-starter-parent as parent of your project. You have to beware of the following that you have to define the netty-bom before the spring-boot-dependencies bom in your dependencyManagement.
The following will overwrite the versions of the netty parts correctly:
<dependencyManagement>
...
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-bom</artifactId>
<version>4.1.86.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring.boot.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>

Related

java.lang.NoSuchMethodError: 'void org.yaml.snakeyaml.LoaderOptions.setMaxAliasesForCollections(int)'

Im my project we are using spring boot 2.6.6 version. When I run the below test class separately I am getting below error.
java.lang.NoSuchMethodError: 'void org.yaml.snakeyaml.LoaderOptions.setMaxAliasesForCollections(int)'
If the class runs as part of mvn install its executing without any issues.
#SpringBootTest(webEnvironment = RANDOM_PORT, classes = TestApplication.class)
#ContextConfiguration(classes = {WireMockConfig.class})
class ToastNotificationControllerIT {
#LocalServerPort
private int port;
#BeforeEach
void setUp() throws IOException {
}
#Test
void test() {
}
}
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.boot.env.OriginTrackedYamlLoader.createYaml(OriginTrackedYamlLoader.java:69)
The following method did not exist:
'void org.yaml.snakeyaml.LoaderOptions.setMaxAliasesForCollections(int)'
The calling method's class, org.springframework.boot.env.OriginTrackedYamlLoader, was loaded from the following location:
jar:file:/C:/dev/.m2/repository/org/springframework/boot/spring-boot/2.6.6/spring-boot-2.6.6.jar!/org/springframework/boot/env/OriginTrackedYamlLoader.class
The called method's class, org.yaml.snakeyaml.LoaderOptions, is available from the following locations:
jar:file:/C:/dev/.m2/repository/org/yaml/snakeyaml/1.23/snakeyaml-1.23-android.jar!/org/yaml/snakeyaml/LoaderOptions.class
jar:file:/C:/dev/.m2/repository/org/yaml/snakeyaml/1.29/snakeyaml-1.29.jar!/org/yaml/snakeyaml/LoaderOptions.class
The called method's class hierarchy was loaded from the following locations:
org.yaml.snakeyaml.LoaderOptions: file:/C:/dev/.m2/repository/org/yaml/snakeyaml/1.23/snakeyaml-1.23-android.jar
I tried exculde the org.yaml dependency from spring boot starter dependency. But the issue is still not resolved.
My Dependency Tree:
[INFO] com.selva.test:test-api:jar:1.0.6
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.6.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.6.6:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:2.6.6:compile
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.6.6:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.6.6:compile
[INFO] | | | \- org.apache.logging.log4j:log4j-to-slf4j:jar:2.17.2:compile
[INFO] | | | \- org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
[INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.29:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.6.6:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.13.2:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.13.2:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.13.2:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.6.6:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.60:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.60:compile
[INFO] | +- org.springframework:spring-web:jar:5.3.18:compile
[INFO] | | \- org.springframework:spring-beans:jar:5.3.18:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.3.18:compile
[INFO] | \- org.springframework:spring-expression:jar:5.3.18:compile
[INFO] +- org.springframework.boot:spring-boot-starter-validation:jar:2.6.6:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.60:compile
[INFO] | \- org.hibernate.validator:hibernate-validator:jar:6.2.3.Final:compile
[INFO] | +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.4.3.Final:compile
[INFO] | \- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-openfeign:jar:3.1.1:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter:jar:3.1.1:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-context:jar:3.1.1:compile
[INFO] | | \- org.springframework.security:spring-security-rsa:jar:1.0.10.RELEASE:compile
[INFO] | | \- org.bouncycastle:bcpkix-jdk15on:jar:1.68:compile
[INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.68:compile
[INFO] | +- org.springframework.cloud:spring-cloud-openfeign-core:jar:3.1.1:compile
[INFO] | | \- io.github.openfeign.form:feign-form-spring:jar:3.8.0:compile
[INFO] | | \- io.github.openfeign.form:feign-form:jar:3.8.0:compile
[INFO] | +- org.springframework.cloud:spring-cloud-commons:jar:3.1.1:compile
[INFO] | | \- org.springframework.security:spring-security-crypto:jar:5.6.2:compile
[INFO] | +- io.github.openfeign:feign-core:jar:11.8:compile
[INFO] | \- io.github.openfeign:feign-slf4j:jar:11.8:compile
[INFO] +- io.github.openfeign:feign-httpclient:jar:11.8:compile
[INFO] | \- org.apache.httpcomponents:httpclient:jar:4.5.13:compile
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.4.15:compile
[INFO] | \- commons-codec:commons-codec:jar:1.15:compile
[INFO] +- org.projectlombok:lombok:jar:1.18.22:compile (optional)
[INFO] +- org.mapstruct:mapstruct:jar:1.4.2.Final:compile
INFO] | +- commons-beanutils:commons-beanutils:jar:1.9.4:compile
[INFO] | | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | +- io.opentracing.contrib:opentracing-spring-web-starter:jar:4.1.0:compile
[INFO] | | +- io.opentracing.contrib:opentracing-spring-web:jar:4.1.0:compile
[INFO] | | | \- io.opentracing.contrib:opentracing-web-servlet-filter:jar:0.4.0:compile
[INFO] | | +- io.opentracing.contrib:opentracing-tracerresolver:jar:0.1.8:compile
[INFO] | | \- io.opentracing.contrib:opentracing-spring-tracer-configuration-starter:jar:0.3.1:compile
[INFO] | | \- io.opentracing:opentracing-noop:jar:0.33.0:compile
[INFO] | +- javax.servlet:javax.servlet-api:jar:4.0.1:compile
[INFO] | +- org.aspectj:aspectjweaver:jar:1.9.7:compile
[INFO] | \- org.springframework.boot:spring-boot-starter-aop:jar:2.6.6:compile
[INFO] +- org.springdoc:springdoc-openapi-ui:jar:1.5.11:compile
[INFO] | +- org.springdoc:springdoc-openapi-webmvc-core:jar:1.5.11:compile
[INFO] | | \- org.springdoc:springdoc-openapi-common:jar:1.5.11:compile
[INFO] | | +- io.swagger.core.v3:swagger-models:jar:2.1.11:compile
[INFO] | | +- io.swagger.core.v3:swagger-annotations:jar:2.1.11:compile
[INFO] | | +- io.swagger.core.v3:swagger-integration:jar:2.1.11:compile
[INFO] | | | \- io.swagger.core.v3:swagger-core:jar:2.1.11:compile
[INFO] | | | \- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.13.2:compile
[INFO] | | \- io.github.classgraph:classgraph:jar:4.8.69:compile
[INFO] | +- org.webjars:swagger-ui:jar:3.52.3:compile
[INFO] | \- org.webjars:webjars-locator-core:jar:0.48:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.6.6:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.6.6:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.6.6:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.6.0:compile
[INFO] | | \- net.minidev:json-smart:jar:2.4.8:compile
[INFO] | | \- net.minidev:accessors-smart:jar:2.4.8:compile
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO] | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
[INFO] | +- org.assertj:assertj-core:jar:3.21.0:test
[INFO] | +- org.hamcrest:hamcrest:jar:2.2:test
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.8.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.8.2:test
[INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.8.2:test
[INFO] | | \- org.junit.platform:junit-platform-engine:jar:1.8.2:test
[INFO] | +- org.mockito:mockito-core:jar:4.0.0:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.11.22:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.11.22:test
[INFO] | | \- org.objenesis:objenesis:jar:3.2:test
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:4.0.0:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-core:jar:5.3.18:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.3.18:compile
[INFO] | +- org.springframework:spring-test:jar:5.3.18:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.8.4:compile
[INFO] +- com.github.javafaker:javafaker:jar:1.0.2:test
[INFO] | +- org.apache.commons:commons-lang3:jar:3.12.0:compile
[INFO] | +- org.yaml:snakeyaml:jar:android:1.23:test
[INFO] | \- com.github.mifmif:generex:jar:1.0.2:test
[INFO] | \- dk.brics.automaton:automaton:jar:1.11-8:test
[INFO] +- com.github.tomakehurst:wiremock:jar:2.27.2:compile
[INFO] | +- org.eclipse.jetty:jetty-server:jar:9.4.45.v20220203:compile
[INFO] | | +- org.eclipse.jetty:jetty-http:jar:9.4.45.v20220203:compile
[INFO] | | \- org.eclipse.jetty:jetty-io:jar:9.4.45.v20220203:compile
[INFO] | +- org.eclipse.jetty:jetty-servlet:jar:9.4.45.v20220203:compile
[INFO] | | +- org.eclipse.jetty:jetty-security:jar:9.4.45.v20220203:compile
[INFO] | | \- org.eclipse.jetty:jetty-util-ajax:jar:9.4.45.v20220203:compile
[INFO] | +- org.eclipse.jetty:jetty-servlets:jar:9.4.45.v20220203:compile
[INFO] | | +- org.eclipse.jetty:jetty-continuation:jar:9.4.45.v20220203:compile
[INFO] | | \- org.eclipse.jetty:jetty-util:jar:9.4.45.v20220203:compile
[INFO] | +- org.eclipse.jetty:jetty-webapp:jar:9.4.45.v20220203:compile
[INFO] | | \- org.eclipse.jetty:jetty-xml:jar:9.4.45.v20220203:compile
[INFO] | +- org.eclipse.jetty:jetty-proxy:jar:9.4.45.v20220203:compile
[INFO] | | \- org.eclipse.jetty:jetty-client:jar:9.4.45.v20220203:compile
[INFO] | +- com.google.guava:guava:jar:20.0:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.13.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.13.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.13.2.2:compile
[INFO] | +- org.xmlunit:xmlunit-legacy:jar:2.8.4:compile
[INFO] | +- org.xmlunit:xmlunit-placeholders:jar:2.8.4:compile
[INFO] | +- org.ow2.asm:asm:jar:7.0:compile
[INFO] | +- net.sf.jopt-simple:jopt-simple:jar:5.0.3:compile
[INFO] | +- com.github.jknack:handlebars:jar:4.0.7:compile
[INFO] | | \- org.antlr:antlr4-runtime:jar:4.7.1:compile
[INFO] | +- com.github.jknack:handlebars-helpers:jar:4.0.7:compile
[INFO] | +- com.flipkart.zjsonpatch:zjsonpatch:jar:0.4.4:compile
[INFO] | \- commons-fileupload:commons-fileupload:jar:1.4:compile
[INFO] | \- commons-io:commons-io:jar:2.2:compile
[INFO] +- au.com.dius.pact.consumer:junit5:jar:4.2.12:test
[INFO] | +- au.com.dius.pact:consumer:jar:4.2.12:test
[INFO] | | +- au.com.dius.pact.core:model:jar:4.2.12:test
[INFO] | | | +- au.com.dius.pact.core:support:jar:4.2.12:test
[INFO] | | | | +- org.antlr:antlr4:jar:4.9.2:test
[INFO] | | | | | +- org.antlr:antlr-runtime:jar:3.5.2:test
[INFO] | | | | | +- org.antlr:ST4:jar:4.3:test
[INFO] | | | | | +- org.abego.treelayout:org.abego.treelayout.core:jar:1.0.3:test
[INFO] | | | | | +- org.glassfish:javax.json:jar:1.0.4:test
[INFO] | | | | | \- com.ibm.icu:icu4j:jar:61.1:test
[INFO] | | | | +- io.github.microutils:kotlin-logging-jvm:jar:2.0.10:test
[INFO] | | | | +- com.michael-bull.kotlin-result:kotlin-result-jvm:jar:1.1.12:test
[INFO] | | | | \- com.google.code.findbugs:jsr305:jar:3.0.2:test
[INFO] | | | +- au.com.dius.pact.core:pactbroker:jar:4.2.12:test
[INFO] | | | +- org.apache.commons:commons-collections4:jar:4.4:test
[INFO] | | | +- javax.mail:mail:jar:1.5.0-b01:test
[INFO] | | | | \- javax.activation:activation:jar:1.1:test
[INFO] | | | +- org.apache.tika:tika-core:jar:1.27:test
[INFO] | | | \- io.ktor:ktor-http-jvm:jar:1.3.1:test
[INFO] | | | +- org.jetbrains.kotlinx:atomicfu:jar:0.14.1:test
[INFO] | | | +- org.jetbrains.kotlinx:kotlinx-coroutines-core:jar:1.5.2:test
[INFO] | | | +- org.jetbrains.kotlinx:kotlinx-coroutines-core-common:jar:1.3.3:test
[INFO] | | | \- io.ktor:ktor-utils-jvm:jar:1.3.1:test
[INFO] | | | \- io.ktor:ktor-io-jvm:jar:1.3.1:test
[INFO] | | +- au.com.dius.pact.core:matchers:jar:4.2.12:test
[INFO] | | | +- xerces:xercesImpl:jar:2.12.0:test
[INFO] | | | | \- xml-apis:xml-apis:jar:1.4.01:test
[INFO] | | | +- org.atteo:evo-inflector:jar:1.2.2:test
[INFO] | | | \- com.github.ajalt:mordant:jar:1.2.1:test
[INFO] | | | \- com.github.ajalt:colormath:jar:1.2.0:test
[INFO] | | +- com.googlecode.java-diff-utils:diffutils:jar:1.3.0:test
[INFO] | | +- org.json:json:jar:20160212:test
[INFO] | | +- io.netty:netty-handler:jar:4.1.75.Final:test
[INFO] | | | +- io.netty:netty-common:jar:4.1.75.Final:test
[INFO] | | | +- io.netty:netty-resolver:jar:4.1.75.Final:test
[INFO] | | | +- io.netty:netty-buffer:jar:4.1.75.Final:test
[INFO] | | | +- io.netty:netty-transport:jar:4.1.75.Final:test
[INFO] | | | \- io.netty:netty-codec:jar:4.1.75.Final:test
[INFO] | | +- org.apache.httpcomponents:httpmime:jar:4.5.13:test
[INFO] | | +- org.apache.httpcomponents:fluent-hc:jar:4.5.13:test
[INFO] | | +- io.ktor:ktor-server-netty:jar:1.4.1:test
[INFO] | | | +- org.jetbrains.kotlin:kotlin-stdlib-jdk7:jar:1.6.10:test
[INFO] | | | +- org.jetbrains.kotlin:kotlin-stdlib-jdk8:jar:1.6.10:test
[INFO] | | | +- org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:jar:1.5.2:test
[INFO] | | | | \- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:jar:1.5.2:test
[INFO] | | | +- io.ktor:ktor-server-host-common:jar:1.4.1:test
[INFO] | | | | +- io.ktor:ktor-server-core:jar:1.4.1:test
[INFO] | | | | | \- com.typesafe:config:jar:1.3.1:test
[INFO] | | | | \- io.ktor:ktor-http-cio-jvm:jar:1.4.1:test
[INFO] | | | +- io.netty:netty-codec-http2:jar:4.1.75.Final:test
[INFO] | | | | \- io.netty:netty-codec-http:jar:4.1.75.Final:test
[INFO] | | | +- org.eclipse.jetty.alpn:alpn-api:jar:1.1.3.v20160715:test
[INFO] | | | +- io.netty:netty-transport-native-kqueue:jar:4.1.75.Final:test
[INFO] | | | | +- io.netty:netty-transport-native-unix-common:jar:4.1.75.Final:test
[INFO] | | | | \- io.netty:netty-transport-classes-kqueue:jar:4.1.75.Final:test
[INFO] | | | \- io.netty:netty-transport-native-epoll:jar:4.1.75.Final:test
[INFO] | | | \- io.netty:netty-transport-classes-epoll:jar:4.1.75.Final:test
[INFO] | | \- io.ktor:ktor-network-tls-certificates:jar:1.4.1:test
[INFO] | | \- io.ktor:ktor-network-tls-jvm:jar:1.4.1:test
[INFO] | | \- io.ktor:ktor-network-jvm:jar:1.4.1:test
[INFO] | +- org.jetbrains.kotlin:kotlin-stdlib:jar:1.6.10:test
[INFO] | | +- org.jetbrains:annotations:jar:13.0:test
[INFO] | | \- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.6.10:test
[INFO] | +- org.jetbrains.kotlin:kotlin-reflect:jar:1.6.10:test
[INFO] | \- org.junit.jupiter:junit-jupiter-api:jar:5.8.2:test
[INFO] | +- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] | +- org.junit.platform:junit-platform-commons:jar:1.8.2:test
[INFO] | \- org.apiguardian:apiguardian-api:jar:1.1.2:test
Can Anyone help me to resolve this issue.
Any help will be greatly appreciated !!!
Issue resolved when adding snakeyaml latest dependency in pom and removed the old one in m2 folder and exclude snakeyaml from javafaker dependency.
Exclude snakeyaml from javafaker.
<dependency>
<groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId>
<version>${javafaker.version}</version>
<exclusions>
<exclusion>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</exclusion>
</exclusions>
<scope>test</scope>
</dependency>
And add Updated version of snakeyaml from Maven
It's in Spring boot application...
.................
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.5</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
........
<properties>
<java.version>17</java.version>
<snakeyaml.version>1.33</snakeyaml.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
.....
<dependency>
<groupId>com.github.javafaker</groupId>
<artifactId>javafaker</artifactId>
<version>1.0.2</version>
<exclusions>
<exclusion>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</exclusion>
</exclusions>
</dependency>
.....
<dependency>
<groupId>io.codearte.jfairy</groupId>
<artifactId>jfairy</artifactId>
<version>0.5.9</version>
<scope>test</scope>
</dependency>
.....
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.1-jre</version>
</dependency>
......
</dependencies>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>${snakeyaml.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
...................

Unable to run spring boot tests using maven: No tests were executed

I am unable to run tests for a spring boot app using maven. I have seen multiple posts about this, most of their solutions are to:
align a junit version with maven-surefire-plugin or
ensure a junit version is not predefined by a parent element
My project does not use a parent nor maven-surefire-plugin. Otherwise, based on the pom file, I don't see any glaring conflicts. I do see the junit:jar:4.13.2, but that is part of the junit-vintage dependency for backwards compatability.
What could be causing this?
Spring-Boot: (v2.4.3)
Camunda Platform: (v7.15.0)
Camunda Platform Spring Boot Starter: (v7.15.0)
Apache Maven 3.6.3
Java version: 11.0.8, vendor: Azul Systems, Inc., runtime: C:\Program Files (x86)\Zulu\zulu-11
OS name: "windows 10", version: "10.0", arch: "x86", family: "windows"
pom
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.myapp</groupId>
<artifactId>myappdemo</artifactId>
<version>1.0.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>2.4.3</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-bom</artifactId>
<version>7.15.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-rest</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-webapp</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm</groupId>
<artifactId>camunda-engine-plugin-spin</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.spin</groupId>
<artifactId>camunda-spin-dataformat-all</artifactId>
</dependency>
<dependency>
<groupId>org.camunda.bpm.springboot</groupId>
<artifactId>camunda-bpm-spring-boot-starter-test</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ojdbc11</artifactId>
<version>21.4.0.0.1</version>
</dependency>
<dependency>
<groupId>com.oracle.database.jdbc</groupId>
<artifactId>ucp11</artifactId>
<version>21.4.0.0.1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-mail</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.6.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>3.2.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.24</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<layout>ZIP</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
mvn dependency:tree
[INFO] +- org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter:jar:7.15.0:compile
[INFO] | +- org.camunda.bpm:camunda-engine-spring:jar:7.15.0:compile
[INFO] | | +- org.camunda.bpm:camunda-engine:jar:7.15.0:compile
[INFO] | | | +- org.camunda.bpm.model:camunda-bpmn-model:jar:7.15.0:compile
[INFO] | | | | \- org.camunda.bpm.model:camunda-xml-model:jar:7.15.0:compile
[INFO] | | | +- org.camunda.bpm.model:camunda-cmmn-model:jar:7.15.0:compile
[INFO] | | | +- org.camunda.bpm.dmn:camunda-engine-dmn:jar:7.15.0:compile
[INFO] | | | | +- org.camunda.bpm.model:camunda-dmn-model:jar:7.15.0:compile
[INFO] | | | | +- org.camunda.bpm.dmn:camunda-engine-feel-api:jar:7.15.0:compile
[INFO] | | | | +- org.camunda.bpm.dmn:camunda-engine-feel-juel:jar:7.15.0:compile
[INFO] | | | | +- org.camunda.bpm.dmn:camunda-engine-feel-scala:jar:7.15.0:compile
[INFO] | | | | \- org.camunda.feel:feel-engine:jar:scala-shaded:1.13.1:compile
[INFO] | | | +- org.camunda.commons:camunda-commons-typed-values:jar:7.15.0:compile
[INFO] | | | +- org.mybatis:mybatis:jar:3.5.6:compile
[INFO] | | | +- joda-time:joda-time:jar:2.1:compile
[INFO] | | | +- org.camunda.connect:camunda-connect-core:jar:1.5.2:compile
[INFO] | | | \- org.camunda.connect:camunda-connect-connectors-all:jar:1.5.2:runtime
[INFO] | | \- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] | | \- commons-pool:commons-pool:jar:1.6:compile
[INFO] | +- org.springframework:spring-context:jar:5.3.4:compile
[INFO] | | +- org.springframework:spring-beans:jar:5.3.4:compile
[INFO] | | +- org.springframework:spring-core:jar:5.3.4:compile
[INFO] | | | \- org.springframework:spring-jcl:jar:5.3.4:compile
[INFO] | | \- org.springframework:spring-expression:jar:5.3.4:compile
[INFO] | +- org.springframework:spring-jdbc:jar:5.3.4:compile
[INFO] | +- org.springframework:spring-tx:jar:5.3.4:compile
[INFO] | +- org.springframework:spring-orm:jar:5.3.4:compile
[INFO] | +- org.springframework.boot:spring-boot-loader-tools:jar:2.4.3:compile
[INFO] | | \- org.apache.commons:commons-compress:jar:1.20:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.4.3:compile
[INFO] | | \- org.springframework.boot:spring-boot:jar:2.4.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.4.3:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.4.3:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile
[INFO] | | | | \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.27:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.11:compile
[INFO] | \- com.fasterxml.uuid:java-uuid-generator:jar:3.2.0:compile
[INFO] +- org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-rest:jar:7.15.0:compile
[INFO] | +- org.camunda.bpm:camunda-engine-rest-jaxrs2:jar:7.15.0:compile
[INFO] | | +- commons-fileupload:commons-fileupload:jar:1.4:compile
[INFO] | | +- commons-io:commons-io:jar:2.8.0:compile
[INFO] | | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.11.4:compile
[INFO] | | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.11.4:compile
[INFO] | | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.11.4:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.4:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.4:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.11.4:compile
[INFO] | \- org.springframework.boot:spring-boot-starter-jersey:jar:2.4.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-validation:jar:2.4.3:compile
[INFO] | | \- org.hibernate.validator:hibernate-validator:jar:6.1.7.Final:compile
[INFO] | +- org.glassfish.jersey.core:jersey-server:jar:2.32:compile
[INFO] | | +- org.glassfish.jersey.core:jersey-common:jar:2.32:compile
[INFO] | | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.3:compile
[INFO] | | +- org.glassfish.jersey.core:jersey-client:jar:2.32:compile
[INFO] | | +- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6:compile
[INFO] | | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.32:compile
[INFO] | | +- org.glassfish.hk2.external:jakarta.inject:jar:2.6.1:compile
[INFO] | | \- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.32:compile
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.32:compile
[INFO] | +- org.glassfish.jersey.ext:jersey-bean-validation:jar:2.32:compile
[INFO] | +- org.glassfish.jersey.ext:jersey-spring5:jar:2.32:compile
[INFO] | | +- org.glassfish.jersey.inject:jersey-hk2:jar:2.32:compile
[INFO] | | | \- org.glassfish.hk2:hk2-locator:jar:2.6.1:compile
[INFO] | | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.6.1:compile
[INFO] | | +- org.glassfish.hk2:hk2:jar:2.6.1:compile
[INFO] | | | +- org.glassfish.hk2:hk2-utils:jar:2.6.1:compile
[INFO] | | | +- org.glassfish.hk2:hk2-api:jar:2.6.1:compile
[INFO] | | | +- org.glassfish.hk2:hk2-core:jar:2.6.1:compile
[INFO] | | | +- org.glassfish.hk2:hk2-runlevel:jar:2.6.1:compile
[INFO] | | | \- org.glassfish.hk2:class-model:jar:2.6.1:compile
[INFO] | | | +- org.ow2.asm:asm:jar:7.1:compile
[INFO] | | | +- org.ow2.asm:asm-analysis:jar:7.1:compile
[INFO] | | | +- org.ow2.asm:asm-commons:jar:7.1:compile
[INFO] | | | +- org.ow2.asm:asm-tree:jar:7.1:compile
[INFO] | | | \- org.ow2.asm:asm-util:jar:7.1:compile
[INFO] | | \- org.glassfish.hk2:spring-bridge:jar:2.6.1:compile
[INFO] | \- org.glassfish.jersey.media:jersey-media-json-jackson:jar:2.32:compile
[INFO] | \- org.glassfish.jersey.ext:jersey-entity-filtering:jar:2.32:compile
[INFO] +- org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp:jar:7.15.0:compile
[INFO] | +- org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-webapp-core:jar:7.15.0:compile
[INFO] | | \- org.camunda.bpm.webapp:camunda-webapp:jar:classes:7.15.0:compile
[INFO] | \- org.camunda.bpm.webapp:camunda-webapp-webjar:jar:7.15.0:compile
[INFO] +- org.camunda.bpm:camunda-engine-plugin-spin:jar:7.15.0:compile
[INFO] | \- org.camunda.spin:camunda-spin-core:jar:1.10.1:compile
[INFO] +- org.camunda.spin:camunda-spin-dataformat-all:jar:1.10.1:compile
[INFO] | +- org.camunda.commons:camunda-commons-logging:jar:1.10.0:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] | \- org.camunda.commons:camunda-commons-utils:jar:1.10.0:compile
[INFO] +- org.camunda.bpm.springboot:camunda-bpm-spring-boot-starter-test:jar:7.15.0:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-test:jar:2.4.3:compile
[INFO] | | +- org.springframework.boot:spring-boot-test:jar:2.4.3:compile
[INFO] | | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.4.3:compile
[INFO] | | +- com.jayway.jsonpath:json-path:jar:2.4.0:compile
[INFO] | | | \- net.minidev:json-smart:jar:2.3:compile
[INFO] | | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO] | | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
[INFO] | | +- org.assertj:assertj-core:jar:3.18.1:compile
[INFO] | | +- org.hamcrest:hamcrest:jar:2.2:compile
[INFO] | | +- org.skyscreamer:jsonassert:jar:1.5.0:compile
[INFO] | | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:compile
[INFO] | | +- org.springframework:spring-test:jar:5.3.4:compile
[INFO] | | \- org.xmlunit:xmlunit-core:jar:2.7.0:compile
[INFO] | +- org.junit.vintage:junit-vintage-engine:jar:5.7.1:compile
[INFO] | | +- org.apiguardian:apiguardian-api:jar:1.1.0:compile
[INFO] | | +- org.junit.platform:junit-platform-engine:jar:1.7.1:compile
[INFO] | | \- junit:junit:jar:4.13.2:compile
[INFO] | \- org.camunda.bpm.assert:camunda-bpm-assert-assertj3-11-1:jar:4.0.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:2.4.3:compile
[INFO] | +- org.springframework:spring-aop:jar:5.3.4:compile
[INFO] | +- org.springframework.security:spring-security-config:jar:5.4.5:compile
[INFO] | | \- org.springframework.security:spring-security-core:jar:5.4.5:compile
[INFO] | \- org.springframework.security:spring-security-web:jar:5.4.5:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.4.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.4.3:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.11.4:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.4:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.11.4:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.4.3:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.43:compile
[INFO] | | +- org.glassfish:jakarta.el:jar:3.0.3:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.43:compile
[INFO] | +- org.springframework:spring-web:jar:5.3.4:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.3.4:compile
[INFO] +- mysql:mysql-connector-java:jar:8.0.23:runtime
[INFO] +- com.h2database:h2:jar:1.4.200:compile
[INFO] +- com.oracle.database.jdbc:ojdbc11:jar:21.4.0.0.1:compile
[INFO] +- com.oracle.database.jdbc:ucp11:jar:21.4.0.0.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.4.3:compile
[INFO] | \- com.zaxxer:HikariCP:jar:3.4.5:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.4.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.4.3:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.6:compile
[INFO] | +- jakarta.transaction:jakarta.transaction-api:jar:1.3.3:compile
[INFO] | +- jakarta.persistence:jakarta.persistence-api:jar:2.2.3:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.4.28.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.27.0-GA:compile
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.10.20:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.2.3.Final:compile
[INFO] | | +- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] | | +- org.dom4j:dom4j:jar:2.1.3:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.2.Final:compile
[INFO] | | \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.3:compile
[INFO] | | +- org.glassfish.jaxb:txw2:jar:2.3.3:compile
[INFO] | | \- com.sun.istack:istack-commons-runtime:jar:3.0.11:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:2.4.5:compile
[INFO] | | \- org.springframework.data:spring-data-commons:jar:2.4.5:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.3.4:compile
[INFO] +- org.springframework.boot:spring-boot-starter-mail:jar:2.4.3:compile
[INFO] | +- org.springframework:spring-context-support:jar:5.3.4:compile
[INFO] | \- com.sun.mail:jakarta.mail:jar:1.6.5:compile
[INFO] | \- com.sun.activation:jakarta.activation:jar:1.2.2:compile
[INFO] +- org.junit.jupiter:junit-jupiter:jar:5.6.0:test
[INFO] | +- org.junit.jupiter:junit-jupiter-api:jar:5.7.1:test
[INFO] | | +- org.opentest4j:opentest4j:jar:1.2.0:compile
[INFO] | | \- org.junit.platform:junit-platform-commons:jar:1.7.1:compile
[INFO] | +- org.junit.jupiter:junit-jupiter-params:jar:5.7.1:test
[INFO] | \- org.junit.jupiter:junit-jupiter-engine:jar:5.7.1:test
[INFO] +- org.mockito:mockito-junit-jupiter:jar:3.2.4:test
[INFO] | \- org.mockito:mockito-core:jar:3.6.28:compile
[INFO] | +- net.bytebuddy:byte-buddy-agent:jar:1.10.20:compile
[INFO] | \- org.objenesis:objenesis:jar:3.1:compile
[INFO] \- org.apache.pdfbox:pdfbox:jar:2.0.24:compile
[INFO] +- org.apache.pdfbox:fontbox:jar:2.0.24:compile
[INFO] \- commons-logging:commons-logging:jar:1.2:compile
[INFO] ------------------------------------------------------------------------
First upgrade your Spring Boot version (because a bit out of date or more accurate out of support) and second upgrade your Maven version (also out dated) ...also define the junit-bom to define the correct junit jupiter version like this:
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>5.8.2</version>
<scope>import</scope>
<type>pom</type>
</dependency>
This has to be done before the import of the spring boot dependencies to overwrite correctly the version which is provided by spring-boot-dependencies.
Also you are not using spring boot as a parent which means you have to define all needed maven plugins. Based on that you are using the default bindings which are defined via the packaging binding.
I strongly recommend to define all needed plugins in your plugin with the appropriate versions which makes it sure to use defined versions of plugins which will never change in the future. This makes your build repeatable.
The first versions which correctly support JUnit Jupiter is maven-surefire-plugin (2.22.2) ... I strongly recommend to use the most recent version.
More details explained in two videos one and the second one
My project does not use a parent nor maven-surefire-plugin
How are you going to run junit test without maven-surefire-plugin? :)
Actually, maven has a concept of default bindings when for particular packaging it predefines plugins and versions. In case of Apache Maven 3.6.3 the default version of maven-surefire-plugin is 2.12, basic support of junit-jupiter was introduced in 2.22 - you either need to setup maven-surefire-plugin or switch to recent version of maven.

java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.atDebug() with poi-ooxml

I have:
<dependencies>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-xml -->
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-xml</artifactId>
<version>2.13.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-jaxb-annotations -->
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jaxb-annotations</artifactId>
<version>2.13.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.2.2</version>
</dependency>
<dependency>
<groupId>com.company.commons</groupId>
<artifactId>commons-batch</artifactId>
<version>${company.commons.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>com.company.project</groupId>
<artifactId>project-domain</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
</dependencies>
in company-commons I have:
<dependencies>
<dependency>
<groupId>com.company.commons</groupId>
<artifactId>company-domain</artifactId>
<version>2.9.0-SNAPSHOT</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-quartz -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-quartz</artifactId>
<version>${spring.boot.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-batch -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-batch</artifactId>
<version>${spring.boot.version}</version>
</dependency>
</dependencies>
and in company-domain I have:
<dependencies>
<!-- https://mvnrepository.com/artifact/org.zalando/problem-spring-web-starter -->
<dependency>
<groupId>org.zalando</groupId>
<artifactId>problem-spring-web</artifactId>
<version>0.27.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.0.1-jre</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.9.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-jdbc -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
<version>${spring.boot.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-integration -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-integration</artifactId>
<version>${spring.boot.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>${spring.boot.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.security/spring-security-crypto -->
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-crypto</artifactId>
<version>4.2.2.RELEASE</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-jpa -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
<version>${spring.boot.version}</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-net/commons-net -->
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.6</version>
</dependency>
</dependencies>
${spring.boot.version} is 2.2.0.RELEASE
In a Spring Boot application and the following piece:
final InputStream stream = new URL(url).openStream();
final Workbook workbook = new HSSFWorkbook(stream);
fails with:
java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.atDebug()Lorg/apache/logging/log4j/LogBuilder;
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.parseRelationshipsPart(PackageRelationshipCollection.java:309)
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.<init>(PackageRelationshipCollection.java:160)
at org.apache.poi.openxml4j.opc.PackageRelationshipCollection.<init>(PackageRelationshipCollection.java:130)
at org.apache.poi.openxml4j.opc.PackagePart.loadRelationships(PackagePart.java:565)
at org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:745)
at org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:315)
at org.apache.poi.ooxml.util.PackageHelper.open(PackageHelper.java:59)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:289)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:285)
at com.company.project.MyParser.parse(MyParser.java:35)
at com.company.project.MyReader.process(MyReader.java:44)
at com.company.project.MySlaveStepReader.open(MySlaveStepReader.java:60)
at com.company.project.MySlaveStepReader$$FastClassBySpringCGLIB$$d02f818a.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:769)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)
at com.company.project.MySlaveStepReader$$EnhancerBySpringCGLIB$$e46cbc57.open(<generated>)
at org.springframework.batch.item.support.CompositeItemStream.open(CompositeItemStream.java:103)
at org.springframework.batch.core.step.item.ChunkMonitor.open(ChunkMonitor.java:114)
at org.springframework.batch.item.support.CompositeItemStream.open(CompositeItemStream.java:103)
at org.springframework.batch.core.step.tasklet.TaskletStep.open(TaskletStep.java:311)
at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:205)
at jdk.internal.reflect.GeneratedMethodAccessor223.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:136)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:124)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy121.execute(Unknown Source)
at org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler$1.call(TaskExecutorPartitionHandler.java:138)
at org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler$1.call(TaskExecutorPartitionHandler.java:135)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)
at org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler.doHandle(TaskExecutorPartitionHandler.java:103)
at org.springframework.batch.core.partition.support.AbstractPartitionHandler.handle(AbstractPartitionHandler.java:61)
at org.springframework.batch.core.partition.support.PartitionStep.doExecute(PartitionStep.java:106)
at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:208)
at org.springframework.batch.core.job.SimpleStepHandler.handleStep(SimpleStepHandler.java:148)
at org.springframework.batch.core.job.flow.JobFlowExecutor.executeStep(JobFlowExecutor.java:68)
at org.springframework.batch.core.job.flow.support.state.StepState.handle(StepState.java:68)
at org.springframework.batch.core.job.flow.support.SimpleFlow.resume(SimpleFlow.java:169)
at org.springframework.batch.core.job.flow.support.SimpleFlow.start(SimpleFlow.java:144)
at org.springframework.batch.core.job.flow.FlowJob.doExecute(FlowJob.java:137)
at org.springframework.batch.core.job.AbstractJob.execute(AbstractJob.java:319)
at org.springframework.batch.core.launch.support.SimpleJobLauncher$1.run(SimpleJobLauncher.java:147)
at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:50)
at org.springframework.batch.core.launch.support.SimpleJobLauncher.run(SimpleJobLauncher.java:140)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.batch.core.configuration.annotation.SimpleBatchConfiguration$PassthruAdvice.invoke(SimpleBatchConfiguration.java:127)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)
at com.sun.proxy.$Proxy114.run(Unknown Source)
at com.company.project.MyTaskLauncher$MyTaskLauncherBean.executeInternal(MyTaskLauncher.java:71)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
The output for mvn dependency:tree is:
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # project-batch ---
[INFO] com.company.project:project-batch:jar:0.1.0-SNAPSHOT
[INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.13.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.13.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.13.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.13.2:compile
[INFO] | +- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile
[INFO] | \- com.fasterxml.woodstox:woodstox-core:jar:6.2.7:compile
[INFO] +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.13.2:compile
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO] | \- jakarta.activation:jakarta.activation-api:jar:1.2.1:compile
[INFO] +- org.apache.poi:poi:jar:5.2.2:compile
[INFO] | +- commons-codec:commons-codec:jar:1.15:compile
[INFO] | +- org.apache.commons:commons-collections4:jar:4.4:compile
[INFO] | +- org.apache.commons:commons-math3:jar:3.6.1:compile
[INFO] | +- commons-io:commons-io:jar:2.11.0:compile
[INFO] | +- com.zaxxer:SparseBitSet:jar:1.2:compile
[INFO] | \- org.apache.logging.log4j:log4j-api:jar:2.17.2:compile
[INFO] +- com.company.commons:commons-batch:jar:2.9.0-SNAPSHOT:compile
[INFO] | +- com.company.commons:commons-domain:jar:2.9.0-SNAPSHOT:compile
[INFO] | | +- org.zalando:problem-spring-web:jar:0.27.0:compile
[INFO] | | | +- org.zalando:problem-violations:jar:0.27.0:compile
[INFO] | | | +- org.zalando:problem-spring-common:jar:0.27.0:compile
[INFO] | | | +- org.apiguardian:apiguardian-api:jar:1.1.2:compile
[INFO] | | | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
[INFO] | | | +- org.slf4j:slf4j-api:jar:1.7.32:compile
[INFO] | | | +- org.zalando:problem:jar:0.26.0:compile
[INFO] | | | +- org.zalando:jackson-datatype-problem:jar:0.26.0:compile
[INFO] | | | +- org.zalando:faux-pas:jar:0.9.0:compile
[INFO] | | | \- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | | +- com.google.guava:guava:jar:31.0.1-jre:compile
[INFO] | | | +- com.google.guava:failureaccess:jar:1.0.1:compile
[INFO] | | | +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
[INFO] | | | +- org.checkerframework:checker-qual:jar:3.12.0:compile
[INFO] | | | +- com.google.errorprone:error_prone_annotations:jar:2.7.1:compile
[INFO] | | | \- com.google.j2objc:j2objc-annotations:jar:1.3:compile
[INFO] | | +- commons-beanutils:commons-beanutils:jar:1.9.3:compile
[INFO] | | | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | | | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.2.0.RELEASE:compile
[INFO] | | | +- com.zaxxer:HikariCP:jar:3.4.1:compile
[INFO] | | | \- org.springframework:spring-jdbc:jar:5.2.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-integration:jar:2.2.0.RELEASE:compile
[INFO] | | | \- org.springframework.integration:spring-integration-core:jar:5.2.0.RELEASE:compile
[INFO] | | | +- io.projectreactor:reactor-core:jar:3.3.0.RELEASE:compile
[INFO] | | | | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile
[INFO] | | | +- org.springframework.retry:spring-retry:jar:1.2.4.RELEASE:compile
[INFO] | | | \- org.springframework:spring-messaging:jar:5.2.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-actuator:jar:2.2.0.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.2.0.RELEASE:compile
[INFO] | | | | \- org.springframework.boot:spring-boot-actuator:jar:2.2.0.RELEASE:compile
[INFO] | | | \- io.micrometer:micrometer-core:jar:1.3.0:compile
[INFO] | | | +- org.hdrhistogram:HdrHistogram:jar:2.1.11:compile
[INFO] | | | \- org.latencyutils:LatencyUtils:jar:2.0.3:compile
[INFO] | | +- org.springframework.security:spring-security-crypto:jar:4.2.2.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.2.0.RELEASE:compile
[INFO] | | | +- jakarta.persistence:jakarta.persistence-api:jar:2.2.3:compile
[INFO] | | | +- jakarta.transaction:jakarta.transaction-api:jar:1.3.3:compile
[INFO] | | | +- org.hibernate:hibernate-core:jar:5.4.6.Final:compile
[INFO] | | | | +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | | | | +- org.javassist:javassist:jar:3.24.0-GA:compile
[INFO] | | | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | | | +- org.jboss:jandex:jar:2.0.5.Final:compile
[INFO] | | | | +- com.fasterxml:classmate:jar:1.3.4:compile
[INFO] | | | | +- org.dom4j:dom4j:jar:2.1.1:compile
[INFO] | | | | +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.0.Final:compile
[INFO] | | | | \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.1:compile
[INFO] | | | | +- org.glassfish.jaxb:txw2:jar:2.3.1:compile
[INFO] | | | | +- com.sun.istack:istack-commons-runtime:jar:3.0.7:compile
[INFO] | | | | +- org.jvnet.staxex:stax-ex:jar:1.8:compile
[INFO] | | | | \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.15:compile
[INFO] | | | +- org.springframework.data:spring-data-jpa:jar:2.2.0.RELEASE:compile
[INFO] | | | | +- org.springframework.data:spring-data-commons:jar:2.2.0.RELEASE:compile
[INFO] | | | | \- org.springframework:spring-orm:jar:5.2.0.RELEASE:compile
[INFO] | | | \- org.springframework:spring-aspects:jar:5.2.0.RELEASE:compile
[INFO] | | \- commons-net:commons-net:jar:3.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-quartz:jar:2.2.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter:jar:2.2.0.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot:jar:2.2.0.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.2.0.RELEASE:compile
[INFO] | | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.2.0.RELEASE:compile
[INFO] | | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.12.1:compile
[INFO] | | | | \- org.slf4j:jul-to-slf4j:jar:1.7.28:compile
[INFO] | | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | | | \- org.yaml:snakeyaml:jar:1.25:runtime
[INFO] | | +- org.springframework:spring-context-support:jar:5.2.0.RELEASE:compile
[INFO] | | | +- org.springframework:spring-beans:jar:5.2.0.RELEASE:compile
[INFO] | | | \- org.springframework:spring-context:jar:5.2.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-tx:jar:5.2.0.RELEASE:compile
[INFO] | | \- org.quartz-scheduler:quartz:jar:2.3.1:compile
[INFO] | | \- com.mchange:mchange-commons-java:jar:0.2.15:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-batch:jar:2.2.0.RELEASE:compile
[INFO] | | \- org.springframework.batch:spring-batch-core:jar:4.2.0.RELEASE:compile
[INFO] | | +- javax.batch:javax.batch-api:jar:1.0:compile
[INFO] | | +- org.codehaus.jettison:jettison:jar:1.2:compile
[INFO] | | \- org.springframework.batch:spring-batch-infrastructure:jar:4.2.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-web:jar:2.2.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-json:jar:2.2.0.RELEASE:compile
[INFO] | | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.0:compile
[INFO] | | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.0:compile
[INFO] | | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.10.0:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.2.0.RELEASE:compile
[INFO] | | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.27:compile
[INFO] | | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.27:compile
[INFO] | | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.27:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-validation:jar:2.2.0.RELEASE:compile
[INFO] | | | +- jakarta.validation:jakarta.validation-api:jar:2.0.1:compile
[INFO] | | | \- org.hibernate.validator:hibernate-validator:jar:6.0.17.Final:compile
[INFO] | | +- org.springframework:spring-web:jar:5.2.0.RELEASE:compile
[INFO] | | \- org.springframework:spring-webmvc:jar:5.2.0.RELEASE:compile
[INFO] | | \- org.springframework:spring-expression:jar:5.2.0.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-test:jar:2.2.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-test:jar:2.2.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.2.0.RELEASE:compile
[INFO] | | +- com.jayway.jsonpath:json-path:jar:2.4.0:compile
[INFO] | | | \- net.minidev:json-smart:jar:2.3:compile
[INFO] | | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | | | \- org.ow2.asm:asm:jar:5.0.4:compile
[INFO] | | +- org.junit.jupiter:junit-jupiter:jar:5.5.2:compile
[INFO] | | | +- org.junit.jupiter:junit-jupiter-api:jar:5.5.2:compile
[INFO] | | | | +- org.opentest4j:opentest4j:jar:1.2.0:compile
[INFO] | | | | \- org.junit.platform:junit-platform-commons:jar:1.5.2:compile
[INFO] | | | +- org.junit.jupiter:junit-jupiter-params:jar:5.5.2:compile
[INFO] | | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.5.2:runtime
[INFO] | | +- org.junit.vintage:junit-vintage-engine:jar:5.5.2:compile
[INFO] | | | +- org.junit.platform:junit-platform-engine:jar:1.5.2:compile
[INFO] | | | \- junit:junit:jar:4.12:compile
[INFO] | | +- org.mockito:mockito-junit-jupiter:jar:3.1.0:compile
[INFO] | | +- org.assertj:assertj-core:jar:3.13.2:compile
[INFO] | | +- org.hamcrest:hamcrest:jar:2.1:compile
[INFO] | | +- org.mockito:mockito-core:jar:3.1.0:compile
[INFO] | | | +- net.bytebuddy:byte-buddy:jar:1.9.10:compile
[INFO] | | | +- net.bytebuddy:byte-buddy-agent:jar:1.9.10:compile
[INFO] | | | \- org.objenesis:objenesis:jar:2.6:compile
[INFO] | | +- org.skyscreamer:jsonassert:jar:1.5.0:compile
[INFO] | | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:compile
[INFO] | | +- org.springframework:spring-core:jar:5.2.0.RELEASE:compile
[INFO] | | | \- org.springframework:spring-jcl:jar:5.2.0.RELEASE:compile
[INFO] | | +- org.springframework:spring-test:jar:5.2.0.RELEASE:compile
[INFO] | | \- org.xmlunit:xmlunit-core:jar:2.6.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-cache:jar:2.2.0.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-starter-aop:jar:2.2.0.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.2.0.RELEASE:compile
[INFO] | \- org.aspectj:aspectjweaver:jar:1.9.4:compile
[INFO] +- org.apache.commons:commons-csv:jar:1.8:compile
[INFO] +- com.company.project:project-domain:jar:0.1.0-SNAPSHOT:compile
[INFO] \- org.projectlombok:lombok:jar:1.18.22:provided
The solution as described here and playing with versions yields to no result.
What am I missing?
The spring-boot-starter version 2.2.0 dependency was bringing log4j related dependencies with 2.12.1 version, which, did not have atDebug() method. So:
<dependencyManagement>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-to-slf4j -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
<version>2.17.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.17.2</version>
</dependency>
</dependencies>
</dependencyManagement>
resolved the issue.

Maven dependency doesn't bring down correct Selenium version 3.4.0

I have a core maven project A which has all the Selenium Firefox driver set up, the pom has
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.4.0</version>
</dependency>
There is project B, two cases as below:
Case 1: In project B, set project A as dependency in pom.xml, the test always try to connect to Selenium 2.53.1. I ran as mvn dependency:tree, the project A only brings Selenium 2.53.1.
Case 2: In eclipse, put project A as "Required projects on the build path" via Properties - Java Build Path - Projects tab, then everything works fine, my test in project B is able to start up Firefox 53.0 using Selenium 3.4.0.
Any idea on that?
Also in eclipse Dependency Hierarchy tab for project B, it shows selenium-java: 2.53.1 (managed from 3.4.0) [test], not sure what is forcing to use the version 2.53.1.
This is the mvn dependency:tree output, selenium-core:1.0.2 is the core project A I mentioned above
[INFO] +- org.mockito:mockito-core:jar:1.10.19:test
[INFO] | \- org.objenesis:objenesis:jar:2.1:test
[INFO] +- nl.jqno.equalsverifier:equalsverifier:jar:1.5:test
[INFO] | +- cglib:cglib:jar:3.1:test
[INFO] | \- org.ow2.asm:asm:jar:5.0.3:test
[INFO] +- com.mycompany:selenium-core:jar:1.0.2:test
[INFO] | +- org.seleniumhq.selenium:selenium-java:jar:2.53.1:test
[INFO] | | +- org.seleniumhq.selenium:selenium-chrome-
driver:jar:2.53.1:test
[INFO] | | | \- org.seleniumhq.selenium:selenium-remote-
driver:jar:2.53.1:test
[INFO] | | | +- cglib:cglib-nodep:jar:2.1_3:test
[INFO] | | | +- com.google.code.gson:gson:jar:2.8.0:test
[INFO] | | | \- org.seleniumhq.selenium:selenium-
api:jar:2.53.1:test
[INFO] | | +- org.seleniumhq.selenium:selenium-edge-
driver:jar:2.53.1:test
[INFO] | | | \- org.apache.commons:commons-exec:jar:1.3:test
[INFO] | | +- org.seleniumhq.selenium:htmlunit-driver:jar:2.21:test
[INFO] | | | \- net.sourceforge.htmlunit:htmlunit:jar:2.21:test
[INFO] | | | +- net.sourceforge.htmlunit:htmlunit-core-
js:jar:2.17:test
[INFO] | | | +- net.sourceforge.htmlunit:neko-
htmlunit:jar:2.21:test
[INFO] | | | +-
net.sourceforge.cssparser:cssparser:jar:0.9.18:test
[INFO] | | | | \- org.w3c.css:sac:jar:1.3:test
[INFO] | | | \- org.eclipse.jetty.websocket:websocket-
client:jar:9.4.1.v20170120:test
[INFO] | | | +- org.eclipse.jetty:jetty-
util:jar:9.4.1.v20170120:test
[INFO] | | | +- org.eclipse.jetty:jetty-
io:jar:9.4.1.v20170120:test
[INFO] | | | +- org.eclipse.jetty:jetty-
client:jar:9.4.1.v20170120:test
[INFO] | | | | \- org.eclipse.jetty:jetty-
http:jar:9.4.1.v20170120:test
[INFO] | | | \- org.eclipse.jetty.websocket:websocket-
common:jar:9.4.1.v20170120:test
[INFO] | | | \- org.eclipse.jetty.websocket:websocket-
api:jar:9.4.1.v20170120:test
[INFO] | | +- org.seleniumhq.selenium:selenium-firefox-
driver:jar:2.53.1:test
[INFO] | | +- org.seleniumhq.selenium:selenium-ie-
driver:jar:2.53.1:test
[INFO] | | | +- net.java.dev.jna:jna:jar:4.2.2:test
[INFO] | | | \- net.java.dev.jna:jna-platform:jar:4.1.0:test
[INFO] | | +- org.seleniumhq.selenium:selenium-safari-
driver:jar:2.53.1:test
[INFO] | | | \- io.netty:netty:jar:3.5.7.Final:test
[INFO] | | +- org.seleniumhq.selenium:selenium-
support:jar:2.53.1:test
[INFO] | | \- org.seleniumhq.selenium:selenium-leg-rc:jar:2.53.1:test

Arquillian missing dependency running tests

This question has been asked many times but noone of the answers (that I found) seems to help.
So, I have a wildfly-server running locally and then run a maven-command. From the server logs it seems to deploy the war-files and it doesn't complain at all. In maven it seems to run the tests but all tests returns:
<<< ERROR! java.lang.NoClassDefFoundError: org.junit.runner.Runner
So, I look in the deployed war-file and there I find junit- and arquillian-files that contains org/junit/runner/Runner.class. So, that shouldn't cause the problem.
Next I run mvn dependency:tree to verify that the maven-command and the junit and arquallian dependencies are there too. I mess around with for those dependencies but doesn't get any changes.
The only way, that I found, to change the error has been to change the junit-version from 4.12 to 4.8 but I don't know if it is a step forward when it compains about another class (org.junit.rules.RunRules).
Relevant dependencies in pom-file:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-arquillian-container-remote</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-depchain</artifactId>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.shrinkwrap.resolver</groupId>
<artifactId>shrinkwrap-resolver-impl-maven</artifactId>
<scope>test</scope>
</dependency>
Dump of the relevant files deployed to wildfly:
/WEB-INF/lib/querydsl-jpa-4.1.4.jar
/WEB-INF/lib/querydsl-core-4.1.4.jar
/WEB-INF/lib/guava-21.0.jar
/WEB-INF/lib/jsr305-3.0.1.jar
/WEB-INF/lib/mysema-commons-lang-0.2.4.jar
/WEB-INF/lib/bridge-method-annotation-1.14.jar
/WEB-INF/lib/slf4j-api-1.7.24.jar
/WEB-INF/lib/querydsl-sql-4.1.4.jar
/WEB-INF/lib/joda-time-2.9.7.jar
/WEB-INF/lib/validation-api-1.1.0.Final.jar
/WEB-INF/lib/org.apache.servicemix.bundles.javax-inject-1_2.jar
/WEB-INF/lib/log4j-api-2.8.1.jar
/WEB-INF/lib/log4j-core-2.8.1.jar
/WEB-INF/lib/disruptor-3.3.6.jar
/WEB-INF/lib/commons-collections4-4.1.jar
/WEB-INF/lib/logging-util-3.0.0.11-SNAPSHOT.jar
/WEB-INF/lib/arquillian-junit-container-1.1.13.Final.jar
/WEB-INF/lib/arquillian-junit-core-1.1.13.Final.jar
/WEB-INF/lib/arquillian-test-api-1.1.13.Final.jar
/WEB-INF/lib/arquillian-core-api-1.1.13.Final.jar
/WEB-INF/lib/arquillian-test-spi-1.1.13.Final.jar
/WEB-INF/lib/arquillian-core-spi-1.1.13.Final.jar
/WEB-INF/lib/arquillian-container-test-api-1.1.13.Final.jar
/WEB-INF/lib/shrinkwrap-api-1.2.6.jar
/WEB-INF/lib/arquillian-container-test-spi-1.1.13.Final.jar
/WEB-INF/lib/arquillian-container-spi-1.1.13.Final.jar
/WEB-INF/lib/shrinkwrap-descriptors-api-base-2.0.0-alpha-10.jar
/WEB-INF/lib/arquillian-core-impl-base-1.1.13.Final.jar
/WEB-INF/lib/arquillian-test-impl-base-1.1.13.Final.jar
/WEB-INF/lib/arquillian-container-impl-base-1.1.13.Final.jar
/WEB-INF/lib/arquillian-config-api-1.1.13.Final.jar
/WEB-INF/lib/arquillian-config-impl-base-1.1.13.Final.jar
/WEB-INF/lib/shrinkwrap-descriptors-spi-2.0.0-alpha-10.jar
/WEB-INF/lib/arquillian-container-test-impl-base-1.1.13.Final.jar
/WEB-INF/lib/shrinkwrap-impl-base-1.2.6.jar
/WEB-INF/lib/shrinkwrap-spi-1.2.6.jar
/WEB-INF/lib/junit-4.12.jar
Part of the mvn dependency:tree output
[INFO] +- org.jmockit:jmockit:jar:1.22:test
[INFO] +- junit:junit:jar:4.12:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.hamcrest:hamcrest-all:jar:1.3:test
[INFO] +- com.h2database:h2:jar:1.4.193:test
[INFO] +- com.openpojo:openpojo:jar:0.8.4:test
[INFO] +- org.hibernate:hibernate-validator:jar:5.1.3.Final:test
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:provided
[INFO] | \- com.fasterxml:classmate:jar:1.3.3:provided
[INFO] +- com.sun.el:el-ri:jar:1.0:test
[INFO] +- org.jboss.arquillian.junit:arquillian-junit-core:jar:1.1.13.Final:test
[INFO] | \- org.jboss.arquillian.test:arquillian-test-spi:jar:1.1.13.Final:test
[INFO] | \- org.jboss.arquillian.core:arquillian-core-spi:jar:1.1.13.Final:test
[INFO] +- org.jboss.arquillian.junit:arquillian-junit-container:jar:1.1.13.Final:test
[INFO] | +- org.jboss.arquillian.test:arquillian-test-api:jar:1.1.13.Final:test
[INFO] | +- org.jboss.arquillian.container:arquillian-container-test-api:jar:1.1.13.Final:test
[INFO] | | \- org.jboss.shrinkwrap:shrinkwrap-api:jar:1.2.6:test
[INFO] | +- org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.1.13.Final:test
[INFO] | | \- org.jboss.arquillian.container:arquillian-container-spi:jar:1.1.13.Final:test
[INFO] | | \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-base:jar:2.0.0-alpha-10:test
[INFO] | +- org.jboss.arquillian.core:arquillian-core-impl-base:jar:1.1.13.Final:test
[INFO] | +- org.jboss.arquillian.test:arquillian-test-impl-base:jar:1.1.13.Final:test
[INFO] | +- org.jboss.arquillian.container:arquillian-container-impl-base:jar:1.1.13.Final:test
[INFO] | | +- org.jboss.arquillian.config:arquillian-config-api:jar:1.1.13.Final:test
[INFO] | | +- org.jboss.arquillian.config:arquillian-config-impl-base:jar:1.1.13.Final:test
[INFO] | | \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-spi:jar:2.0.0-alpha-10:test
[INFO] | +- org.jboss.arquillian.container:arquillian-container-test-impl-base:jar:1.1.13.Final:test
[INFO] | \- org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.2.6:test
[INFO] | \- org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.2.6:test
[INFO] +- org.wildfly:wildfly-arquillian-container-remote:jar:8.2.1.Final:test
[INFO] | +- org.wildfly:wildfly-arquillian-common:jar:8.2.1.Final:test
[INFO] | | +- org.jboss.arquillian.testenricher:arquillian-testenricher-cdi:jar:1.1.13.Final:test
[INFO] | | +- org.jboss.arquillian.testenricher:arquillian-testenricher-ejb:jar:1.1.13.Final:test
[INFO] | | +- org.jboss.arquillian.testenricher:arquillian-testenricher-initialcontext:jar:1.1.13.Final:test
[INFO] | | +- org.jboss.arquillian.testenricher:arquillian-testenricher-osgi:jar:2.1.0.CR2:test
[INFO] | | +- org.jboss.arquillian.testenricher:arquillian-testenricher-resource:jar:1.1.13.Final:test
[INFO] | | +- org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar:1.1.13.Final:test
[INFO] | | +- org.wildfly:wildfly-arquillian-testenricher-msc:jar:8.2.1.Final:test
[INFO] | | | +- org.wildfly:wildfly-server:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-controller:jar:8.2.1.Final:test
[INFO] | | | | | +- org.wildfly:wildfly-core-security:jar:8.2.1.Final:test
[INFO] | | | | | | \- org.wildfly:wildfly-core-security-api:jar:8.2.1.Final:test
[INFO] | | | | | \- org.jboss:staxmapper:jar:1.1.0.Final:test
[INFO] | | | | +- org.wildfly:wildfly-domain-http-interface:jar:8.2.1.Final:test
[INFO] | | | | | \- org.wildfly:wildfly-domain-management:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-deployment-repository:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-patching:jar:8.2.1.Final:test
[INFO] | | | | | \- org.wildfly:wildfly-cli:jar:8.2.1.Final:test
[INFO] | | | | | +- org.jboss.aesh:aesh:jar:0.33.11:test
[INFO] | | | | | | \- org.fusesource.jansi:jansi:jar:1.9:test
[INFO] | | | | | \- sun.jdk:jconsole:jar:jdk:system
[INFO] | | | | +- org.wildfly:wildfly-platform-mbean:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-process-controller:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-remoting:jar:8.2.1.Final:test
[INFO] | | | | | \- org.wildfly:wildfly-io:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-network:jar:8.2.1.Final:test
[INFO] | | | | +- org.wildfly:wildfly-version:jar:8.2.1.Final:test
[INFO] | | | | +- org.jboss:jandex:jar:1.2.1.Final:test
[INFO] | | | | +- org.jboss.invocation:jboss-invocation:jar:1.2.1.Final:test
[INFO] | | | | +- org.jboss.logmanager:jboss-logmanager:jar:1.5.2.Final:test
[INFO] | | | | +- org.jboss.modules:jboss-modules:jar:1.3.3.Final:test
[INFO] | | | | +- org.jboss.stdio:jboss-stdio:jar:1.0.2.GA:test
[INFO] | | | | +- org.jboss:jboss-vfs:jar:3.2.5.Final:test
[INFO] | | | | \- io.undertow:undertow-core:jar:1.1.8.Final:test
[INFO] | | | +- javax.inject:javax.inject:jar:1:provided
[INFO] | | | \- org.jboss.msc:jboss-msc:jar:1.2.2.Final:test
[INFO] | | +- org.wildfly:wildfly-controller-client:jar:8.2.1.Final:test
[INFO] | | | +- org.wildfly:wildfly-protocol:jar:8.2.1.Final:test
[INFO] | | | +- org.jboss:jboss-dmr:jar:1.2.0.Final:test
[INFO] | | | \- org.jboss.threads:jboss-threads:jar:2.1.1.Final:test
[INFO] | | +- org.wildfly:wildfly-jmx:jar:8.2.1.Final:test
[INFO] | | | \- org.jboss:jboss-common-core:jar:2.2.22.GA:test
[INFO] | | +- org.jboss.remotingjmx:remoting-jmx:jar:2.0.0.Final:test
[INFO] | | | +- org.jboss.remoting:jboss-remoting:jar:4.0.0.Beta3:test
[INFO] | | | +- org.jboss.xnio:xnio-api:jar:3.2.0.Beta4:test
[INFO] | | | \- org.jboss.xnio:xnio-nio:jar:3.2.0.Beta4:test
[INFO] | | +- org.jboss.sasl:jboss-sasl:jar:1.0.4.Final:test
[INFO] | | \- org.osgi:org.osgi.core:jar:5.0.0:test
[INFO] | +- org.wildfly:wildfly-arquillian-protocol-jmx:jar:8.2.1.Final:test
[INFO] | | +- org.wildfly.security:wildfly-security-manager:jar:1.0.0.Final:test
[INFO] | | +- org.jboss.arquillian.protocol:arquillian-protocol-jmx:jar:1.1.13.Final:test
[INFO] | | \- org.jboss.osgi.metadata:jbosgi-metadata:jar:3.0.1.Final:test
[INFO] | +- org.jboss.marshalling:jboss-marshalling-river:jar:1.4.9.Final:test
[INFO] | | \- org.jboss.marshalling:jboss-marshalling:jar:1.4.9.Final:test
[INFO] | +- org.jboss.arquillian.core:arquillian-core-api:jar:1.1.13.Final:test
[INFO] | \- org.wildfly:wildfly-build-config:jar:8.2.1.Final:test
[INFO] +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:pom:2.2.4:test
[INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:2.2.4:test
[INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi:jar:2.2.4:test
[INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:2.2.4:test
[INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven:jar:2.2.4:test
[INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven-archive:jar:2.2.4:test
[INFO] | \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven-archive:jar:2.2.4:test
[INFO] | +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven-archive:jar:2.2.4:test
[INFO] | +- org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.0.M1:test
[INFO] | | +- javax.enterprise:cdi-api:jar:1.0:test
[INFO] | | | \- javax.annotation:jsr250-api:jar:1.0:test
[INFO] | | \- org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.0.M1:test
[INFO] | \- org.codehaus.plexus:plexus-compiler-javac:jar:2.3:test
[INFO] | \- org.codehaus.plexus:plexus-compiler-api:jar:2.3:test
[INFO] +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:jar:2.2.4:test
[INFO] | +- org.eclipse.aether:aether-api:jar:1.0.0.v20140518:test
[INFO] | +- org.eclipse.aether:aether-impl:jar:1.0.0.v20140518:test
[INFO] | +- org.eclipse.aether:aether-spi:jar:1.0.0.v20140518:test
[INFO] | +- org.eclipse.aether:aether-util:jar:1.0.0.v20140518:test
[INFO] | +- org.eclipse.aether:aether-connector-basic:jar:1.0.0.v20140518:test
[INFO] | +- org.eclipse.aether:aether-transport-wagon:jar:1.0.0.v20140518:test
[INFO] | +- org.apache.maven:maven-aether-provider:jar:3.2.5:test
[INFO] | +- org.apache.maven:maven-model:jar:3.2.5:test
[INFO] | +- org.apache.maven:maven-model-builder:jar:3.2.5:test
[INFO] | | \- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:test
[INFO] | +- org.apache.maven:maven-repository-metadata:jar:3.2.5:test
[INFO] | +- org.apache.maven:maven-settings:jar:3.2.5:test
[INFO] | +- org.apache.maven:maven-settings-builder:jar:3.2.5:test
[INFO] | +- org.codehaus.plexus:plexus-interpolation:jar:1.21:test
[INFO] | +- org.codehaus.plexus:plexus-utils:jar:3.0.20:test
[INFO] | +- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:test
[INFO] | | \- org.sonatype.plexus:plexus-cipher:jar:1.4:test
[INFO] | +- org.apache.maven.wagon:wagon-provider-api:jar:2.6:test
[INFO] | +- org.apache.maven.wagon:wagon-file:jar:2.6:test
[INFO] | \- org.apache.maven.wagon:wagon-http-lightweight:jar:2.6:test
[INFO] | \- org.apache.maven.wagon:wagon-http-shared:jar:2.6:test
[INFO] | +- org.jsoup:jsoup:jar:1.7.2:test
[INFO] | \- commons-io:commons-io:jar:2.5:provided

Resources