Updating Kafka version over 3.2.3 crashes embeddedKafka unit tests - java

Edit: As suggested in the comments I have removed <version> from the spring artifacts and removed the tomcat 10 artifacts. I updated the pom.xml file accordingly but the same issue persists.
We are working on a Spring Voot application that uses Spring Kafka and embeddedKafka for some unit tests. Recently, kafka-clients requires 3.4.0 to overcome a vulnerability and I updated the version using <kafka.version>3.4.0</kafka.version> in the pom.xml file.
If I do this update and run the tests I get the following error:
Caused by: java.lang.ClassNotFoundException: kafka.common.KafkaException
After some digging I understand that this usually comes from dependencies version mismatches. This fails all the unit tests that use #EmbeddedKafka.
I do not enforce any versions on the spring-kafka-test artifact and only use the kafka version property in pom.xml, so I let Spring Boot handle the dependencies matches.
This is my pom.xml file at the moment (updated)
<dependencies>
<!--CF dependencies-->
<dependency>
<groupId>io.pivotal.cfenv</groupId>
<artifactId>java-cfenv-boot</artifactId>
<version>2.4.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
</dependency>
<!--Spring dependencies-->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.6.11</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>31.1-jre</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.32</version>
</dependency>
<dependency>
<groupId>com.sap.cloud.security.xsuaa</groupId>
<artifactId>xsuaa-spring-boot-starter</artifactId>
<version>${sap.cloud.security.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
<scope>provided</scope>
</dependency>
<!--ETD Commons-->
<dependency>
<groupId>com.sap.etd</groupId>
<artifactId>etd_commons</artifactId>
<version>2.12.4</version>
<exclusions>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.18.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.18.0</version>
</dependency>
<dependency>
<groupId>com.sap.etd.cloud</groupId>
<artifactId>streaming-commons</artifactId>
<version>1.21.0</version>
</dependency>
<dependency>
<groupId>org.springframework.retry</groupId>
<artifactId>spring-retry</artifactId>
</dependency>
<!--Utils-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.el</artifactId>
<version>4.0.2</version>
</dependency>
<!--Testing-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.glassfish</groupId>
<artifactId>jakarta.el</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>3.0.0-M5</version>
<scope>test</scope>
<type>maven-plugin</type>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.13.4.2</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-annotations-api</artifactId>
<version>9.0.71</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>9.0.71</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-websocket</artifactId>
<version>9.0.71</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-crypto</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-el</artifactId>
<version>9.0.68</version>
</dependency>
</dependencies>
I want to update to kafka 3.4.0, but after a couple of days of searching for answers and trying different artifact versioning, I am stuck.
I tried to only add the artifact for kafka-clients with the required version at first ,but that fails the tests, then after a couple of searches I saw that I should just add the artifacts with no versioning and handle the kafka version from the kafka.version property in pom.xml, but that didn't do the trick.

See the documentation for how to override the versions of all dependencies:
https://docs.spring.io/spring-kafka/docs/current/reference/html/#update-deps
<kafka.version>3.4.0</kafka.version>
Note that the vulnerability is only in Kafka Connect so it's only an issue if your app is using both Spring for Apache Kafka and Kafka Connect.
EDIT
This works fine for me...
package com.example.demo;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.kafka.test.context.EmbeddedKafka;
#SpringBootTest
#EmbeddedKafka(bootstrapServersProperty = "spring.kafka.bootstrap-servers")
class So75458160ApplicationTests {
#Test
void contextLoads() {
}
}
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.0.2</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>so75458160</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>so75458160</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>17</java.version>
<kafka.version>3.4.0</kafka.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
2023-02-16T11:01:23.097-05:00 INFO 18470 --- [ main] o.a.k.clients.consumer.ConsumerConfig : ConsumerConfig values:
allow.auto.create.topics = true
auto.commit.interval.ms = 5000
auto.include.jmx.reporter = true
auto.offset.reset = latest
bootstrap.servers = [127.0.0.1:62159]
...
% ./mvnw dependency:tree
...
[INFO] --- maven-dependency-plugin:3.3.0:tree (default-cli) # so75458160 ---
[INFO] com.example:so75458160:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter:jar:3.0.2:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:3.0.2:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:3.0.2:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:3.0.2:compile
[INFO] | | +- ch.qos.logback:logback-classic:jar:1.4.5:compile
[INFO] | | | \- ch.qos.logback:logback-core:jar:1.4.5:compile
[INFO] | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.19.0:compile
[INFO] | | | \- org.apache.logging.log4j:log4j-api:jar:2.19.0:compile
[INFO] | | \- org.slf4j:jul-to-slf4j:jar:2.0.6:compile
[INFO] | +- jakarta.annotation:jakarta.annotation-api:jar:2.1.1:compile
[INFO] | +- org.springframework:spring-core:jar:6.0.4:compile
[INFO] | | \- org.springframework:spring-jcl:jar:6.0.4:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.33:compile
[INFO] +- org.springframework.kafka:spring-kafka:jar:3.0.2:compile
[INFO] | +- org.springframework:spring-context:jar:6.0.4:compile
[INFO] | | +- org.springframework:spring-aop:jar:6.0.4:compile
[INFO] | | +- org.springframework:spring-beans:jar:6.0.4:compile
[INFO] | | \- org.springframework:spring-expression:jar:6.0.4:compile
[INFO] | +- org.springframework:spring-messaging:jar:6.0.4:compile
[INFO] | +- org.springframework:spring-tx:jar:6.0.4:compile
[INFO] | +- org.springframework.retry:spring-retry:jar:2.0.0:compile
[INFO] | +- org.apache.kafka:kafka-clients:jar:3.4.0:compile
[INFO] | | +- com.github.luben:zstd-jni:jar:1.5.2-1:runtime
[INFO] | | +- org.lz4:lz4-java:jar:1.8.0:runtime
[INFO] | | +- org.xerial.snappy:snappy-java:jar:1.1.8.4:runtime
[INFO] | | \- org.slf4j:slf4j-api:jar:2.0.6:compile
[INFO] | +- io.micrometer:micrometer-observation:jar:1.10.3:compile
[INFO] | | \- io.micrometer:micrometer-commons:jar:1.10.3:compile
[INFO] | \- com.google.code.findbugs:jsr305:jar:3.0.2:runtime
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:3.0.2:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:3.0.2:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:3.0.2:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.7.0:test
[INFO] | | \- net.minidev:json-smart:jar:2.4.8:test
[INFO] | | \- net.minidev:accessors-smart:jar:2.4.8:test
[INFO] | | \- org.ow2.asm:asm:jar:9.1:test
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:4.0.0:test
[INFO] | | \- jakarta.activation:jakarta.activation-api:jar:2.1.1:test
[INFO] | +- org.assertj:assertj-core:jar:3.23.1:test
[INFO] | | \- net.bytebuddy:byte-buddy:jar:1.12.22:test
[INFO] | +- org.hamcrest:hamcrest:jar:2.2:test
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.9.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.9.2:test
[INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.9.2:test
[INFO] | +- org.mockito:mockito-core:jar:4.8.1:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.12.22:test
[INFO] | | \- org.objenesis:objenesis:jar:3.2:test
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:4.8.1:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.1:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-test:jar:6.0.4:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.9.1:test
[INFO] \- org.springframework.kafka:spring-kafka-test:jar:3.0.2:test
[INFO] +- org.apache.zookeeper:zookeeper:jar:3.6.3:test
[INFO] | +- org.apache.zookeeper:zookeeper-jute:jar:3.6.3:test
[INFO] | +- org.apache.yetus:audience-annotations:jar:0.5.0:test
[INFO] | +- io.netty:netty-handler:jar:4.1.87.Final:test
[INFO] | | +- io.netty:netty-common:jar:4.1.87.Final:test
[INFO] | | +- io.netty:netty-resolver:jar:4.1.87.Final:test
[INFO] | | +- io.netty:netty-buffer:jar:4.1.87.Final:test
[INFO] | | +- io.netty:netty-transport:jar:4.1.87.Final:test
[INFO] | | +- io.netty:netty-transport-native-unix-common:jar:4.1.87.Final:test
[INFO] | | \- io.netty:netty-codec:jar:4.1.87.Final:test
[INFO] | \- io.netty:netty-transport-native-epoll:jar:4.1.87.Final:test
[INFO] | \- io.netty:netty-transport-classes-epoll:jar:4.1.87.Final:test
[INFO] +- org.apache.kafka:kafka-clients:jar:test:3.4.0:test
[INFO] +- org.apache.kafka:kafka-metadata:jar:3.4.0:test
[INFO] | +- org.apache.kafka:kafka-server-common:jar:3.4.0:test
[INFO] | +- org.apache.kafka:kafka-raft:jar:3.4.0:test
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.14.1:test
[INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.14.1:test
[INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.14.1:test
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.14.1:test
[INFO] | \- com.yammer.metrics:metrics-core:jar:2.2.0:test
[INFO] +- org.apache.kafka:kafka-streams-test-utils:jar:3.4.0:test
[INFO] | \- org.apache.kafka:kafka-streams:jar:3.4.0:test
[INFO] | \- org.rocksdb:rocksdbjni:jar:7.1.2:test
[INFO] +- org.apache.kafka:kafka_2.13:jar:3.4.0:test
[INFO] | +- org.scala-lang:scala-library:jar:2.13.10:test
[INFO] | +- org.apache.kafka:kafka-group-coordinator:jar:3.4.0:test
[INFO] | +- org.apache.kafka:kafka-storage:jar:3.4.0:test
[INFO] | | \- org.apache.kafka:kafka-storage-api:jar:3.4.0:test
[INFO] | +- net.sourceforge.argparse4j:argparse4j:jar:0.7.0:test
[INFO] | +- com.fasterxml.jackson.module:jackson-module-scala_2.13:jar:2.14.1:test
[INFO] | | \- com.thoughtworks.paranamer:paranamer:jar:2.8:test
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.14.1:test
[INFO] | +- net.sf.jopt-simple:jopt-simple:jar:5.0.4:test
[INFO] | +- org.bitbucket.b_c:jose4j:jar:0.7.9:test
[INFO] | +- org.scala-lang.modules:scala-collection-compat_2.13:jar:2.6.0:test
[INFO] | +- org.scala-lang.modules:scala-java8-compat_2.13:jar:1.0.2:test
[INFO] | +- org.scala-lang:scala-reflect:jar:2.13.10:test
[INFO] | +- com.typesafe.scala-logging:scala-logging_2.13:jar:3.9.4:test
[INFO] | +- io.dropwizard.metrics:metrics-core:jar:4.2.15:test
[INFO] | \- commons-cli:commons-cli:jar:1.4:test
[INFO] +- org.apache.kafka:kafka_2.13:jar:test:3.4.0:test
[INFO] +- org.junit.jupiter:junit-jupiter-api:jar:5.9.2:test
[INFO] | +- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] | +- org.junit.platform:junit-platform-commons:jar:1.9.2:test
[INFO] | \- org.apiguardian:apiguardian-api:jar:1.1.2:test
[INFO] \- org.junit.platform:junit-platform-launcher:jar:1.9.2:test
[INFO] \- org.junit.platform:junit-platform-engine:jar:1.9.2:test
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
As you can see, all the kafka jar versions are 3.4.0.
And with Boot 2.7.x...
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.8</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>so75458160</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>so75458160</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>17</java.version>
<kafka.version>3.4.0</kafka.version>
<spring-kafka.version>2.9.5</spring-kafka.version>
</properties>

Related

java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory in SpringBoot

I'm working to convert Spring MVC application to SpringBoot application. Everything is going well and I was able to run SpringBoot application via main method with class annotated with #SpringBootApplication.
Even thought it's spring boot we still want to deploy it to tomcat server and not to use embedder one. I'm building with mvn install command and generating war.
While starting up tomcat server I'm facing this error:
java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory
This is an answer why this error will come from http://www.slf4j.org/faq.html#IllegalAccessError
If you get the exception shown above, then you are using an older version of slf4j-api, e.g. 1.4.3, with a new version of a slf4j binding, e.g. 1.5.6. Typically, this occurs when your Maven pom.ml file incorporates hibernate 3.3.0 which declares a dependency on slf4j-api version 1.4.2. If your pom.xml declares a dependency on an slf4j binding, say slf4j-log4j12 version 1.5.6, then you will get illegal access errors.
I have tried a lot things but no luck. I would really appreciate any help. Thank you.
This is the maven dependency plugin tree:
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.2.8.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.2.8.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:2.2.8.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.2.8.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.2.8.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.apache.logging.log4j:log4j-api:jar:2.12.1:compile
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.25:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.2.8.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.10.4:compile
[INFO] | | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.10.4:compile
[INFO] | | | \- com.fasterxml.jackson.core:jackson-core:jar:2.10.4:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.4:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.4:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.10.4:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-validation:jar:2.2.8.RELEASE:compile
[INFO] | | +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | | \- org.hibernate.validator:hibernate-validator:jar:6.0.20.Final:compile
[INFO] | +- org.springframework:spring-web:jar:5.2.7.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.2.7.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.2.8.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.2.8.RELEASE:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.5:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.2.8.RELEASE:compile
[INFO] | | +- com.zaxxer:HikariCP:jar:3.4.5:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:5.2.7.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.17.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.24.0-GA:compile
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.10.11:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.1.3.Final:compile
[INFO] | | +- org.dom4j:dom4j:jar:2.1.3:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.0.Final:compile
[INFO] | | \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.3:compile
[INFO] | | +- jakarta.xml.bind:jakarta.xml.bind-api: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] | | \- com.sun.activation:jakarta.activation:jar:1.2.2:runtime
[INFO] | +- org.springframework.data:spring-data-jpa:jar:2.2.8.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:2.2.8.RELEASE:compile
[INFO] | | \- org.springframework:spring-orm:jar:5.2.7.RELEASE:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.2.7.RELEASE:compile
[INFO] +- org.apache.tomcat.embed:tomcat-embed-jasper:jar:9.0.36:provided
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.36:provided
[INFO] | | \- org.apache.tomcat:tomcat-annotations-api:jar:9.0.36:provided
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.36:provided
[INFO] | \- org.eclipse.jdt:ecj:jar:3.18.0:provided
[INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.2.8.RELEASE:provided
[INFO] | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.36:provided
[INFO] +- log4j:log4j:jar:1.2.17:compile
[INFO] +- javax.servlet:servlet-api:jar:2.5:provided
[INFO] +- org.apache.commons:com.springsource.org.apache.commons.collections:jar:3.2.0:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.2.1:compile
[INFO] +- commons-lang:commons-lang:jar:2.6:compile
[INFO] +- commons-beanutils:commons-beanutils:jar:1.9.2:compile
[INFO] | +- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] | \- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] +- commons-io:commons-io:jar:1.3.2:compile
[INFO] +- org.apache.poi:poi-ooxml:jar:3.17:compile
[INFO] | +- org.apache.poi:poi:jar:3.17:compile
[INFO] | | +- commons-codec:commons-codec:jar:1.13:compile
[INFO] | | \- org.apache.commons:commons-collections4:jar:4.1:compile
[INFO] | +- org.apache.poi:poi-ooxml-schemas:jar:3.17:compile
[INFO] | | \- org.apache.xmlbeans:xmlbeans:jar:2.6.0:compile
[INFO] | \- com.github.virtuald:curvesapi:jar:1.04:compile
[INFO] +- commons-fileupload:commons-fileupload:jar:1.2.2:compile
[INFO] +- org.apache.tiles:tiles-core:jar:3.0.3:compile
[INFO] | +- commons-digester:commons-digester:jar:2.0:compile
[INFO] | \- org.slf4j:jcl-over-slf4j:jar:1.7.30:compile
[INFO] +- org.apache.tiles:tiles-api:jar:3.0.3:compile
[INFO] +- org.apache.tiles:tiles-jsp:jar:3.0.3:compile
[INFO] | +- org.apache.tiles:tiles-servlet:jar:3.0.3:compile
[INFO] | \- org.apache.tiles:tiles-template:jar:3.0.3:compile
[INFO] | \- org.apache.tiles:tiles-autotag-core-runtime:jar:1.1.0:compile
[INFO] +- org.apache.tiles:tiles-request-api:jar:1.0.3:compile
[INFO] +- org.apache.tiles:tiles-request-jsp:jar:1.0.3:compile
[INFO] | \- org.apache.tiles:tiles-request-servlet:jar:1.0.3:compile
[INFO] +- javax.servlet:jstl:jar:1.2:system
[INFO] +- org.hibernate:hibernate-validator:jar:5.0.1.Final:compile
[INFO] | +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile
[INFO] | \- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] +- IntexWrap:IntexWrap:jar:3.3E:system
[INFO] +- org.springframework.security:spring-security-web:jar:4.1.0.RELEASE:compile
[INFO] | +- aopalliance:aopalliance:jar:1.0:compile
[INFO] | +- org.springframework.security:spring-security-core:jar:5.2.5.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:5.2.7.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:5.2.7.RELEASE:compile
[INFO] | +- org.springframework:spring-core:jar:5.2.7.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.2.7.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.2.7.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-config:jar:4.1.0.RELEASE:compile
[INFO] | \- org.springframework:spring-aop:jar:5.2.7.RELEASE:compile
[INFO] +- com.oracle:ojdbc6:jar:11.2.0.4:compile
[INFO] +- com.jscape:sinetfactory:jar:7.0:compile
[INFO] +- com.jcraft:jsch:jar:0.1.55:compile
[INFO] +- snappy-java:snappy-java:jar:1.0.4.1:system
[INFO] +- jackson-core:jackson-core:jar:2.5.0:system
[INFO] +- jackson-databind:jackson-databind:jar:2.5.0:system
[INFO] +- jackson-annotations:jackson-annotations:jar:2.5.0:system
[INFO] +- JavaSoamApi:JavaSoamApi:jar:1.0:system
[INFO] +- JavaSymexecApi:JavaSymexecApi:jar:1.0:system
[INFO] +- paranamer:paranamer:jar:2.3:system
[INFO] +- avro:avro:jar:1.0:system
[INFO] +- commons-cli:commons-cli:jar:1.2:system
[INFO] +- com.sun.mail:javax.mail:jar:1.4.4:compile
[INFO] | \- javax.activation:activation:jar:1.1:compile
[INFO] +- CPA2JavaClient:CPA2JavaClient:jar:1.0:system
[INFO] +- com.fanniemae.faas.tcserver:tcsFedletIdentityAsserterProvider:jar:1.5.0:compile
[INFO] +- org.springframework:spring-context-support:jar:5.0.0.M5:compile
[INFO] +- org.quartz-scheduler:quartz:jar:2.2.3:compile
[INFO] | +- c3p0:c3p0:jar:0.9.1.1:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] +- org.springframework.batch:spring-batch-core:jar:4.0.0.M1:compile
[INFO] | +- com.ibm.jbatch:com.ibm.jbatch-tck-spi:jar:1.0:compile
[INFO] | | \- javax.batch:javax.batch-api:jar:1.0:compile
[INFO] | +- com.thoughtworks.xstream:xstream:jar:1.4.9:compile
[INFO] | | +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | | \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] | +- org.codehaus.jettison:jettison:jar:1.2:compile
[INFO] | \- org.springframework:spring-tx:jar:5.2.7.RELEASE:compile
[INFO] +- org.springframework.batch:spring-batch-infrastructure:jar:4.0.0.M1:compile
[INFO] | \- org.springframework.retry:spring-retry:jar:1.2.5.RELEASE:compile
[INFO] +- junit:junit:jar:4.11:test
[INFO] +- org.springframework:spring-test:jar:3.2.3.RELEASE:compile
[INFO] +- org.mockito:mockito-all:jar:1.9.5:test
[INFO] +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] +- hsqldb:hsqldb:jar:2.2.8:system
[INFO] +- prismtools:prismtools:jar:2.2.8:system
[INFO] +- esb-client:esb-client:jar:4.1.3:system
[INFO] +- com.fanniemae.sharedservices.evas:evas-sdk:jar:1.3:compile
[INFO] +- com.google.guava:guava:jar:18.0:compile
[INFO] +- org.apache.httpcomponents:httpmime:jar:4.5.2:compile
[INFO] | \- org.apache.httpcomponents:httpclient:jar:4.5.12:compile
[INFO] | \- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
[INFO] +- com.cenqua.clover:clover:jar:3.1.12:compile
[INFO] +- com.fanniemae.hpvltg:hp_voltage_lib:jar:1.0:compile
[INFO] \- com.netezza:nzjdbc:jar:7.2.1:compile
This is my dependencies from pom.xml
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.8.RELEASE</version>
<relativePath/>
</parent>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-beans</artifactId>-->
<!-- <version>5.0.0.M5</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-core</artifactId>-->
<!-- <version>5.0.0.M5</version>-->
<!-- <classifier>sources</classifier>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-expression</artifactId>-->
<!-- <version>5.0.0.M5</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-web</artifactId>-->
<!-- <version>5.0.0.M5</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-context</artifactId>-->
<!-- <version>5.0.0.M5</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-webmvc</artifactId>-->
<!-- <version>5.0.0.M5</version>-->
<!-- </dependency>-->
<!-- log4j dependencies -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
</dependency>
<!-- Servlet dependencies -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<!-- Apache common dependencies -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>com.springsource.org.apache.commons.collections</artifactId>
<version>3.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.2.1</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<!-- https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils -->
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.9.2</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
<!-- Apache Poi dependencies -->
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.17</version>
</dependency>
<!-- Apache file upload dependencies -->
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.2</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.2</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.slf4j</groupId>-->
<!-- <artifactId>slf4j-api</artifactId>-->
<!-- <version>1.5.5</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.slf4j</groupId>-->
<!-- <artifactId>slf4j-log4j12</artifactId>-->
<!-- <version>1.5.5</version>-->
<!-- </dependency>-->
<!-- Apache tiles dependencies -->
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-core</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-api</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-jsp</artifactId>
<version>3.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-request-api</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-request-jsp</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/jstl-1.2.jar</systemPath>
</dependency>
<!-- Hibernate dependencies -->
<!-- <dependency>-->
<!-- <groupId>org.hibernate</groupId>-->
<!-- <artifactId>hibernate-core</artifactId>-->
<!-- <version>5.1.0.Final</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.hibernate.common</groupId>-->
<!-- <artifactId>hibernate-commons-annotations</artifactId>-->
<!-- <version>5.0.1.Final</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.hibernate</groupId>-->
<!-- <artifactId>hibernate-testing</artifactId>-->
<!-- <version>5.2.10.Final</version>-->
<!-- </dependency>-->
<!-- <dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.1.Final</version>
</dependency> -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.0.1.Final</version>
</dependency>
<dependency>
<groupId>IntexWrap</groupId>
<artifactId>IntexWrap</artifactId>
<version>3.3E</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/IntexWrap.jar</systemPath>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-tx</artifactId>-->
<!-- <version>5.0.0.M5</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-jdbc</artifactId>-->
<!-- <version>5.0.0.M5</version>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework</groupId>-->
<!-- <artifactId>spring-orm</artifactId>-->
<!-- <version>5.0.0.M5</version>-->
<!-- </dependency>-->
<!-- Spring Security -->
<!-- <dependency>-->
<!-- <groupId>org.springframework.security</groupId>-->
<!-- <artifactId>spring-security-core</artifactId>-->
<!-- <version>4.1.0.RELEASE</version>-->
<!-- </dependency>-->
<dependency> <groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>4.1.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>4.1.0.RELEASE</version>
</dependency>
<!-- Oracle Driver dependencies -->
<!-- <dependency>
<groupId>ojdbc6.jar</groupId>
<artifactId>ojdbc6.jar</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/ojdbc6.jar</systemPath>
</dependency>
-->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.4</version>
</dependency>
<!-- SFTP classes dependencies -->
<dependency>
<groupId>com.jscape</groupId>
<artifactId>sinetfactory</artifactId>
<version>7.0</version>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.55</version>
</dependency>
<!--dependency>
<groupId>sinetfactory</groupId>
<artifactId>sinetfactory</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/sinetfactory.jar</systemPath>
</dependency-->
<!-- symphony client classes dependencies -->
<dependency>
<groupId>snappy-java</groupId>
<artifactId>snappy-java</artifactId>
<version>1.0.4.1</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/snappy-java-1.0.4.1.jar</systemPath>
</dependency>
<!-- dependency> <groupId>sinetfactory</groupId> <artifactId>jackson-all</artifactId>
<version>1.9.4</version> <scope>system</scope> <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/jackson-all-1.9.4.jar</systemPath>
</dependency -->
<dependency>
<groupId>jackson-core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.5.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/jackson-core-2.5.0-rc1.jar</systemPath>
</dependency>
<dependency>
<groupId>jackson-databind</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.5.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/jackson-databind-2.5.0-rc1.jar</systemPath>
</dependency>
<dependency>
<groupId>jackson-annotations</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.5.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/jackson-annotations-2.5.0-rc1.jar</systemPath>
</dependency>
<dependency>
<groupId>JavaSoamApi</groupId>
<artifactId>JavaSoamApi</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/JavaSoamApi.jar</systemPath>
</dependency>
<dependency>
<groupId>JavaSymexecApi</groupId>
<artifactId>JavaSymexecApi</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/JavaSymexecApi.jar</systemPath>
</dependency>
<dependency>
<groupId>paranamer</groupId>
<artifactId>paranamer</artifactId>
<version>2.3</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/paranamer-2.3.jar</systemPath>
</dependency>
<dependency>
<groupId>avro</groupId>
<artifactId>avro</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/avro.jar</systemPath>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.2</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/commons-cli-1.2.jar</systemPath>
</dependency>
<dependency>
<groupId>IntexWrap</groupId>
<artifactId>IntexWrap</artifactId>
<version>3.3E</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/IntexWrap.jar</systemPath>
</dependency>
<!-- Java Mail dependecy -->
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.4.4</version>
</dependency>
<dependency>
<groupId>CPA2JavaClient</groupId>
<artifactId>CPA2JavaClient</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/CPA2JavaClient.jar</systemPath>
</dependency>
<dependency>
<groupId>com.fanniemae.faas.tcserver</groupId>
<artifactId>tcsFedletIdentityAsserterProvider</artifactId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>5.0.0.M5</version>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>2.2.3</version>
</dependency>
<dependency>
<groupId>org.springframework.batch</groupId>
<artifactId>spring-batch-core</artifactId>
<version>4.0.0.M1</version>
</dependency>
<dependency>
<groupId>org.springframework.batch</groupId>
<artifactId>spring-batch-infrastructure</artifactId>
<version>4.0.0.M1</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<!-- for unit tests -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
<!-- This is for mocking the service -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.2.8</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/hsqldb-2.2.8.jar</systemPath>
</dependency>
<dependency>
<groupId>prismtools</groupId>
<artifactId>prismtools</artifactId>
<version>2.2.8</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/prismtools-0.0.1.jar</systemPath>
</dependency>
<!-- ESB jar from local -->
<dependency>
<groupId>esb-client</groupId>
<artifactId>esb-client</artifactId>
<version>4.1.3</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/esb-client-4.1.3.jar</systemPath>
</dependency>
<!-- Epv jar from nexus -->
<dependency>
<groupId>com.fanniemae.sharedservices.evas</groupId>
<artifactId>evas-sdk</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>18.0</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.2</version>
</dependency>
<dependency>
<groupId>com.cenqua.clover</groupId>
<artifactId>clover</artifactId>
<version>3.1.12</version>
</dependency>
<dependency>
<groupId>com.cenqua.clover</groupId>
<artifactId>clover</artifactId>
<version>3.1.12</version>
</dependency>
<!-- Voltage jar from nexus -->
<dependency>
<groupId>com.fanniemae.hpvltg</groupId>
<artifactId>hp_voltage_lib</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>com.netezza</groupId>
<artifactId>nzjdbc</artifactId>
<version>7.2.1</version>
</dependency>
</dependencies>
last thing, if I will go by stack trace from error message, it points to ch.qos.logback:logback-classic:jar:1.2.3:compile which comes together with org.springframework.boot:spring-boot-starter-web:jar:2.2.8.RELEASE:compile
I finally resolved this problem. These are the steps:
By error stack trace figure out which dependency is giving this issue
Get maven dependency plugin tree. Using this tree details find out if this library is coming as part of the some other dependency. In my case, the logback-classic and log4j-over-slf4j were giving this problem. They came together under spring-boot-starter-web
Use <exclusions><exclusion></exclusion></exclusions> in your pom.xml in that dependency for the libraries that giving this issue. In my case it looks like this:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<artifactId>logback-classic</artifactId>
<groupId>ch.qos.logback</groupId>
</exclusion>
<exclusion>
<artifactId>log4j-over-slf4j</artifactId>
<groupId>org.slf4j</groupId>
</exclusion>
</exclusions>
</dependency>

Maven compilation error about missing javax/mail/mail/1.4/activation.jar. How to fix?

I have imported my maven project into eclipse. The project works with another eclipse on a different machine.
I get the following compilation error:
[ERROR] bad path element "/home/ps/.m2/repository/javax/mail/mail/1.4/activation.jar": no such file or directory
When I look at the m2, there indeed is no activation.jar.
When I look at the copy on another machine, the only difference I see is it has ojdbc6.jar in the referenced libraries list. All other libraries come from M2.
However, looking at the manifest of javax/mail/mail/1.4/mail-1.4.jar with
jar xf ~/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar META-INF/MANIFEST.MF; grep -i 'class-path' META-INF/MANIFEST.MF; I find it has activation.jar in the class-path. Is this the cause of the compilation error?
Maybe I should also mention that I had to change the java version settings on the machine from 1.6 to 1.8 because the new machine doesn't have 1.6.
pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.xxxmonitor</groupId>
<artifactId>xxx</artifactId>
<name>cdxxx</name>
<packaging>war</packaging>
<version>1.0.0-BUILD-SNAPSHOT</version>
<properties>
<java-version>1.6</java-version>
<org.springframework-version>3.1.1.RELEASE</org.springframework-version>
<org.aspectj-version>1.6.10</org.aspectj-version>
<org.slf4j-version>1.6.6</org.slf4j-version>
</properties>
<dependencies>
<!-- Spring -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${org.springframework-version}</version>
<exclusions>
<!-- Exclude Commons Logging in favor of SLF4j -->
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${org.springframework-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${org.springframework-version}</version>
</dependency>
<!-- Hibernate -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.0.0.GA</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.6.0.Final</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.0.Final</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>20030825.184428</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-pool</groupId>
<artifactId>commons-pool</artifactId>
<version>20030825.183949</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.6</version>
</dependency>
<!-- <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId>
<version>5.1.21</version> <scope>runtime</scope> </dependency> -->
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>1.9.5</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.7.1</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1</version>
</dependency>
<!-- Email -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>commons-email</groupId>
<artifactId>commons-email</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.4</version>
<type>jar</type>
</dependency>
<!-- AspectJ -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>${org.aspectj-version}</version>
</dependency>
<!-- Logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${org.slf4j-version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jcl-over-slf4j</artifactId>
<version>${org.slf4j-version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${org.slf4j-version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.15</version>
<exclusions>
<exclusion>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
</exclusion>
<exclusion>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jdmk</groupId>
<artifactId>jmxtools</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jmx</groupId>
<artifactId>jmxri</artifactId>
</exclusion>
</exclusions>
<scope>compile</scope>
</dependency>
<!-- #Inject -->
<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
</dependency>
<!-- Servlet -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<!-- Test -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.springframework.ldap</groupId>
<artifactId>spring-ldap-core</artifactId>
<version>2.0.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-ldap</artifactId>
<version>3.0.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.apache.james</groupId>
<artifactId>apache-mime4j-core</artifactId>
<version>0.7.2</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>javax.mail-api</artifactId>
<version>1.5.0-b01</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.5.3</version>
</dependency>
<dependency>
<groupId>com.jcraft</groupId>
<artifactId>jsch</artifactId>
<version>0.1.53</version>
</dependency>
<dependency>
<groupId>org.jasypt</groupId>
<artifactId>jasypt</artifactId>
<version>1.9.1</version>
</dependency>
<dependency>
<groupId>org.jasypt</groupId>
<artifactId>jasypt-spring31</artifactId>
<version>1.9.2</version>
</dependency>
<dependency>
<groupId>org.samba.jcifs</groupId>
<artifactId>jcifs</artifactId>
<version>1.3.14-kohsuke-1</version>
</dependency>
<dependency>
<groupId>org.opensmpp</groupId>
<artifactId>opensmpp-core</artifactId>
<version>3.0.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/httpunit/httpunit -->
<dependency>
<groupId>httpunit</groupId>
<artifactId>httpunit</artifactId>
<version>1.7</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mozilla/rhino -->
<dependency>
<groupId>org.mozilla</groupId>
<artifactId>rhino</artifactId>
<version>1.7.10</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.9</version>
<configuration>
<additionalProjectnatures>
<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
</additionalProjectnatures>
<additionalBuildcommands>
<buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
</additionalBuildcommands>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<mainClass>org.test.int1.Main</mainClass>
</configuration>
</plugin>
</plugins>
</build>
</project>
Desired behavior: the project should compile without errors.
I created a dependency tree, but I don't understand it:
ps#REGULUS:~/Projects/xxx-monitoring/xxx2$ mvn dependency:tree -Dverbose
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cdxxx 1.0.0-BUILD-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # xxx ---
[INFO] com.xxxmonitor:xxx:war:1.0.0-BUILD-SNAPSHOT
[INFO] +- org.springframework:spring-context:jar:3.1.1.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:3.1.1.RELEASE:compile
[INFO] | | +- aopalliance:aopalliance:jar:1.0:compile
[INFO] | | +- (org.springframework:spring-asm:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-beans:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.springframework:spring-core:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | +- org.springframework:spring-beans:jar:3.1.1.RELEASE:compile
[INFO] | | \- (org.springframework:spring-core:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | +- org.springframework:spring-core:jar:3.1.1.RELEASE:compile
[INFO] | | \- (org.springframework:spring-asm:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | +- org.springframework:spring-expression:jar:3.1.1.RELEASE:compile
[INFO] | | \- (org.springframework:spring-core:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | \- org.springframework:spring-asm:jar:3.1.1.RELEASE:compile
[INFO] +- org.springframework:spring-webmvc:jar:3.1.1.RELEASE:compile
[INFO] | +- (org.springframework:spring-asm:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-beans:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-context:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | +- org.springframework:spring-context-support:jar:3.1.1.RELEASE:compile
[INFO] | | +- (org.springframework:spring-beans:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-context:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.springframework:spring-core:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-core:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-expression:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | \- org.springframework:spring-web:jar:3.1.1.RELEASE:compile
[INFO] | +- (aopalliance:aopalliance:jar:1.0:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-beans:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-context:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | \- (org.springframework:spring-core:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] +- org.springframework:spring-orm:jar:3.1.1.RELEASE:compile
[INFO] | +- (org.springframework:spring-beans:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-core:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | +- org.springframework:spring-jdbc:jar:3.1.1.RELEASE:compile
[INFO] | | +- (org.springframework:spring-beans:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | | +- (org.springframework:spring-core:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | | \- (org.springframework:spring-tx:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | \- org.springframework:spring-tx:jar:3.1.1.RELEASE:compile
[INFO] | +- (aopalliance:aopalliance:jar:1.0:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-aop:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-beans:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | +- (org.springframework:spring-context:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] | \- (org.springframework:spring-core:jar:3.1.1.RELEASE:compile - omitted for duplicate)
[INFO] +- org.hibernate:hibernate-validator:jar:4.0.0.GA:compile
[INFO] | +- javax.validation:validation-api:jar:1.0.0.GA:compile
[INFO] | +- (org.slf4j:slf4j-api:jar:1.5.6:compile - omitted for conflict with 1.6.6)
[INFO] | +- javax.xml.bind:jaxb-api:jar:2.1:compile
[INFO] | | +- javax.xml.stream:stax-api:jar:1.0-2:compile
[INFO] | | \- (javax.activation:activation:jar:1.1:compile - omitted for duplicate)
[INFO] | \- com.sun.xml.bind:jaxb-impl:jar:2.1.3:compile
[INFO] | \- (javax.xml.bind:jaxb-api:jar:2.1:compile - omitted for duplicate)
[INFO] +- org.hibernate:hibernate-entitymanager:jar:3.6.0.Final:compile
[INFO] | +- org.hibernate:hibernate-core:jar:3.6.0.Final:compile
[INFO] | | +- antlr:antlr:jar:2.7.6:compile
[INFO] | | +- commons-collections:commons-collections:jar:3.1:compile
[INFO] | | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | +- org.hibernate:hibernate-commons-annotations:jar:3.2.0.Final:compile
[INFO] | | | \- (org.slf4j:slf4j-api:jar:1.5.8:compile - omitted for conflict with 1.5.6)
[INFO] | | +- (org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final:compile - omitted for duplicate)
[INFO] | | +- javax.transaction:jta:jar:1.1:compile
[INFO] | | \- (org.slf4j:slf4j-api:jar:1.6.1:compile - omitted for conflict with 1.5.6)
[INFO] | +- cglib:cglib:jar:2.2:compile
[INFO] | | \- asm:asm:jar:3.1:compile
[INFO] | +- javassist:javassist:jar:3.12.0.GA:compile
[INFO] | +- (org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final:compile - omitted for duplicate)
[INFO] | \- (org.slf4j:slf4j-api:jar:1.6.1:compile - omitted for conflict with 1.5.6)
[INFO] +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.0.Final:compile
[INFO] +- taglibs:standard:jar:1.1.2:compile
[INFO] +- commons-dbcp:commons-dbcp:jar:20030825.184428:compile
[INFO] +- commons-pool:commons-pool:jar:20030825.183949:compile
[INFO] +- commons-net:commons-net:jar:2.0:compile
[INFO] +- commons-codec:commons-codec:jar:1.6:compile
[INFO] +- org.liquibase:liquibase-core:jar:1.9.5:compile
[INFO] +- org.codehaus.jackson:jackson-mapper-asl:jar:1.7.1:compile
[INFO] | \- org.codehaus.jackson:jackson-core-asl:jar:1.7.1:compile
[INFO] +- com.googlecode.json-simple:json-simple:jar:1.1:compile
[INFO] +- commons-io:commons-io:jar:1.3.2:compile
[INFO] +- org.apache.commons:commons-email:jar:1.1:compile
[INFO] | +- javax.mail:mail:jar:1.4:compile
[INFO] | | \- (javax.activation:activation:jar:1.1:compile - omitted for duplicate)
[INFO] | \- javax.activation:activation:jar:1.1:compile
[INFO] +- commons-lang:commons-lang:jar:2.4:compile
[INFO] +- org.aspectj:aspectjrt:jar:1.6.10:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.6.6:compile
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.6.6:runtime
[INFO] | \- (org.slf4j:slf4j-api:jar:1.6.6:runtime - omitted for duplicate)
[INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.6:runtime
[INFO] | +- (org.slf4j:slf4j-api:jar:1.6.6:runtime - omitted for duplicate)
[INFO] | \- (log4j:log4j:jar:1.2.17:runtime - omitted for conflict with 1.2.15)
[INFO] +- log4j:log4j:jar:1.2.15:compile
[INFO] +- javax.inject:javax.inject:jar:1:compile
[INFO] +- javax.servlet:servlet-api:jar:2.5:provided (scope not updated to compile)
[INFO] +- javax.servlet.jsp:jsp-api:jar:2.1:provided
[INFO] +- javax.servlet:jstl:jar:1.2:compile
[INFO] +- junit:junit:jar:4.7:test
[INFO] +- org.quartz-scheduler:quartz:jar:2.2.1:compile
[INFO] | +- c3p0:c3p0:jar:0.9.1.1:compile
[INFO] | \- (org.slf4j:slf4j-api:jar:1.6.6:compile - omitted for duplicate)
[INFO] +- org.springframework.ldap:spring-ldap-core:jar:2.0.2.RELEASE:compile
[INFO] | +- (org.springframework:spring-tx:jar:3.2.8.RELEASE:compile - omitted for conflict with 3.1.1.RELEASE)
[INFO] | +- org.springframework.data:spring-data-commons:jar:1.6.1.RELEASE:compile
[INFO] | | +- (org.springframework:spring-core:jar:3.1.4.RELEASE:compile - omitted for conflict with 3.1.1.RELEASE)
[INFO] | | +- (org.springframework:spring-beans:jar:3.1.4.RELEASE:compile - omitted for conflict with 3.1.1.RELEASE)
[INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.1:compile - omitted for conflict with 1.6.6)
[INFO] | | \- (org.slf4j:jcl-over-slf4j:jar:1.7.1:runtime - omitted for conflict with 1.6.6)
[INFO] | +- (org.springframework:spring-beans:jar:3.2.8.RELEASE:compile - omitted for conflict with 3.1.1.RELEASE)
[INFO] | \- (org.springframework:spring-core:jar:3.2.8.RELEASE:compile - omitted for conflict with 3.1.1.RELEASE)
[INFO] +- org.springframework.security:spring-security-ldap:jar:3.0.1.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-core:jar:3.0.1.RELEASE:compile
[INFO] | | +- (org.springframework:spring-expression:jar:3.0.0.RELEASE:compile - omitted for conflict with 3.1.1.RELEASE)
[INFO] | | +- (org.springframework:spring-core:jar:3.0.0.RELEASE:compile - omitted for conflict with 3.1.1.RELEASE)
[INFO] | | +- (org.springframework:spring-context:jar:3.0.0.RELEASE:compile - omitted for conflict with 3.1.1.RELEASE)
[INFO] | | +- (org.springframework:spring-tx:jar:3.0.0.RELEASE:compile - omitted for conflict with 3.1.1.RELEASE)
[INFO] | | +- (org.springframework:spring-aop:jar:3.0.0.RELEASE:compile - omitted for conflict with 3.1.1.RELEASE)
[INFO] | | +- (org.aspectj:aspectjrt:jar:1.6.5:compile - omitted for conflict with 1.6.10)
[INFO] | | +- org.aspectj:aspectjweaver:jar:1.6.5:compile
[INFO] | | \- (commons-logging:commons-logging:jar:1.1.1:compile - omitted for duplicate)
[INFO] | +- (org.springframework.ldap:spring-ldap-core:jar:1.3.0.RELEASE:compile - omitted for conflict with 2.0.2.RELEASE)
[INFO] | \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] +- org.apache.james:apache-mime4j-core:jar:0.7.2:compile
[INFO] +- javax.mail:javax.mail-api:jar:1.5.0-b01:compile
[INFO] | \- (javax.activation:activation:jar:1.1:compile - omitted for duplicate)
[INFO] +- com.sun.mail:javax.mail:jar:1.5.3:compile
[INFO] | \- (javax.activation:activation:jar:1.1:compile - omitted for duplicate)
[INFO] +- com.jcraft:jsch:jar:0.1.53:compile
[INFO] +- org.jasypt:jasypt:jar:1.9.1:compile
[INFO] +- org.jasypt:jasypt-spring31:jar:1.9.2:compile
[INFO] | \- (org.jasypt:jasypt:jar:1.9.2:compile - omitted for conflict with 1.9.1)
[INFO] +- org.samba.jcifs:jcifs:jar:1.3.14-kohsuke-1:compile
[INFO] +- org.opensmpp:opensmpp-core:jar:3.0.0:compile
[INFO] | \- org.opensmpp:opensmpp-charset:jar:3.0.0:compile
[INFO] +- httpunit:httpunit:jar:1.7:compile
[INFO] | +- (javax.servlet:servlet-api:jar:2.3:compile - omitted for conflict with 2.5)
[INFO] | \- jtidy:jtidy:jar:4aug2000r7-dev:compile
[INFO] \- org.mozilla:rhino:jar:1.7.10:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.346 s
[INFO] Finished at: 2020-02-20T16:34:22+01:00
[INFO] Final Memory: 33M/1932M
[INFO] ------------------------------------------------------------------------
I updated two dependencies, which I spotted because of conflicts in the dependency tree.
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-email</artifactId>
<version>1.5</version>
<!-- <version>1.1</version> -->
</dependency>
I could not use version 6.1.2.Final of hibernate-validator because tomcat 7 has issues with it.
<!-- https://mvnrepository.com/artifact/org.hibernate.validator/hibernate-validator -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.2.0.Final</version>
<scope>compile</scope>
</dependency>
It looks like it helped, I only have the character encoding errors left in the compilation output.
The character encoding issues have been fixed temporarily by:
<properties>
..
<project.build.sourceEncoding>Cp1252</project.build.sourceEncoding>
</properties>

Cannot instantiate interface org.springframework.context.ApplicationContextInitializer (Spring 5.2.3 + Spring Boot 2.2.3)

I'm using Spring 5.2.3.RELEASE and Spring Boot 2.2.3.RELEASE.
When trying to run some integration tests for my application, I'm getting the following error:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)
Caused by: java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationContextInitializer : org.springframework.boot.context.ConfigurationWarningsApplicationContextInitializer
at org.springframework.boot.SpringApplication.createSpringFactoriesInstances(SpringApplication.java:445)
at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:427)
at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:420)
at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:272)
at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:253)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at com.acme.service.MyService.main(MyService.java:60)
... 8 more
Caused by: java.lang.NoSuchMethodError: org.springframework.core.KotlinDetector.isKotlinReflectPresent()Z
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:187)
at org.springframework.boot.SpringApplication.createSpringFactoriesInstances(SpringApplication.java:441)
I believe that this error relates to incompatible versions of some components.
This similar issue https://github.com/spring-projects/spring-boot/issues/15970 says:
isKotlinReflectPresent was added to Spring Framework in 5.1.
Therefore, I would suspect that you have some jars from Framework 5.0
(or earlier) in the classpath.
but I cannot determine which dependency is causing the problem?
Here is my pom.xml:
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>com.github.joschi.jackson</groupId>
<artifactId>jackson-datatype-threetenbp</artifactId>
<version>2.6.4</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.6</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.196</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp</groupId>
<artifactId>logging-interceptor</artifactId>
<version>2.7.5</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp</groupId>
<artifactId>okhttp</artifactId>
<version>2.7.5</version>
</dependency>
<dependency>
<groupId>com.squareup.okio</groupId>
<artifactId>okio</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-annotations</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations</artifactId>
<version>2.0.8</version>
</dependency>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.9</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.13</version>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>9.0.30</version>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
<version>5.1.4</version>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.9</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.30</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.30</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>5.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>5.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>5.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
<version>2.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>2.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<version>2.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId>
<version>2.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-test-autoconfigure</artifactId>
<version>2.2.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.threeten</groupId>
<artifactId>threetenbp</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>io.gsonfire</groupId>
<artifactId>gson-fire</artifactId>
<version>1.8.3</version>
</dependency>
</dependencies>
And below is the result from mvn dependency:tree. Any help is much appreciated. Thanks!
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) # my-service ---
[INFO] com.acmecorp.service:my-service:jar:1.0.0-SNAPSHOT
[INFO] +- com.github.acmecorpapi:swagger-ui-annotation:jar:1.0.0-SNAPSHOT:compile
[INFO] | +- org.springframework:spring-core:jar:5.0.8.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.0.8.RELEASE:compile
[INFO] | \- org.webjars.npm:swagger-ui-dist:jar:3.20.6:runtime
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.10.1:compile
[INFO] +- org.springframework:spring-web:jar:5.2.3.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot:jar:2.2.3.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.2.3.RELEASE:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.2.3.RELEASE:runtime
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.2.3.RELEASE:runtime
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.12.1:runtime
[INFO] | | | | \- org.apache.logging.log4j:log4j-api:jar:2.12.1:runtime
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:runtime
[INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:runtime
[INFO] | | \- org.yaml:snakeyaml:jar:1.25:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.2.3.RELEASE:runtime
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.2:runtime
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.2:runtime
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.10.2:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.2.3.RELEASE:runtime
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.30:runtime
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.30:runtime
[INFO] | \- org.springframework.boot:spring-boot-starter-validation:jar:2.2.3.RELEASE:runtime
[INFO] | \- org.hibernate.validator:hibernate-validator:jar:6.0.18.Final:runtime
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:runtime
[INFO] | \- com.fasterxml:classmate:jar:1.3.4:runtime
[INFO] +- org.apache.commons:commons-lang3:jar:3.9:compile
[INFO] +- io.swagger:swagger-annotations:jar:1.6.0:compile
[INFO] +- com.github.acmecorp.logging:acmecorp-logging-logback:jar:1.0.0-36:runtime
[INFO] | +- ch.qos.logback:logback-classic:jar:1.2.3:runtime
[INFO] | +- ch.qos.logback:logback-core:jar:1.2.3:runtime
[INFO] | +- com.github.acmecorp.util:util-process-identifier:jar:1.16.0-118:runtime
[INFO] | \- org.apache.commons:commons-text:jar:1.2:runtime
[INFO] +- com.github.joschi.jackson:jackson-datatype-threetenbp:jar:2.6.4:compile
[INFO] +- org.postgresql:postgresql:jar:42.2.9:runtime
[INFO] +- com.h2database:h2:jar:1.4.196:runtime
[INFO] +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.30:compile
[INFO] | \- org.apache.tomcat:tomcat-annotations-api:jar:9.0.30:compile
[INFO] +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] +- org.springframework:spring-beans:jar:5.2.3.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.2.3.RELEASE:runtime
[INFO] | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.2.3.RELEASE:runtime
[INFO] | | \- org.springframework.boot:spring-boot-actuator:jar:2.2.3.RELEASE:runtime
[INFO] | \- io.micrometer:micrometer-core:jar:1.3.2:runtime
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.11:runtime
[INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] +- org.springframework:spring-context:jar:5.2.3.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.2.3.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.2.3.RELEASE:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.10.1:compile
[INFO] +- org.springframework.boot:spring-boot-autoconfigure:jar:2.2.3.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.2.3.RELEASE:runtime
[INFO] | +- com.zaxxer:HikariCP:jar:3.4.2:runtime
[INFO] | \- org.springframework:spring-jdbc:jar:5.2.3.RELEASE:runtime
[INFO] | \- org.springframework:spring-tx:jar:5.2.3.RELEASE:runtime
[INFO] +- org.springframework:spring-webmvc:jar:5.2.3.RELEASE:compile
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.10.1:compile
[INFO] +- org.threeten:threetenbp:jar:1.3.1:compile
[INFO] +- org.flywaydb:flyway-core:jar:5.1.4:runtime
[INFO] +- com.acmecorp.service:my-service-contract:jar:1.0.0-SNAPSHOT:runtime
[INFO] +- junit:junit:jar:4.12:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.hamcrest:hamcrest:jar:2.1:test
[INFO] +- org.springframework:spring-test:jar:5.2.3.RELEASE:test
[INFO] \- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.2.3.RELEASE:test
[INFO] \- org.springframework.boot:spring-boot-test:jar:2.2.3.RELEASE:test
MyService.java
#AcmeCorpSwaggerUI("com.acme.service.my-service.contract") // Custom interface
#SpringBootApplication(
scanBasePackages = {"io.swagger", "com.example.service"})
public class MyService implements WebMvcConfigurer
{
#Value("${https.port}")
private int httpsPort;
#Value("${management.server.port}")
private int adminPort;
public static void main(String[] args)
{
SpringApplication.run(MyService.class, args);
}
...
}
You've since edited out your pom, but I suspect that it's due to you explicitly defining versions for dependencies that Spring Boot manages.
Your pom should have Spring Boot as its parent:
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.example</groupId>
<artifactId>demo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>demo</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <!-- No version defined -->
</dependency>
...
I'd suggest grooming your pom by:
Remove versions of dependencies that Spring Boot manages.
Remove dependencies that are already brought in transitively by Spring Boot starters.
This dependency, shown in mvn dependency:tree above, was bringing in an older version of Spring, resulting in the runtime error:
[INFO] +- com.github.acmecorpapi:swagger-ui-annotation:jar:1.0.0-SNAPSHOT:compile
[INFO] | +- org.springframework:spring-core:jar:5.0.8.RELEASE:compile
Options to resolve this are to:
Update the above dependency to use Spring 5.2.3
Use Spring 5.0.8 in my project

PDPage.getStream function does not exist

I am using pdfbox for reading pdf documents.
But i can not use the function getStream for PDPage. Regarding the documentation this functions should exists:
https://pdfbox.apache.org/docs/2.0.0-SNAPSHOT/javadocs/
I am using the 2.0.0 Snapshot version of PdfBox with Maven.
I already tried to download the .jar files from the website and use them instead of the ones from the maven repo, but this did not work either.
The exact error from eclipse is: The method getStream() is undefined for the type PDPage.
Here is the pom.xml:
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>de.rwth-aachen.prime</groupId>
<artifactId>prime</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>Prime Project</name>
<url>http://maven.apache.org</url>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.1.10.RELEASE</version>
</parent>
<repositories>
<!-- <repository> <id>libs</id> ${project.basedir} <url>file://${project.basedir}/libs</url>
</repository> -->
<!-- <repository> <id>pdfbox</id> <url>http://repository.apache.org/content/groups/snapshots</url>
</repository> -->
<!-- <repository>
<id>pdfbox</id>
<url>http://repository.apache.org/content/groups/snapshots</url>
</repository>-->
<repository>
<id>ApacheSnapshot</id>
<name>Apache Repository</name>
<url>https://repository.apache.org/content/groups/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-framework-bom</artifactId>
<version>${spring.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<!-- For mime type extraction -->
<dependency>
<groupId>org.apache.tika</groupId>
<artifactId>tika-core</artifactId>
<version>1.8</version>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.8.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.3.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<type>jar</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
</dependency>
<!-- <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-rest-webmvc</artifactId>
<version>2.2.0.RELEASE</version> </dependency> -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>4.1.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.3.6.Final</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-dbcp2</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<!-- <version>2.4.3</version> -->
</dependency>
<dependency>
<groupId>com.voodoodyne.jackson.jsog</groupId>
<artifactId>jackson-jsog</artifactId>
<version>1.0</version>
<scope>compile</scope>
</dependency>
<!-- needed for setting lazy loaded elements = null -->
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-hibernate4</artifactId>
<version>2.4.4</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<!-- Hibernate uses slf4j for logging -->
<!--<dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId>
<version>1.7.5</version> </dependency> -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.32</version>
</dependency>
<!--<dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-api</artifactId>
<version>2.0.2</version> </dependency> -->
<!--<dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId>
<version>2.0.2</version> </dependency> -->
<dependency>
<groupId>org.docx4j</groupId>
<artifactId>docx4j</artifactId>
<version>3.1.0</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<!-- <exclusion> <groupId>log4j</groupId> <artifactId>log4j</artifactId>
</exclusion> -->
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox-tools</artifactId>
<version>2.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15</artifactId>
<version>1.44</version>
</dependency>
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcmail-jdk15</artifactId>
<version>1.44</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-taglibs</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth2</artifactId>
<version>2.0.7.RELEASE</version>
</dependency>
<!-- <dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency> -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
<finalName>prime</finalName>
</build>
<properties>
<java-version>1.7</java-version>
<spring.version>4.1.0.RELEASE</spring.version>
<spring.security.version>3.2.5.RELEASE</spring.security.version>
<start-class>spring.Application</start-class>
</properties>
</project>
This is the result of mvn dependencie:tree
[INFO] de.rwth-aachen.prime:prime:war:0.0.1-SNAPSHOT
[INFO] +- org.apache.tika:tika-core:jar:1.8:compile
[INFO] +- org.jsoup:jsoup:jar:1.8.1:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.3.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:1.1.10.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:1.1.10.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:1.1.10.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.1.10.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:1.1.10.RELEASE:compile
[INFO] | | | +- org.slf4j:jcl-over-slf4j:jar:1.7.7:compile
[INFO] | | | +- org.slf4j:jul-to-slf4j:jar:1.7.7:compile
[INFO] | | | +- org.slf4j:log4j-over-slf4j:jar:1.7.7:compile
[INFO] | | | \- ch.qos.logback:logback-classic:jar:1.1.2:compile
[INFO] | | | \- ch.qos.logback:logback-core:jar:1.1.2:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.13:runtime
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.3.4:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.3.4:compile
[INFO] | +- org.hibernate:hibernate-validator:jar:5.0.3.Final:compile
[INFO] | | +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | | \- com.fasterxml:classmate:jar:1.0.0:compile
[INFO] | +- org.springframework:spring-core:jar:4.1.0.RELEASE:compile
[INFO] | +- org.springframework:spring-web:jar:4.1.0.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:4.1.0.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:1.1.10.RELEASE:provided
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:7.0.57:provided
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:7.0.57:provided
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-logging-juli:jar:7.0.57:provided
[INFO] | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:7.0.57:provided
[INFO] +- org.springframework:spring-context:jar:4.1.0.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:4.1.0.RELEASE:compile
[INFO] | \- org.springframework:spring-beans:jar:4.1.0.RELEASE:compile
[INFO] +- org.springframework:spring-orm:jar:4.1.0.RELEASE:compile
[INFO] | +- org.springframework:spring-jdbc:jar:4.1.0.RELEASE:compile
[INFO] | \- org.springframework:spring-tx:jar:4.1.0.RELEASE:compile
[INFO] +- org.springframework:spring-expression:jar:4.1.0.RELEASE:compile
[INFO] +- org.springframework:spring-test:jar:4.1.0.RELEASE:compile
[INFO] +- org.hibernate:hibernate-core:jar:4.3.6.Final:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.1.3.GA:compile
[INFO] | +- org.jboss.logging:jboss-logging-annotations:jar:1.2.0.Beta1:compile
[INFO] | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.0.0.Final:compile
[INFO] | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] | +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.5.Final:compile
[INFO] | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] | +- org.javassist:javassist:jar:3.18.1-GA:compile
[INFO] | +- antlr:antlr:jar:2.7.7:compile
[INFO] | \- org.jboss:jandex:jar:1.1.0.Final:compile
[INFO] +- org.apache.commons:commons-dbcp2:jar:2.0:compile
[INFO] | +- org.apache.commons:commons-pool2:jar:2.2:compile
[INFO] | \- commons-logging:commons-logging:jar:1.1.3:compile
[INFO] +- javax.servlet:javax.servlet-api:jar:3.0.1:compile
[INFO] +- javax.servlet.jsp:jsp-api:jar:2.1:provided
[INFO] +- com.fasterxml.jackson.core:jackson-core:jar:2.3.4:compile
[INFO] +- com.voodoodyne.jackson.jsog:jackson-jsog:jar:1.0:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-hibernate4:jar:2.4.4:compile
[INFO] +- junit:junit:jar:4.11:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- mysql:mysql-connector-java:jar:5.1.32:compile
[INFO] +- org.docx4j:docx4j:jar:3.1.0:compile
[INFO] | +- org.plutext:jaxb-svg11:jar:1.0.2:compile
[INFO] | +- org.plutext:jaxb-xslfo:jar:1.0.1:compile
[INFO] | +- org.plutext:jaxb-xmldsig-core:jar:1.0.0:compile
[INFO] | +- net.engio:mbassador:jar:1.1.10:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.7:compile
[INFO] | +- log4j:log4j:jar:1.2.17:compile
[INFO] | +- commons-lang:commons-lang:jar:2.4:compile
[INFO] | +- commons-codec:commons-codec:jar:1.3:compile
[INFO] | +- commons-io:commons-io:jar:1.3.1:compile
[INFO] | +- org.apache.xmlgraphics:xmlgraphics-commons:jar:1.5:compile
[INFO] | +- org.apache.xmlgraphics:fop:jar:1.1:compile
[INFO] | | +- org.apache.xmlgraphics:batik-svg-dom:jar:1.7:compile
[INFO] | | | +- org.apache.xmlgraphics:batik-anim:jar:1.7:compile
[INFO] | | | +- org.apache.xmlgraphics:batik-css:jar:1.7:compile
[INFO] | | | +- org.apache.xmlgraphics:batik-dom:jar:1.7:compile
[INFO] | | | +- org.apache.xmlgraphics:batik-parser:jar:1.7:compile
[INFO] | | | \- org.apache.xmlgraphics:batik-util:jar:1.7:compile
[INFO] | | +- org.apache.xmlgraphics:batik-bridge:jar:1.7:compile
[INFO] | | | +- org.apache.xmlgraphics:batik-script:jar:1.7:compile
[INFO] | | | | \- org.apache.xmlgraphics:batik-js:jar:1.7:compile
[INFO] | | | \- org.apache.xmlgraphics:batik-xml:jar:1.7:compile
[INFO] | | +- org.apache.xmlgraphics:batik-awt-util:jar:1.7:compile
[INFO] | | +- org.apache.xmlgraphics:batik-gvt:jar:1.7:compile
[INFO] | | +- org.apache.xmlgraphics:batik-transcoder:jar:1.7:compile
[INFO] | | | \- org.apache.xmlgraphics:batik-svggen:jar:1.7:compile
[INFO] | | +- org.apache.xmlgraphics:batik-extension:jar:1.7:compile
[INFO] | | \- org.apache.xmlgraphics:batik-ext:jar:1.7:compile
[INFO] | +- org.apache.avalon.framework:avalon-framework-api:jar:4.3.1:compile
[INFO] | +- org.apache.avalon.framework:avalon-framework-impl:jar:4.3.1:compile
[INFO] | +- xalan:xalan:jar:2.7.1:compile
[INFO] | | \- xalan:serializer:jar:2.7.1:compile
[INFO] | +- net.arnx:wmf2svg:jar:0.9.0:compile
[INFO] | +- org.apache.poi:poi-scratchpad:jar:3.8:compile
[INFO] | | \- org.apache.poi:poi:jar:3.8:compile
[INFO] | +- org.antlr:antlr-runtime:jar:3.3:compile
[INFO] | \- org.antlr:stringtemplate:jar:3.2.1:compile
[INFO] +- org.apache.pdfbox:pdfbox:jar:2.0.0-SNAPSHOT:compile
[INFO] | \- org.apache.pdfbox:fontbox:jar:2.0.0-SNAPSHOT:compile
[INFO] +- org.apache.pdfbox:pdfbox-tools:jar:2.0.0-SNAPSHOT:compile
[INFO] +- org.bouncycastle:bcprov-jdk15:jar:1.44:compile
[INFO] +- org.bouncycastle:bcmail-jdk15:jar:1.44:compile
[INFO] +- org.springframework.security:spring-security-web:jar:3.2.5.RELEASE:compile
[INFO] | +- aopalliance:aopalliance:jar:1.0:compile
[INFO] | \- org.springframework.security:spring-security-core:jar:3.2.5.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-config:jar:3.2.5.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-taglibs:jar:3.2.5.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-acl:jar:3.2.5.RELEASE:compile
[INFO] +- org.springframework.security.oauth:spring-security-oauth2:jar:2.0.7.RELEASE:compile
[INFO] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
[INFO] | \- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] \- javax.servlet:jstl:jar:1.2:compile
Does anybody have any idea how to solve this problem?
Best regards

Maven including old versions of dependencies

I am using Maven to build a WAR file with the following parameters: mvn clean package
This builds successfully but when I open up the WAR I see the following:
jackson-core-2.2.3.jar
jackson-core-2.3.0.jar
pushy-0.2.jar
pushy-0.3.jar
This causes problems on our application server (Most likely conflicts), I proved this by manually deleting the old dependencies in the WAR which fixes any issues.
I have checked the Dependency Hierarchy view in Eclipse and I don't see versions 2.2.3 of Jackson or 0.2 of Pushy listed anywhere.
I have also tried deleting my whole .m2 repository but this doesn't seem to have made any difference.
Is there any particular reason why Maven would be including these old JARs?
Pom.xml dependencies:
<dependencies>
<dependency>
<groupId>core</groupId>
<artifactId>core</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.31</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
<dependency>
<groupId>com.threewks.thundr</groupId>
<artifactId>thundr-mailgun</artifactId>
<version>1.1.0</version>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-client</artifactId>
<version>1.18.1</version>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-core</artifactId>
<version>1.18.1</version>
</dependency>
<dependency>
<groupId>com.sun.jersey.contribs</groupId>
<artifactId>jersey-multipart</artifactId>
<version>1.18.1</version>
</dependency>
</dependencies>
Core.jar pom.xml depdencies:
<dependencies>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>1.1.7</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.9.5</version>
</dependency>
<dependency>
<groupId>org.facebook4j</groupId>
<artifactId>facebook4j-core</artifactId>
<version>[2.0,)</version>
</dependency>
<dependency>
<groupId>com.relayrides</groupId>
<artifactId>pushy</artifactId>
<version>0.3</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.5.2</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>javax.mail-api</artifactId>
<version>1.5.2</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>com.threewks.thundr</groupId>
<artifactId>thundr-mailgun</artifactId>
<version>1.1.0</version>
</dependency>
</dependencies>
Here is the result of running the dependency tree parameter with mvn when building the WAR:
[INFO] --- maven-dependency-plugin:2.1:tree (default-cli) # vimbaserver ---
[INFO] vimbaserver:vimbaserver:war:1.0
[INFO] +- core:core:jar:1.0:compile
[INFO] | +- (commons-dbcp:commons-dbcp:jar:1.4:compile - omitted for duplicate)
[INFO] | +- commons-lang:commons-lang:jar:2.3:compile
[INFO] | +- commons-codec:commons-codec:jar:1.5:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.3.0:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.3.0:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.3.0:compile
[INFO] | | +- (com.fasterxml.jackson.core:jackson-annotations:jar:2.3.0:compile - omitted for duplicate)
[INFO] | | \- (com.fasterxml.jackson.core:jackson-core:jar:2.3.0:compile - omitted for duplicate)
[INFO] | +- org.mariadb.jdbc:mariadb-java-client:jar:1.1.7:compile
[INFO] | | +- net.java.dev.jna:jna:jar:3.3.0:compile
[INFO] | | \- net.java.dev.jna:jna:jar:platform:3.3.0:compile
[INFO] | +- junit:junit:jar:4.11:compile
[INFO] | | \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] | +- org.facebook4j:facebook4j-core:jar:2.1.0:compile
[INFO] | +- com.relayrides:pushy:jar:0.3:compile
[INFO] | | +- org.slf4j:slf4j-api:jar:1.7.6:compile
[INFO] | | +- io.netty:netty-all:jar:4.0.18.Final:compile
[INFO] | | \- com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] | | \- (junit:junit:jar:4.10:compile - omitted for conflict with 4.11)
[INFO] | +- (log4j:log4j:jar:1.2.16:compile - omitted for duplicate)
[INFO] | +- com.sun.mail:javax.mail:jar:1.5.2:compile
[INFO] | | \- (javax.activation:activation:jar:1.1:compile - omitted for conflict with 1.1.1)
[INFO] | +- javax.mail:javax.mail-api:jar:1.5.2:runtime
[INFO] | | \- (javax.activation:activation:jar:1.1:runtime - omitted for duplicate)
[INFO] | +- javax.activation:activation:jar:1.1.1:compile
[INFO] | \- (com.threewks.thundr:thundr-mailgun:jar:1.1.0:compile - omitted for duplicate)
[INFO] +- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] | \- commons-pool:commons-pool:jar:1.5.4:compile
[INFO] +- mysql:mysql-connector-java:jar:5.1.31:compile
[INFO] +- log4j:log4j:jar:1.2.16:compile
[INFO] +- com.threewks.thundr:thundr-mailgun:jar:1.1.0:compile
[INFO] | \- com.threewks.thundr:thundr-http:jar:1.1.0:compile
[INFO] | \- com.threewks.thundr:thundr:jar:1.1.0:compile
[INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.2:compile
[INFO] | +- joda-time:joda-time:jar:2.3:compile
[INFO] | +- com.google.code.gson:gson:jar:2.1:compile
[INFO] | +- com.atomicleopard:expressive:jar:0.9.5:compile
[INFO] | +- org.jodd:jodd-bean:jar:3.4.4:compile
[INFO] | | \- org.jodd:jodd-core:jar:3.4.4:compile
[INFO] | +- org.jodd:jodd-proxetta:jar:3.4.4:compile
[INFO] | | +- (org.slf4j:slf4j-api:jar:1.7.2:compile - omitted for conflict with 1.7.6)
[INFO] | | \- (org.jodd:jodd-core:jar:3.4.4:compile - omitted for duplicate)
[INFO] | +- org.jodd:jodd-servlet:jar:3.4.4:compile
[INFO] | | +- (org.jodd:jodd-bean:jar:3.4.4:compile - omitted for duplicate)
[INFO] | | +- (org.jodd:jodd-core:jar:3.4.4:compile - omitted for duplicate)
[INFO] | | \- org.jodd:jodd-upload:jar:3.4.4:compile
[INFO] | | \- (org.jodd:jodd-core:jar:3.4.4:compile - omitted for duplicate)
[INFO] | +- org.apache.commons:commons-lang3:jar:3.1:compile
[INFO] | +- javax.inject:javax.inject:jar:1:compile
[INFO] | \- org.apache.directory.studio:org.apache.commons.codec:jar:1.6:compile
[INFO] | \- (commons-codec:commons-codec:jar:1.6:compile - omitted for conflict with 1.5)
[INFO] +- com.sun.jersey:jersey-client:jar:1.18.1:compile
[INFO] | \- (com.sun.jersey:jersey-core:jar:1.18.1:compile - omitted for duplicate)
[INFO] +- com.sun.jersey:jersey-core:jar:1.18.1:compile
[INFO] \- com.sun.jersey.contribs:jersey-multipart:jar:1.18.1:compile
[INFO] +- org.jvnet.mimepull:mimepull:jar:1.9.3:compile
[INFO] \- (com.sun.jersey:jersey-core:jar:1.18.1:compile - omitted for duplicate)
I have encountered this before - please check your WEB-INF/ folder in the jboss directory for old jars.
Use mvn dependency:tree to see where is a dependency transitively included. Exclude them and use Maven Enforcer plugin to prevent a developer adding a dependency which adds banned transitive dependencies.

Categories