Jody has brought up that the correct approach here is to:
make a decision [on what version to use], mark the version we support in the dependencyManagement section; and then carefully add an excludes clause to prevent the transitive dependency sneaking in on accident
4.3.3 is the most common / average version among all the dependancies. 4.3.6 is the most recent.
4.2.5 is the earliest. 4.3.6 appears to be backwards compatible to 4.2.x.
Probably the best choice is 4.3.6.
ยทยทยท
On Fri, Jun 24, 2016 at 3:50 PM, Torben Barsballe (JIRA) <jira@anonymised.com> wrote:
The geoserver release process collects all jars for all extensions in a single maven process when building extensions. This means that when there are conflicting jar versions, it will choose some arbitrary version from among the valid ones. In this instance, various extension depend on numerous httpclient and httpcore versions:
[INFO] org.geoserver.script:gs-script-groovy:jar:2.9-SNAPSHOT
[INFO] \- org.geoscript:geoscript-groovy:jar:1.7-SNAPSHOT:compile
[INFO] \- org.geotools:gt-netcdf:jar:15-SNAPSHOT:compile
[INFO] \- edu.ucar:cdm:jar:4.6.2:compile
[INFO] +- edu.ucar:httpservices:jar:4.6.2:runtime
[INFO] | \- org.apache.httpcomponents:httpclient:jar:4.3.6:runtime
[INFO] \- org.apache.httpcomponents:httpcore:jar:4.3.3:runtime
[INFO] org.geoserver.community:gs-web-solr:jar:2.9-SNAPSHOT
[INFO] \- org.apache.solr:solr-solrj:jar:4.9.0:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.3.1:compile
[INFO] +- org.apache.httpcomponents:httpcore:jar:4.3:compile
[INFO] \- org.apache.httpcomponents:httpmime:jar:4.3.1:compile
[INFO] org.geoserver.community:gs-wps-remote:jar:2.9-SNAPSHOT
[INFO] \- org.igniterealtime.smack:smack-bosh:jar:4.0.3:compile
[INFO] \- org.igniterealtime.jbosh:jbosh:jar:0.8.0:compile
[INFO] \- org.apache.httpcomponents:httpclient:jar:4.3.3:compile
[INFO] \- org.apache.httpcomponents:httpcore:jar:4.3.2:compile
[INFO] org.geoserver.community:gs-gwc-s3:jar:2.9-SNAPSHOT
[INFO] \- org.geowebcache:gwc-aws-s3:jar:1.9-SNAPSHOT:compile
[INFO] \- com.amazonaws:aws-java-sdk-s3:jar:1.9.30:compile
[INFO] \- com.amazonaws:aws-java-sdk-kms:jar:1.9.30:compile
[INFO] \- com.amazonaws:aws-java-sdk-core:jar:1.9.30:compile
[INFO] \- org.apache.httpcomponents:httpclient:jar:4.3.4:compile
[INFO] \- org.apache.httpcomponents:httpcore:jar:4.3.2:compile
[INFO] org.geoserver.community:gs-release:jar:2.9-SNAPSHOT
[INFO] +- org.geoserver.script:gs-script-groovy:jar:2.9-SNAPSHOT:compile
[INFO] | \- org.geoscript:geoscript-groovy:jar:1.7-SNAPSHOT:compile
[INFO] | \- org.geotools:gt-netcdf:jar:15-SNAPSHOT:compile
[INFO] | \- edu.ucar:cdm:jar:4.6.2:compile
[INFO] | \- edu.ucar:httpservices:jar:4.6.2:runtime
[INFO] \- org.geoserver.community:gs-web-solr:jar:2.9-SNAPSHOT:compile
[INFO] \- org.apache.solr:solr-solrj:jar:4.9.0:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.3.1:compile
[INFO] +- org.apache.httpcomponents:httpcore:jar:4.3:compile
[INFO] \- org.apache.httpcomponents:httpmime:jar:4.3.1:compile
[INFO] org.geoserver.extension:gs-printing:jar:2.9-SNAPSHOT
[INFO] \- org.mapfish.print:print-lib:jar:2.1.2:compile
[INFO] \- com.codahale.metrics:metrics-httpclient:jar:3.0.2:compile
[INFO] \- org.apache.httpcomponents:httpclient:jar:4.2.5:compile
[INFO] \- org.apache.httpcomponents:httpcore:jar:4.2.4:compile
[INFO] org.geoserver.extension:gs-grib:jar:2.9-SNAPSHOT
[INFO] \- org.geotools:gt-grib:jar:15-SNAPSHOT:compile
[INFO] \- edu.ucar:cdm:jar:4.6.2:compile
[INFO] +- edu.ucar:httpservices:jar:4.6.2:runtime
[INFO] | \- org.apache.httpcomponents:httpclient:jar:4.3.6:runtime
[INFO] \- org.apache.httpcomponents:httpcore:jar:4.3.3:runtime
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ gs-netcdf ---
[INFO] org.geoserver.extension:gs-netcdf:jar:2.9-SNAPSHOT
[INFO] \- org.geotools:gt-netcdf:jar:15-SNAPSHOT:compile
[INFO] \- edu.ucar:cdm:jar:4.6.2:compile
[INFO] +- edu.ucar:httpservices:jar:4.6.2:runtime
[INFO] | \- org.apache.httpcomponents:httpclient:jar:4.3.6:runtime
[INFO] \- org.apache.httpcomponents:httpcore:jar:4.3.3:runtime
[INFO] org.geoserver:gs-release:jar:2.9-SNAPSHOT
[INFO] +- org.geoserver.extension:gs-printing:jar:2.9-SNAPSHOT:compile
[INFO] | \- org.mapfish.print:print-lib:jar:2.1.2:compile
[INFO] | \- com.codahale.metrics:metrics-httpclient:jar:3.0.2:compile
[INFO] | \- org.apache.httpcomponents:httpclient:jar:4.2.5:compile
[INFO] \- org.geoserver.extension:gs-grib:jar:2.9-SNAPSHOT:compile
[INFO] \- org.geotools:gt-grib:jar:15-SNAPSHOT:compile
[INFO] \- edu.ucar:cdm:jar:4.6.2:compile
[INFO] +- edu.ucar:httpservices:jar:4.6.2:runtime
[INFO] \- org.apache.httpcomponents:httpcore:jar:4.3.3:compile
When running mvn -Prelease assembly:attached , we wind up with httpcore 4.3.3 and httpclient 4.2.5.
Note that httpcore is a dependency of httpclient and they should match versions.
PR which explicitly declares these dependancies as version 4.3.3 in the release project can be found here: https://github.com/geoserver/geoserver/pull/1652
4.3.3 was chosen based on the most common / safe jar among all dependencies
|
This message was sent by Atlassian JIRA (v1000.98.4#100004-sha1:567e5d0)
|
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
Geoserver-devel mailing list
Geoserver-devel@anonymised.comsts.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel