[
https://issues.apache.org/jira/browse/STANBOL-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528196#comment-14528196
]
Rupert Westenthaler commented on STANBOL-1419:
----------------------------------------------
A short Overview about required code and configuration changes while updating
libraries in the 0.12 branch
h3. httpcomponents from {{4.2}} to {{4.4}} for Stanbol 0.12 and {{4.3}} to
{{4.4}} in Stanbol trunk
* From {{4.2}} to {{4.3}} a lot of multipart mime code required changes.
{{4.4}} again breaks this code because of {{AbstractContentBody}} subclasses
are now treated differently to other {{ContentBody}} implementations.
* Also decided to adapt the commons testing modules to use the new API
** IMPORTANT: The new httpcomponents version do no longer allow to set
authentication on a request basis. Because of that the setter for username and
passowrd in the Request was removed. UnitTests that need authentication will
need to set it on a unit test class basis. A new {{String getCredentials()}}
was added to the {{StanbolTestBase}} for doing so.
h3. Clerezza and Jena update
* The update to Clerezza will also introduce Apache Jena versions to the
{{0.12}} branch. The trunk version is using this since some time.
* The Contenthub Search Related module uses LARQ that was removed from Apache
Jena. Because of that this module will now embed an older version of Jena (and
Lucene) to keep the full text search extensions to SPARQL used by this module.
* The new Jena version also comes with newer version of RDF parsers and
serializes. This requires several changes to integration tests - first the DOAP
files used to test the Entityhub are not all valid RDF XML. Those files needed
to be fixed to be accepted by the new parser. Also some Regex checks in
integration tests needed to be adapted as the new serializers do write data
slightly differently (e.g. using tabs instead of spaces)
h3. OSGI related updates
* The update of the {{maven-scr-plugin}} required to adapt several scr
annotations across Stanbol. It also required to increase the OSGI version to
4.3.1 for the 0.12 branch (see FELIX-4450 why).
* The update to OSGI 4.3.1 required several Mocks used in unit tests of stanbol
components to be adapted to the changed APIs (0.12 only as 1.0.0 had this done
already before)
> Update common dependencies
> --------------------------
>
> Key: STANBOL-1419
> URL: https://issues.apache.org/jira/browse/STANBOL-1419
> Project: Stanbol
> Issue Type: Task
> Affects Versions: 1.0.0, 0.12.1
> Reporter: Rupert Westenthaler
> Assignee: Rupert Westenthaler
>
> For both active development branches {{trunk}} and {{release-0.12}} commonly
> used dependencies need to be updated to current versions.
> This especially includes
> * OSGI and Webconsole
> * Apache Sling (launchpad and installer framework)
> ** especially switching to the new Apache Sling Logger version
> * Clerezza
> ** also adapt 0.12 to use the clerezza provisioning instead
> * Apache Jena (esp. for {{release-0.12}})
> * Apache Marmotta
> * Apache Commons (esp. http components)
> * XML and Json libs (e.g. woodstox, jackson)
> This will not update Apache Solr (currently 4.4.0) nor Apache Tika.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)