cancel
Showing results for 
Search instead for 
Did you mean: 

Import specific version of the library

Stanislav_Holde
Champ in-the-making
Champ in-the-making

Hi guys. I have a problem with HttpClient lib. Nuxeo DAM imports HttpClient v4.2.4 but i need v4.3.5. OSGI spec provides import package feature but for example nuxeo-automation-io or nuxeo-automation-server modules which uses HttpClient not specifies this section in theirs manifests.

So my question is how to import and setup specific version of the library that already in use by nuxeo platform without damaging nuxeo functional ?

Thanks.

1 ACCEPTED ANSWER

Julien_Carsique
Elite Collaborator
Elite Collaborator

Hi,

The perfect solution is to change the version in org.nuxeo:nuxeo-ecm, then run the platform tests and if everything is fine, send a pull-request of the version upgrade to Nuxeo.

A quick and dirty workaround is to embed the wanted version in your JARs making them use a different implementation than the rest of the platform.

On the packaging side, if you deploy your addon via a Marketplace Package, then the system will take care of upgrading the version of HttpClient in nxserver/lib while yours is greater than the Nuxeo one.

View answer in original post

3 REPLIES 3

Florent_Guillau
World-Class Innovator
World-Class Innovator

Have you tried just replacing the httpclient-4.2.4.jar JAR in nxserver/lib with the one you want? Aren't they binary compatible?

Stanislav_Holde
Champ in-the-making
Champ in-the-making

Nope, but how can I be sure it will not break anything on the production environment ?

Julien_Carsique
Elite Collaborator
Elite Collaborator

Hi,

The perfect solution is to change the version in org.nuxeo:nuxeo-ecm, then run the platform tests and if everything is fine, send a pull-request of the version upgrade to Nuxeo.

A quick and dirty workaround is to embed the wanted version in your JARs making them use a different implementation than the rest of the platform.

On the packaging side, if you deploy your addon via a Marketplace Package, then the system will take care of upgrading the version of HttpClient in nxserver/lib while yours is greater than the Nuxeo one.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.