transitive-dependency

How to debug artifact replacement in Maven

 ̄綄美尐妖づ 提交于 2019-12-12 18:28:27
问题 I have a parent project contains a dozen child projects, one of the child projects use org.apache.httpcomponents:httpclient:jar:4.3.5 , which depends on org.apache.httpcomponents:httpcore:jar:4.3.2 . However, the result version of httpcore is resolved to 4.2.1 instead of 4.3.2. The following is an extraction of the output when running dependency:tree with debug option checked in Eclipse: ... [DEBUG] Using mirror nexus (http://192.168.0.111:8081/nexus/content/groups/public) for apache

What does this “all*.exclude” means in Gradle transitive dependency?

徘徊边缘 提交于 2019-12-11 04:48:59
问题 I wonder what does "all*.exclude" mean in Gradle transitive dependency ? configurations { compile.exclude group: 'org.hamcrest', module: 'hamcrest-core' all*.exclude group: 'org.mockito', module: 'mockito-all' } Is "all*.exclude" in the code above syntax of Gradle or some else. 回答1: In this context, all*. refers to all configurations ... and it applies exclude group: 'org.mockito', module: 'mockito-all' to all of them. This all*. syntax this is the short-handed notation of: configurations {

maven - How to solve this error : “The POM for XXX is invalid”?

时间秒杀一切 提交于 2019-12-11 01:31:58
问题 I'm building a simple project with maven. I'm unable to get it to build because a transitive dependencies is missing, namely objenesis 1.0 . I run maven in debug mode and got this message: [DEBUG] ======================================================================= [WARNING] The POM for org.jmock:jmock-junit4:jar:2.6.0 is invalid, transitive dependencies (if any) will not be available: 1 problem was encountered while building the effective model for org.jmock:jmock-junit4:2.6.0 [ERROR]

SPARQL Query Error with OPTION(TRANSITIVE) on Jena

人盡茶涼 提交于 2019-12-10 11:03:17
问题 I have the following Query PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?type WHERE { { SELECT * WHERE { ?x rdfs:subClassOf ?type . } } OPTION (TRANSITIVE, t_distinct, t_in (?x), t_out (?type) ) . FILTER (?x = <http://dbpedia.org/ontology/Hospital>) } It works fine when i send it to Virtuoso endpoint but does not work on my Jena instance. In specific i get the following error: INFO [1] 400 Parse error: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?type WHERE { {

maven same transitive dependency but different version

耗尽温柔 提交于 2019-12-07 23:22:17
问题 I am running into a problem where I have the following 2 dependencies: org.apache.felix » org.apache.felix.utils » 1.6.0 and com.github.rotty3000 » phidias » 0.3.2 they both have transitive dependency on org.osgi.core, felix depends on version 4.1.0 and phidias depends on version 5.0.0 we need version 5.0.0 for our code to correctly compile if I put my dependencies as: <dependencies> <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.apache.felix.utils</artifactId> <version>1.6

How to get the information of transitive dependencies in a gradle task?

不打扰是莪最后的温柔 提交于 2019-12-07 09:46:25
问题 I want to get information of all dependencies (including transitive ones) in a gradle task. I tried the code: class MyGradlePlugin implements Plugin<Project> { void apply(Project project) { project.afterEvaluate { println " Project:" + project.name project.configurations.each { conf -> println " Configuration: ${conf.name}" conf.allDependencies.each { dep -> println " ${dep.group}:${dep.name}:${dep.version}" } } } } } But it only prints the declared ones, no transitive ones. That means, if my

SPARQL Query Error with OPTION(TRANSITIVE) on Jena

江枫思渺然 提交于 2019-12-06 05:30:56
I have the following Query PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?type WHERE { { SELECT * WHERE { ?x rdfs:subClassOf ?type . } } OPTION (TRANSITIVE, t_distinct, t_in (?x), t_out (?type) ) . FILTER (?x = <http://dbpedia.org/ontology/Hospital>) } It works fine when i send it to Virtuoso endpoint but does not work on my Jena instance. In specific i get the following error: INFO [1] 400 Parse error: PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?type WHERE { { SELECT * WHERE { ?x rdfs:subClassOf ?type . } } OPTION (TRANSITIVE, t_distinct, t_in (?x), t_out (?type

maven same transitive dependency but different version

a 夏天 提交于 2019-12-06 05:20:35
I am running into a problem where I have the following 2 dependencies: org.apache.felix » org.apache.felix.utils » 1.6.0 and com.github.rotty3000 » phidias » 0.3.2 they both have transitive dependency on org.osgi.core, felix depends on version 4.1.0 and phidias depends on version 5.0.0 we need version 5.0.0 for our code to correctly compile if I put my dependencies as: <dependencies> <dependency> <groupId>org.apache.felix</groupId> <artifactId>org.apache.felix.utils</artifactId> <version>1.6.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.github.rotty3000</groupId>

How to get the information of transitive dependencies in a gradle task?

匆匆过客 提交于 2019-12-05 16:21:40
I want to get information of all dependencies (including transitive ones) in a gradle task. I tried the code: class MyGradlePlugin implements Plugin<Project> { void apply(Project project) { project.afterEvaluate { println " Project:" + project.name project.configurations.each { conf -> println " Configuration: ${conf.name}" conf.allDependencies.each { dep -> println " ${dep.group}:${dep.name}:${dep.version}" } } } } } But it only prints the declared ones, no transitive ones. That means, if my dependencies is: dependencies { compile "com.google.guava:guava:18.0" compile 'org.codehaus.groovy

Trying to build an OSGi bundle in Maven with embedded dependencies. Can't seem to exclude transitive dependencies from BND classpath

谁都会走 提交于 2019-12-05 03:27:06
Basically, my web service must be deployable as a single OSGi jar bundle. Therefore: The bundle must contain all compile and runtime maven dependencies. It must also contain all non-optional dependencies that depend on those dependencies (i.e., the transitive dependencies). I'm attempting to use the maven-bundle-plugin to accomplish this. I've used Embed-Dependency to get all my compile and runtime dependencies in the bundle, and I've used Embed-Transitive to embed all the transitive dependencies. I then figured out how to use excludeDependencies to exclude Maven dependencies from the BND