<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: My contrib is using a newer third party library version as providey by Nuxeo. How can I upgrade the dependencies? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/my-contrib-is-using-a-newer-third-party-library-version-as/m-p/327404#M14405</link>
    <description>&lt;P&gt;Thanks for your advice.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2013 15:37:38 GMT</pubDate>
    <dc:creator>Edgar_</dc:creator>
    <dc:date>2013-02-25T15:37:38Z</dc:date>
    <item>
      <title>My contrib is using a newer third party library version as providey by Nuxeo. How can I upgrade the dependencies?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/my-contrib-is-using-a-newer-third-party-library-version-as/m-p/327402#M14403</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;my first attempt was to adjust the version number in the corresponding dependency of Nuxeo's root &lt;EM&gt;pom.xml&lt;/EM&gt;. But after rebuilding the Nuxeo distribution nothing has changed, i.e. my contribution compiles with the 'old' library version and throws a NoSuchMethodException when using this library.&lt;/P&gt;
&lt;P&gt;My second attempt was to change the &lt;EM&gt;assembly.xml&lt;/EM&gt; in the tomcat distribution folder:&lt;/P&gt;
&lt;P&gt;[..]&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;target name="reorganize-libs"&amp;gt;
{..]
    &amp;lt;!-- Replace 'old' versions of the Apache POI libraries --&amp;gt;
    &amp;lt;delete&amp;gt;
      &amp;lt;fileset dir="${distribution.dir}/nxserver/lib"&amp;gt;
        &amp;lt;include name="poi-*" /&amp;gt;
      &amp;lt;/fileset&amp;gt;
    &amp;lt;/delete&amp;gt;
    &amp;lt;copy todir="${distribution.dir}/nxserver/lib"&amp;gt;
        &amp;lt;artifact:resolveFile key="org.apache.poi:poi:3.9:jar::compile"/&amp;gt;
        &amp;lt;artifact:resolveFile key="org.apache.poi:poi-ooxml:3.9:jar::compile"/&amp;gt;
        &amp;lt;artifact:resolveFile key="org.apache.poi:poi-scratchpad:3.9:jar::compile"/&amp;gt;
    &amp;lt;/copy&amp;gt;

[..]

&amp;lt;/target&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;[..]&lt;/P&gt;
&lt;P&gt;This time my contribution compiles with the 'new' library version and the exception isn't thrown anymore.&lt;/P&gt;
&lt;P&gt;But I'm wondering whether this is the way I should go?&lt;/P&gt;
&lt;P&gt;Where are Nuxeo's relevant dependencies to the 'old' version of the third party library (here: poi:3.5-beta6)?&lt;/P&gt;
&lt;P&gt;How can I change them according to my needs?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2013 16:15:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/my-contrib-is-using-a-newer-third-party-library-version-as/m-p/327402#M14403</guid>
      <dc:creator>Edgar_</dc:creator>
      <dc:date>2013-02-22T16:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: My contrib is using a newer third party library version as providey by Nuxeo. How can I upgrade the dependencies?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/my-contrib-is-using-a-newer-third-party-library-version-as/m-p/327403#M14404</link>
      <description>&lt;P&gt;You don't need to change Nuxeo source code unless you want to contribute a global version upgrade but it's not a trivial task and a lot of tests are required.&lt;BR /&gt; /&amp;gt;
You can look at the Nuxeo dependencies on org.apache.poi libraries at &lt;A href="https://sonar.nuxeo.org/dependencies?resource=org.apache.poi%3Apoi&amp;amp;search=org.apache.poi"&gt;https://sonar.nuxeo.org/dependencies&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;In your addon's POM, set your preferred versions in a dependencyManagement section.&lt;BR /&gt; /&amp;gt;
Then, if you deploy your addon within a Marketplace package, those libraries will be automatically upgraded. See &lt;A href="https://github.com/nuxeo/nuxeo-marketplace-sample/"&gt;nuxeo-marketplace-sample&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;About your assembly, you should not have to explicitly list the third-parties: this must be automatically pulled from the Maven dependency tree. Also, there's a simpler method than delete+copy: use &lt;CODE&gt;&amp;lt;nx:rmdups dir="${distribution.dir}/nxserver/lib" /&amp;gt;&lt;/CODE&gt; to remove the duplicated libraries, keeping only the latest versions.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2013 23:13:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/my-contrib-is-using-a-newer-third-party-library-version-as/m-p/327403#M14404</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2013-02-22T23:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: My contrib is using a newer third party library version as providey by Nuxeo. How can I upgrade the dependencies?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/my-contrib-is-using-a-newer-third-party-library-version-as/m-p/327404#M14405</link>
      <description>&lt;P&gt;Thanks for your advice.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2013 15:37:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/my-contrib-is-using-a-newer-third-party-library-version-as/m-p/327404#M14405</guid>
      <dc:creator>Edgar_</dc:creator>
      <dc:date>2013-02-25T15:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: My contrib is using a newer third party library version as providey by Nuxeo. How can I upgrade the dependencies?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/my-contrib-is-using-a-newer-third-party-library-version-as/m-p/327405#M14406</link>
      <description>&lt;P&gt;Look at the &lt;CODE&gt;dependency-tree.log&lt;/CODE&gt; file generated by the `artifact&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 12:15:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/my-contrib-is-using-a-newer-third-party-library-version-as/m-p/327405#M14406</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2013-02-27T12:15:07Z</dc:date>
    </item>
  </channel>
</rss>

