Idea is using different version of library than defined in project - maven

I have a maven project opened in IntelliJ Idea. Maven build(executed from IDE) works fine, but when I try to run the some JUnit test, it shows me some import issues, because some older version of one library is used. The library is called sf-gml-api and the desired version is 1.50.3, but in the External Libraries node in the project, idea shows this:
The obvious thing to check is if some other library doesn't depend on this version, but mvn dependency:tree seems to be in order - correct version everywhere.
> mvn dependency:tree | grep sf-gml-api
[INFO] +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:test
[INFO] | | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:provided
[INFO] | | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | | | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
[INFO] | +- com.snowflakesoft.common:sf-gml-api:jar:1.50.3:compile
I've tried maven reimport in Idea, but without any luck. What could be the issue? The dependencies are only defined in the pom files.
IntelliJ Idea 14.1.4
Maven 3.2.3

Clearing ~/.IntelliJIdea14/system/Maven didn't help as well as invalidating caches and restart.
What fixed the problem was installing Idea update 2016.1.4

I would check if you delete it from Open Module Settings -> libraries and refresh workspace. If It still persists try to analyze this library by intellij with right click on library and Analazy -> Analyze dependencies.

Related

In Apache maven, how do you override the scope of all transitive dependencies of a library?

E.g. If I have a project that depends on a library: "org.apache.hive:hive-common:jar:2.1.1-cdh6.3.4", with a provided scope. Now if I want to declare all its transitive dependencies as "provided", is it possible?
Not doing so will cause maven to fundamentally fail on resolving some of their scope properly:
[INFO] | +- org.apache.hive:hive-common:jar:2.1.1-cdh6.3.4:provided
[INFO] | | +- org.apache.hive:hive-classification:jar:2.1.1-cdh6.3.4:compile
[INFO] | | +- org.apache.hive:hive-storage-api:jar:2.1.1-cdh6.3.4:provided
[INFO] | | +- org.apache.hive:hive-orc:jar:2.1.1-cdh6.3.4:provided
[INFO] | | | +- org.apache.hadoop:hadoop-hdfs:jar:3.0.0-cdh6.3.4:provided
[INFO] | | | | +- org.eclipse.jetty:jetty-util-ajax:jar:9.3.25.v20180904:runtime
[INFO] | | | | +- com.sun.jersey:jersey-core:jar:1.19:runtime
[INFO] | | | | | \- javax.ws.rs:jsr311-api:jar:1.1.1:runtime
[INFO] | | | | +- com.sun.jersey:jersey-server:jar:1.19:runtime
[INFO] | | | | \- commons-daemon:commons-daemon:jar:1.0.13:provided
[INFO] | | | \- org.iq80.snappy:snappy:jar:0.2:provided
[INFO] | | +- org.apache.commons:commons-lang3:jar:3.3:compile
[INFO] | | +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] | | +- org.eclipse.jetty:jetty-rewrite:jar:9.3.25.v20180904:provided
[INFO] | | | \- org.eclipse.jetty:jetty-client:jar:9.3.25.v20180904:provided
[INFO] | | +- org.eclipse.jetty:jetty-server:jar:9.3.25.v20180904:compile
[INFO] | | | +- org.eclipse.jetty:jetty-http:jar:9.3.25.v20180904:compile
[INFO] | | | \- org.eclipse.jetty:jetty-io:jar:9.3.25.v20180904:compile
[INFO] | | +- org.eclipse.jetty:jetty-servlet:jar:9.3.25.v20180904:compile
[INFO] | | | \- org.eclipse.jetty:jetty-security:jar:9.3.25.v20180904:compile
[INFO] | | +- org.eclipse.jetty:jetty-webapp:jar:9.3.25.v20180904:compile
[INFO] | | | \- org.eclipse.jetty:jetty-xml:jar:9.3.25.v20180904:compile
[INFO] | | +- org.apache.logging.log4j:log4j-1.2-api:jar:2.8.2:provided
[INFO] | | | +- org.apache.logging.log4j:log4j-api:jar:2.8.2:compile
[INFO] | | | \- org.apache.logging.log4j:log4j-core:jar:2.8.2:provided
[INFO] | | +- org.apache.logging.log4j:log4j-web:jar:2.8.2:provided
[INFO] | | +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.8.2:compile
The last line in the output of dependency:tree:
org.apache.logging.log4j:log4j-slf4j-impl:jar:2.8.2:compile
Is clearly wrong: it cannot be found anywhere else, thus due to the rule in https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html. It's scope should be provided.
Is it possible to do it in maven? Or I'll have to switch to gradle?
Please check answers to the following question: Maven transitive dependency has scope compile while when dependency has provided scope
In short, it appears that you might be using <dependencyManagement> with some of org.apache.hive:hive-common dependencies which in the end is causing them to change their scope.

Unable to start web server; nested exception is java.lang.NoSuchMethodError: org.apache.tomcat.util.ExceptionUtils.preload()V

I am using JDk 1.8 and Spring boot 2.0.8, app is working fine in local laptop however once deploy on PCF its start complain
Unable to start web server; nested exception is
java.lang.NoSuchMethodError:
org.apache.tomcat.util.ExceptionUtils.preload()V
Dependancy Tree:
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.0.8.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.0.8.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:2.0.8.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.0.8.RELEASE:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.19:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.0.8.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.8:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.8:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.8:compile
[INFO] | +- org.hibernate.validator:hibernate-validator:jar:6.0.14.Final:compile
[INFO] | | +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | | \- com.fasterxml:classmate:jar:1.3.4:compile
[INFO] | +- org.springframework:spring-web:jar:5.0.12.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.0.12.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.0.8.RELEASE:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.37:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.37:compile
[INFO] | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.37:compile
[INFO] +- org.springframework.boot:spring-boot-starter-logging:jar:2.0.8.RELEASE:compile
[INFO] | \- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] +- net.logstash.logback:logstash-logback-encoder:jar:4.11:compile
[INFO] | +- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.9.8:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.8:compile
[INFO] \- org.apache.hive:hive-jdbc:jar:3.1.0.3.1.0.0-78:compile
[INFO] +- org.apache.hive:hive-common:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive:hive-classification:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive:hive-storage-api:jar:2.3.0.3.1.0.0-78:compile
[INFO] | +- commons-cli:commons-cli:jar:1.2:compile
[INFO] | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.7:compile
[INFO] | +- org.apache.orc:orc-core:jar:1.5.1.3.1.0.0-78:compile
[INFO] | | +- org.apache.orc:orc-shims:jar:1.5.1.3.1.0.0-78:compile
[INFO] | | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
[INFO] | | +- io.airlift:aircompressor:jar:0.10:compile
[INFO] | | \- org.apache.hadoop:hadoop-hdfs:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | +- org.eclipse.jetty:jetty-util-ajax:jar:9.4.14.v20181114:compile
[INFO] | | +- com.sun.jersey:jersey-core:jar:1.19:compile
[INFO] | | | \- javax.ws.rs:jsr311-api:jar:1.1.1:compile
[INFO] | | \- com.sun.jersey:jersey-server:jar:1.19:compile
[INFO] | +- jline:jline:jar:2.14.3:compile
[INFO] | +- org.eclipse.jetty:jetty-http:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty:jetty-util:jar:9.4.14.v20181114:compile
[INFO] | | \- org.eclipse.jetty:jetty-io:jar:9.4.14.v20181114:compile
[INFO] | +- org.eclipse.jetty:jetty-rewrite:jar:9.4.14.v20181114:compile
[INFO] | +- org.eclipse.jetty:jetty-servlet:jar:9.4.14.v20181114:compile
[INFO] | | \- org.eclipse.jetty:jetty-security:jar:9.4.14.v20181114:compile
[INFO] | +- org.eclipse.jetty:jetty-webapp:jar:9.4.14.v20181114:compile
[INFO] | | \- org.eclipse.jetty:jetty-xml:jar:9.4.14.v20181114:compile
[INFO] | +- joda-time:joda-time:jar:2.9.9:compile
[INFO] | +- org.apache.logging.log4j:log4j-1.2-api:jar:2.10.0:compile
[INFO] | | \- org.apache.logging.log4j:log4j-core:jar:2.10.0:compile
[INFO] | +- org.apache.logging.log4j:log4j-web:jar:2.10.0:compile
[INFO] | +- org.apache.commons:commons-compress:jar:1.9:compile
[INFO] | +- org.apache.ant:ant:jar:1.9.1:compile
[INFO] | | \- org.apache.ant:ant-launcher:jar:1.9.1:compile
[INFO] | +- net.sf.jpam:jpam:jar:1.1:compile
[INFO] | | \- commons-logging:commons-logging:jar:1.1.3:compile
[INFO] | +- com.tdunning:json:jar:1.8:compile
[INFO] | +- io.dropwizard.metrics:metrics-core:jar:3.2.6:compile
[INFO] | +- io.dropwizard.metrics:metrics-jvm:jar:3.2.6:compile
[INFO] | +- io.dropwizard.metrics:metrics-json:jar:3.2.6:compile
[INFO] | +- com.github.joshelser:dropwizard-metrics-hadoop-metrics2-reporter:jar:0.1.2:compile
[INFO] | | \- org.apache.hadoop:hadoop-common:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | +- org.apache.hadoop:hadoop-annotations:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- jdk.tools:jdk.tools:jar:1.8:system
[INFO] | | +- org.apache.commons:commons-math3:jar:3.6.1:compile
[INFO] | | +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | | +- javax.servlet.jsp:jsp-api:jar:2.1:runtime
[INFO] | | +- com.sun.jersey:jersey-servlet:jar:1.19:compile
[INFO] | | +- org.apache.commons:commons-configuration2:jar:2.1.1:compile
[INFO] | | +- com.google.re2j:re2j:jar:1.1:compile
[INFO] | | +- com.jcraft:jsch:jar:0.1.54:compile
[INFO] | | +- org.apache.kerby:kerb-simplekdc:jar:1.0.1:compile
[INFO] | | | +- org.apache.kerby:kerb-client:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerby-config:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerb-core:jar:1.0.1:compile
[INFO] | | | | | \- org.apache.kerby:kerby-pkix:jar:1.0.1:compile
[INFO] | | | | | +- org.apache.kerby:kerby-asn1:jar:1.0.1:compile
[INFO] | | | | | \- org.apache.kerby:kerby-util:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerb-common:jar:1.0.1:compile
[INFO] | | | | | \- org.apache.kerby:kerb-crypto:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerb-util:jar:1.0.1:compile
[INFO] | | | | \- org.apache.kerby:token-provider:jar:1.0.1:compile
[INFO] | | | | \- com.nimbusds:nimbus-jose-jwt:jar:3.10:compile
[INFO] | | | | +- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] | | | | +- net.minidev:json-smart:jar:2.3:compile
[INFO] | | | | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | | | | \- org.bouncycastle:bcprov-jdk15on:jar:1.52:compile
[INFO] | | | \- org.apache.kerby:kerb-admin:jar:1.0.1:compile
[INFO] | | | +- org.apache.kerby:kerb-server:jar:1.0.1:compile
[INFO] | | | | \- org.apache.kerby:kerb-identity:jar:1.0.1:compile
[INFO] | | | \- org.apache.kerby:kerby-xdr:jar:1.0.1:compile
[INFO] | | +- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
[INFO] | | \- com.fasterxml.woodstox:woodstox-core:jar:5.0.3:compile
[INFO] | \- javolution:javolution:jar:5.5.1:compile
[INFO] +- org.apache.hive:hive-service:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive:hive-llap-server:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.hive:hive-llap-common:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.hive:hive-llap-client:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | | \- org.apache.curator:apache-curator:pom:2.12.0:compile
[INFO] | | +- org.apache.hive:hive-llap-tez:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | +- io.netty:netty-all:jar:4.1.31.Final:compile
[INFO] | | +- org.apache.hive:hive-llap-common:test-jar:tests:3.1.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase:hbase-hadoop2-compat:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-metrics:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-metrics-api:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-mapreduce-client-core:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hadoop:hadoop-yarn-client:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-hdfs-client:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- com.squareup.okhttp:okhttp:jar:2.7.5:compile
[INFO] | | | \- com.squareup.okio:okio:jar:1.6.0:compile
[INFO] | | +- org.apache.hbase:hbase-server:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-http:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | | +- org.glassfish.jersey.core:jersey-server:jar:2.26:compile
[INFO] | | | | | +- org.glassfish.jersey.core:jersey-common:jar:2.26:compile
[INFO] | | | | | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] | | | | | +- org.glassfish.jersey.core:jersey-client:jar:2.26:compile
[INFO] | | | | | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.26:compile
[INFO] | | | | | \- org.glassfish.hk2.external:javax.inject:jar:2.5.0-b42:compile
[INFO] | | | | \- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.26:compile
[INFO] | | | +- org.apache.hbase:hbase-procedure:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-zookeeper:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.apache.hbase:hbase-replication:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | +- org.glassfish.web:javax.servlet.jsp:jar:2.3.2:compile
[INFO] | | | | \- org.glassfish:javax.el:jar:3.0.0:compile
[INFO] | | | +- javax.ws.rs:javax.ws.rs-api:jar:2.1:compile
[INFO] | | | +- org.apache.htrace:htrace-core:jar:3.2.0-incubating:compile
[INFO] | | | +- com.lmax:disruptor:jar:3.3.6:compile
[INFO] | | | +- org.apache.hadoop:hadoop-distcp:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-client:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- org.apache.hadoop:hadoop-mapreduce-client-common:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase:hbase-mapreduce:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase:hbase-common:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | \- com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile
[INFO] | | \- org.apache.hbase:hbase-hadoop-compat:jar:2.0.2.3.1.0.0-78:compile
[INFO] | +- javax.servlet.jsp:javax.servlet.jsp-api:jar:2.3.1:compile
[INFO] | +- commons-codec:commons-codec:jar:1.11:compile
[INFO] | +- org.eclipse.jetty:jetty-runner:jar:9.3.25.v20180904:compile
[INFO] | | +- org.eclipse.jetty:jetty-plus:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty:jetty-annotations:jar:9.4.14.v20181114:compile
[INFO] | | | +- org.ow2.asm:asm:jar:6.2:compile
[INFO] | | | \- org.ow2.asm:asm-commons:jar:7.0:compile
[INFO] | | | +- org.ow2.asm:asm-tree:jar:7.0:compile
[INFO] | | | \- org.ow2.asm:asm-analysis:jar:7.0:compile
[INFO] | | +- org.eclipse.jetty:jetty-jaas:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty.websocket:websocket-server:jar:9.4.14.v20181114:compile
[INFO] | | | +- org.eclipse.jetty.websocket:websocket-common:jar:9.4.14.v20181114:compile
[INFO] | | | | \- org.eclipse.jetty.websocket:websocket-api:jar:9.4.14.v20181114:compile
[INFO] | | | +- org.eclipse.jetty.websocket:websocket-client:jar:9.4.14.v20181114:compile
[INFO] | | | | \- org.eclipse.jetty:jetty-client:jar:9.4.14.v20181114:compile
[INFO] | | | \- org.eclipse.jetty.websocket:websocket-servlet:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty:jetty-jndi:jar:9.4.14.v20181114:compile
[INFO] | | +- org.eclipse.jetty:apache-jsp:jar:9.4.14.v20181114:compile
[INFO] | | | \- org.eclipse.jetty.toolchain:jetty-schemas:jar:3.1.2:compile
[INFO] | | \- org.eclipse.jetty:apache-jstl:jar:9.4.14.v20181114:compile
[INFO] | | +- org.apache.taglibs:taglibs-standard-spec:jar:1.2.5:compile
[INFO] | | \- org.apache.taglibs:taglibs-standard-impl:jar:1.2.5:compile
[INFO] | +- org.apache.thrift:libfb303:jar:0.9.3:compile
[INFO] | +- org.apache.curator:curator-recipes:jar:2.12.0:compile
[INFO] | \- org.jamon:jamon-runtime:jar:2.4.1:compile
[INFO] +- org.apache.hive:hive-serde:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.arrow:arrow-vector:jar:0.8.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.arrow:arrow-format:jar:0.8.0.3.1.0.0-78:compile
[INFO] | | +- org.apache.arrow:arrow-memory:jar:0.8.0.3.1.0.0-78:compile
[INFO] | | +- io.netty:netty-buffer:jar:4.1.31.Final:compile
[INFO] | | \- io.netty:netty-common:jar:4.1.31.Final:compile
[INFO] | +- com.carrotsearch:hppc:jar:0.7.2:compile
[INFO] | +- com.vlkan:flatbuffers:jar:1.2.0-3f79e055:compile
[INFO] | +- org.apache.avro:avro:jar:1.7.2:compile
[INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.8.8:compile
[INFO] | | +- com.thoughtworks.paranamer:paranamer:jar:2.3:compile
[INFO] | | \- org.xerial.snappy:snappy-java:jar:1.0.4.1:compile
[INFO] | +- net.sf.opencsv:opencsv:jar:2.3:compile
[INFO] | \- org.apache.parquet:parquet-hadoop-bundle:jar:1.10.0.3.1.0.0-78:compile
[INFO] +- org.apache.hive:hive-metastore:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive:hive-standalone-metastore:jar:3.1.0.3.1.0.0-78:compile
[INFO] | | +- org.datanucleus:datanucleus-api-jdo:jar:4.2.4:compile
[INFO] | | +- org.datanucleus:datanucleus-core:jar:4.1.17:compile
[INFO] | | +- org.datanucleus:datanucleus-rdbms:jar:4.1.19:compile
[INFO] | | +- org.datanucleus:javax.jdo:jar:3.2.0-m3:compile
[INFO] | | | \- javax.transaction:transaction-api:jar:1.1:compile
[INFO] | | \- sqlline:sqlline:jar:1.3.0:compile
[INFO] | +- com.google.guava:guava:jar:16.0:compile
[INFO] | +- org.apache.hbase:hbase-client:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase.thirdparty:hbase-shaded-protobuf:jar:2.1.0:compile
[INFO] | | +- org.apache.hbase:hbase-protocol-shaded:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | +- org.apache.hbase:hbase-protocol:jar:2.0.2.3.1.0.0-78:compile
[INFO] | | | \- junit:junit:jar:4.12:compile
[INFO] | | | \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] | | +- org.apache.hadoop:hadoop-aws:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | | \- com.amazonaws:aws-java-sdk-bundle:jar:1.11.271:compile
[INFO] | | +- commons-io:commons-io:jar:2.5:compile
[INFO] | | +- org.apache.hbase.thirdparty:hbase-shaded-miscellaneous:jar:2.1.0:compile
[INFO] | | +- org.apache.hbase.thirdparty:hbase-shaded-netty:jar:2.1.0:compile
[INFO] | | +- org.apache.htrace:htrace-core4:jar:4.2.0-incubating:compile
[INFO] | | +- org.jruby.jcodings:jcodings:jar:1.0.8:compile
[INFO] | | +- org.jruby.joni:joni:jar:2.1.11:compile
[INFO] | | +- org.apache.commons:commons-crypto:jar:1.0.0:compile
[INFO] | | \- org.apache.yetus:audience-annotations:jar:0.5.0:compile
[INFO] | +- com.jolbox:bonecp:jar:0.8.0.RELEASE:compile
[INFO] | +- com.zaxxer:HikariCP:jar:2.7.9:compile
[INFO] | +- org.apache.derby:derby:jar:10.14.2.0:compile
[INFO] | +- commons-pool:commons-pool:jar:1.6:compile
[INFO] | +- commons-dbcp:commons-dbcp:jar:1.4:compile
[INFO] | +- javax.jdo:jdo-api:jar:3.0.1:compile
[INFO] | | \- javax.transaction:jta:jar:1.1:compile
[INFO] | +- org.antlr:antlr-runtime:jar:3.5.2:compile
[INFO] | +- co.cask.tephra:tephra-api:jar:0.6.0:compile
[INFO] | +- co.cask.tephra:tephra-core:jar:0.6.0:compile
[INFO] | | +- com.google.code.gson:gson:jar:2.8.5:compile
[INFO] | | +- com.google.inject.extensions:guice-assistedinject:jar:3.0:compile
[INFO] | | +- org.apache.twill:twill-common:jar:0.6.0-incubating:compile
[INFO] | | +- org.apache.twill:twill-core:jar:0.6.0-incubating:compile
[INFO] | | | \- org.apache.twill:twill-api:jar:0.6.0-incubating:compile
[INFO] | | +- org.apache.twill:twill-discovery-api:jar:0.6.0-incubating:compile
[INFO] | | +- org.apache.twill:twill-discovery-core:jar:0.6.0-incubating:compile
[INFO] | | \- org.apache.twill:twill-zookeeper:jar:0.6.0-incubating:compile
[INFO] | \- co.cask.tephra:tephra-hbase-compat-1.0:jar:0.6.0:compile
[INFO] +- org.apache.hive:hive-shims:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive.shims:hive-shims-common:jar:3.1.0.3.1.0.0-78:compile
[INFO] | +- org.apache.hive.shims:hive-shims-0.23:jar:3.1.0.3.1.0.0-78:runtime
[INFO] | | \- org.apache.hadoop:hadoop-yarn-server-resourcemanager:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | +- com.google.inject.extensions:guice-servlet:jar:4.0:compile
[INFO] | | +- com.sun.jersey.contribs:jersey-guice:jar:1.19:compile
[INFO] | | | \- javax.inject:javax.inject:jar:1:compile
[INFO] | | +- org.apache.hadoop:hadoop-yarn-common:jar:3.1.1:compile
[INFO] | | | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.9.8:compile
[INFO] | | | \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.9.8:compile
[INFO] | | | \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.9.8:compile
[INFO] | | +- org.apache.hadoop:hadoop-yarn-api:jar:3.1.1.3.1.0.0-78:compile
[INFO] | | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | | | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | | +- com.sun.jersey:jersey-client:jar:1.19:compile
[INFO] | | +- org.apache.hadoop:hadoop-yarn-server-common:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | | +- org.apache.hadoop:hadoop-yarn-registry:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | | | +- commons-daemon:commons-daemon:jar:1.0.13:runtime
[INFO] | | | | \- dnsjava:dnsjava:jar:2.1.7:runtime
[INFO] | | | +- org.apache.geronimo.specs:geronimo-jcache_1.0_spec:jar:1.0-alpha-1:runtime
[INFO] | | | +- org.ehcache:ehcache:jar:3.5.3:runtime
[INFO] | | | +- com.zaxxer:HikariCP-java7:jar:2.4.12:runtime
[INFO] | | | \- com.microsoft.sqlserver:mssql-jdbc:jar:6.2.2.jre8:runtime
[INFO] | | +- org.apache.hadoop:hadoop-yarn-server-applicationhistoryservice:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | | +- org.objenesis:objenesis:jar:1.0:runtime
[INFO] | | | \- de.ruedigermoeller:fst:jar:2.50:runtime
[INFO] | | | \- com.cedarsoftware:java-util:jar:1.9.0:runtime
[INFO] | | | \- com.cedarsoftware:json-io:jar:2.5.1:runtime
[INFO] | | +- org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:3.1.1.3.1.0.0-78:runtime
[INFO] | | \- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:runtime
[INFO] | \- org.apache.hive.shims:hive-shims-scheduler:jar:3.1.0.3.1.0.0-78:runtime
[INFO] +- org.apache.hive:hive-service-rpc:jar:3.1.0.3.1.0.0-78:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.6:compile
[INFO] +- org.apache.httpcomponents:httpcore:jar:4.4.10:compile
[INFO] +- org.apache.thrift:libthrift:jar:0.9.3:compile
[INFO] +- org.apache.zookeeper:zookeeper:jar:3.4.6.3.1.0.0-78:compile
[INFO] | \- io.netty:netty:jar:3.10.5.Final:compile
[INFO] +- org.apache.curator:curator-framework:jar:2.12.0:compile
[INFO] | \- org.apache.curator:curator-client:jar:2.12.0:compile
[INFO] \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
PCF logs :
[ERR] Caused by: java.lang.NoSuchMethodError: org.apache.tomcat.util.ExceptionUtils.preload()V
[ERR] at org.apache.catalina.startup.Tomcat.<init>(Tomcat.java:160)
[ERR] at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:160)
[ERR] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:181)
[ERR] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:154)
[APP/PROC/WEB/0] [ERR] ... 16 more
I have tried diffrent springboot version and fllowing properties with diffrent tomcat version.
<properties>
<java.version>1.8</java.version>
<maven.compiler.target>1.8</maven.compiler.target>
<tomcat.version>8.5.37</tomcat.version>
</properties>
Also tried to exclude tomcat in web and added from external dependency but nothing is working on pcf
It's because your dependencies are missing the following:
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<version>8.5.37</version>
</dependency>
Make sure to add it into your pom.xml.

Maven dependency doesn't bring down correct Selenium version 3.4.0

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

Arquillian missing dependency running tests

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

HTTP Status 409 - The target deployment path [...] does not match the POM's expected path prefix

I use Artifactory as a Maven Repository, on which I'm not admin (corporate repo).
I'm trying to use XmlSchema (through many dependencies of appfuse-basic-struts archetype) but I'm face of an issue that I am not able to understand when I run mvn package:
HTTP Status 409 - The target deployment path 'org/apache/ws/commons/XmlSchema/1.1/XmlSchema-1.1.pom' does not match the POM's expected path prefix 'org/apache/ws/commons/XmlSchema/SNAPSHOT'. Please verify your POM content for correctness and make sure the source path is a valid Maven repository root path.
type Status report
message The target deployment path
'org/apache/ws/commons/XmlSchema/1.1/XmlSchema-1.1.pom' does not match
the POM's expected path prefix
'org/apache/ws/commons/XmlSchema/SNAPSHOT'. Please verify your POM
content for correctness and make sure the source path is a valid Maven
repository root path.
description The request could not be completed due to a conflict with
the current state of the resource (The target deployment path
'org/apache/ws/commons/XmlSchema/1.1/XmlSchema-1.1.pom' does not match
the POM's expected path prefix
'org/apache/ws/commons/XmlSchema/SNAPSHOT'. Please verify your POM
content for correctness and make sure the source path is a valid Maven
repository root path.). Apache Tomcat/6.0.18
Even in transitive dependencies, I don't find it.
Can anyone explain me what the trouble ?
I found this post Using Maven-3 Got Http 409 error when re-deploy with archiva but it does not seem to match my issue.
EDIT 1 : this work quite well when I don't use my corporate repo.
EDIT 2 : Here the view of the repo via http :
Index of repo/org/apache/ws/commons/XmlSchema/1.1
Name Last modified Size
../
maven-metadata.xml-> - -
maven-metadata.xml.md5-> - -
maven-metadata.xml.sha1-> - -
XmlSchema-1.1.jar 18-Sep-2006 20:12 124.96 KB
XmlSchema-1.1.jar.asc-> - -
XmlSchema-1.1.jar.md5 18-Sep-2006 20:12 32 bytes
XmlSchema-1.1.jar.sha1 18-Sep-2006 20:12 40 bytes
XmlSchema-1.1.pom-> - -
XmlSchema-1.1.pom.md5-> - -
XmlSchema-1.1.pom.sha1-> - -
EDIT 3 : Dependencies
mvn dependency:tree
[INFO] com.edf.dpi.esip.gdt:gdt-ihm:war:7.0.1-SNAPSHOT
[INFO] +- org.appfuse:appfuse-struts:war:2.0-m5:compile
[INFO] +- org.appfuse:appfuse-struts:warpath:2.0-m5:compile
[INFO] | +- org.appfuse:appfuse-web-common:war:2.0-m5:compile
[INFO] | +- org.appfuse:appfuse-web-common:warpath:2.0-m5:compile
[INFO] | | +- org.appfuse:appfuse-service:jar:2.0-m5:compile
[INFO] | | | +- aspectj:aspectjweaver:jar:1.5.3:compile
[INFO] | | | +- net.sf.ehcache:ehcache:jar:1.3.0-beta2:compile
[INFO] | | | | \- net.sf.jsr107cache:jsr107cache:jar:1.0:compile
[INFO] | | | +- velocity:velocity:jar:1.4:compile
[INFO] | | | | \- velocity:velocity-dep:jar:1.4:runtime
[INFO] | | | \- org.codehaus.xfire:xfire-all:jar:1.2.6:compile
[INFO] | | | +- org.codehaus.xfire:xfire-aegis:jar:1.2.6:compile
[INFO] | | | | \- net.java.dev.stax-utils:stax-utils:jar:20040917:compile
[INFO] | | | +- org.codehaus.xfire:xfire-ws-security:jar:1.2.6:compile
[INFO] | | | | +- xfire:opensaml:jar:1.0.1:compile
[INFO] | | | | +- bouncycastle:bcprov-jdk15:jar:133:compile
[INFO] | | | | +- xerces:xercesImpl:jar:2.7.1:compile
[INFO] | | | | +- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] | | | | +- xml-security:xmlsec:jar:1.3.0:compile
[INFO] | | | | +- wss4j:wss4j:jar:1.5.1:compile
[INFO] | | | | \- commons-discovery:commons-discovery:jar:0.2:compile
[INFO] | | | +- org.codehaus.xfire:xfire-core:jar:1.2.6:compile
[INFO] | | | | +- wsdl4j:wsdl4j:jar:1.6.1:compile
[INFO] | | | | +- jaxen:jaxen:jar:1.1-beta-9:compile
[INFO] | | | | | \- xerces:xmlParserAPIs:jar:2.6.2:compile
[INFO] | | | | +- stax:stax-api:jar:1.0.1:compile
[INFO] | | | | +- org.apache.ws.commons:XmlSchema:jar:1.1:compile
[INFO] | | | | +- org.codehaus.woodstox:wstx-asl:jar:3.2.0:compile
[INFO] | | | | +- jdom:jdom:jar:1.0:compile
[INFO] | | | | \- commons-httpclient:commons-httpclient:jar:3.0:compile
[INFO] | | | +- org.codehaus.xfire:xfire-java5:jar:1.2.6:compile
[INFO] | | | | \- xfire:xfire-jsr181-api:jar:1.0-M1:compile
[INFO] | | | +- org.codehaus.xfire:xfire-generator:jar:1.2.6:compile
[INFO] | | | | \- org.codehaus.xfire:xfire-jaxb2:jar:1.2.6:compile
[INFO] | | | | \- com.sun.xml.bind:jaxb-xjc:jar:2.0.1:compile
[INFO] | | | | \- com.sun.xml.bind:jaxb-impl:jar:2.0.1:compile
[INFO] | | | +- org.codehaus.xfire:xfire-xmlbeans:jar:1.2.6:compile
[INFO] | | | | \- xmlbeans:xbean:jar:2.2.0:compile
[INFO] | | | +- org.codehaus.xfire:xfire-annotations:jar:1.2.6:compile
[INFO] | | | | \- commons-attributes:commons-attributes-api:jar:2.1:compile
[INFO] | | | | +- ant:ant:jar:1.5:compile
[INFO] | | | | \- qdox:qdox:jar:1.5:compile
[INFO] | | | +- org.codehaus.xfire:xfire-jaxws:jar:1.2.6:compile
[INFO] | | | | +- javax.xml.ws:jaxws-api:jar:2.0:compile
[INFO] | | | | | \- javax.xml.bind:jaxb-api:jar:2.0:compile
[INFO] | | | | | \- javax.xml.bind:jsr173_api:jar:1.0:compile
[INFO] | | | | +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.3:compile
[INFO] | | | | \- javax.xml.soap:saaj-api:jar:1.3:compile
[INFO] | | | \- org.codehaus.xfire:xfire-spring:jar:1.2.6:compile
[INFO] | | | \- org.apache.xbean:xbean-spring:jar:2.8:compile
[INFO] | | +- commons-collections:commons-collections:jar:3.2:compile
[INFO] | | +- commons-dbcp:commons-dbcp:jar:1.2.2:compile
[INFO] | | | \- commons-pool:commons-pool:jar:1.3:compile
[INFO] | | +- org.directwebremoting:dwr:jar:2.0.1:compile
[INFO] | | +- javax.servlet:jstl:jar:1.1.2:compile
[INFO] | | +- taglibs:standard:jar:1.1.2:compile
[INFO] | | +- struts-menu:struts-menu:jar:2.4.2:compile
[INFO] | | | +- commons-digester:commons-digester:jar:1.7:compile
[INFO] | | | \- velocity-tools:velocity-tools-view:jar:1.0:compile
[INFO] | | +- opensymphony:clickstream:jar:1.0.2:compile
[INFO] | | +- opensymphony:oscache:jar:2.3:compile
[INFO] | | +- opensymphony:sitemesh:jar:2.2.1:compile
[INFO] | | \- org.tuckey:urlrewrite:jar:2.5.2:compile
[INFO] | +- org.apache.struts:struts2-core:jar:2.0.6:compile
[INFO] | | +- opensymphony:xwork:jar:2.0.1:compile
[INFO] | | +- freemarker:freemarker:jar:2.3.8:compile
[INFO] | | +- opensymphony:ognl:jar:2.6.11:compile
[INFO] | | +- commons-logging:commons-logging:jar:1.1:compile
[INFO] | | \- com.sun:tools:jar:1.5.0:system
[INFO] | +- org.apache.struts:struts2-codebehind-plugin:jar:2.0.6:compile
[INFO] | +- org.apache.struts:struts2-spring-plugin:jar:2.0.6:compile
[INFO] | +- commons-fileupload:commons-fileupload:jar:1.1.1:compile
[INFO] | +- commons-io:commons-io:jar:1.1:compile
[INFO] | +- displaytag:displaytag:jar:1.1:compile
[INFO] | | +- commons-lang:commons-lang:jar:2.1:compile
[INFO] | | +- com.lowagie:itext:jar:1.3:compile
[INFO] | | \- commons-beanutils:commons-beanutils:jar:1.7.0:compile
[INFO] | +- org.acegisecurity:acegi-security-tiger:jar:1.0.3:compile
[INFO] | | \- org.acegisecurity:acegi-security:jar:1.0.3:compile
[INFO] | | +- commons-codec:commons-codec:jar:1.3:compile
[INFO] | | \- oro:oro:jar:2.0.8:compile
[INFO] | +- log4j:log4j:jar:1.2.15:compile
[INFO] | | +- javax.mail:mail:jar:1.4:compile
[INFO] | | | \- javax.activation:activation:jar:1.1:compile
[INFO] | | +- javax.jms:jms:jar:1.1:compile
[INFO] | | +- com.sun.jdmk:jmxtools:jar:1.2.1:compile
[INFO] | | \- com.sun.jmx:jmxri:jar:1.2.1:compile
[INFO] | \- org.springframework:spring:jar:2.0.5:compile
[INFO] +- org.appfuse:appfuse-hibernate:jar:2.0-m5:compile
[INFO] | +- org.appfuse:appfuse-data-common:jar:2.0-m5:compile
[INFO] | | \- javax.persistence:persistence-api:jar:1.0:compile
[INFO] | \- org.hibernate:hibernate-annotations:jar:3.2.1.ga:compile
[INFO] | \- org.hibernate:hibernate:jar:3.2.1.ga:compile
[INFO] | +- javax.transaction:jta:jar:1.0.1B:compile
[INFO] | +- asm:asm-attrs:jar:1.5.3:compile
[INFO] | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | +- antlr:antlr:jar:2.7.6:compile
[INFO] | +- cglib:cglib:jar:2.1_3:compile
[INFO] | \- asm:asm:jar:1.5.3:compile
[INFO] +- mysql:mysql-connector-java:jar:5.0.5:compile
[INFO] +- javax.servlet:jsp-api:jar:2.0:provided
[INFO] +- javax.servlet:servlet-api:jar:2.4:provided
[INFO] +- jmock:jmock:jar:1.1.0:test (scope not updated to compile)
[INFO] +- junit:junit:jar:4.10:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.1:test
[INFO] +- org.springframework:spring-mock:jar:2.0.8:test
[INFO] \- org.subethamail:subethasmtp-wiser:jar:1.0.3:test
[INFO] \- org.subethamail:subethasmtp-smtp:jar:1.0.3:test
The transitive dependencies have practically been poisoned.
The best thing you can do is check if the original POM of 'XmlSchema' has been publish with the version 'SNAPSHOT' or not. If it has, ask the project maintainers to correct this mistake and re-publish the POM; If it hasn't been published this way, remove the incorrect POM file and make sure that you resolve it again from a healthy source.
If both of these options aren't applicable, you can download the POM file, edit to correct and redeploy it to your local repository
I had this same problem and I was able to get around it by checking the "Supress POM Consistency Checks" check box in the Artifactory remote repository settings.
maven repo settings
I have the same error: the official pom of XmlSchema v1.1 is wrong, there is no healty source you can get it from so you have the following options:
correct it by hand on artifactory,
copy it by hand to your local repository (no changes needed),
upgrade to a more recent version (since it is a transitive dependency of xfire 1.2.6 this could be not possible, but you can try).
For more info see the answer to this post: Maven Central Repository admins know that the pom is wrong but they cannot correct it and Apache doesn't support XmlSchema 1.1 anymore.
Furthermore this is not the only problematic pom: also Apache commons-logging v1.1 is wrong (it lists wrong dependencies), so I always use v1.1.1 or above.

Resources