I have a Maven project that works correctly. I bought a new computer and the same project, with the same operating system and same maven (it's from the project itself). If I execute:
./mvnw -Pprod package -e
If I do the packaging in the old computer when deploying everything is correct, but if I do it from the new one:
The application will start in 0s...
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/app.war!/WEB-INF/lib/slf4j-simple- 1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/app.war!/WEB-INF/lib/logback-classic-1.1.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
Exception in thread "main" java.lang.reflect.InvocationTargetException
...
In some forums I have seen that executing:
mvn dependency:tree
...
[INFO] +- io.dropwizard.metrics:metrics-core:jar:3.2.5:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.25:compile
...
[INFO] +- org.springframework.boot:spring-boot-starter-logging:jar:1.5.9.RELEASE:compile
[INFO] | +- ch.qos.logback:logback-classic:jar:1.1.11:compile
[INFO] | | \- ch.qos.logback:logback-core:jar:1.1.11:compile
[INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.7.25:compile
[INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
[INFO] | \- org.slf4j:log4j-over-slf4j:jar:1.7.25:compile
...
[INFO] +- org.postgresql:postgresql:jar:9.4-1200-jdbc41:compile
[INFO] | +- com.github.dblock.waffle:waffle-jna:jar:1.7:runtime
[INFO] | \- org.slf4j:slf4j-simple:jar:1.7.25:runtime
I have seen options in others such as excluding or changing le pom, but it is the same pom that works correctly on my old computer. Could it be for another reason?