<?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: Hotfixes source in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/hotfixes-source/m-p/313145#M146</link>
    <description>&lt;P&gt;Like Thierry said, you can only do a full build. I just did that on tag "release-10.10-HF53" today.
But it took me all day to make it work, because there are some issues and updates to the code have to be done.
Briefly:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;missing dependency for a Nuxeo version of richfaces (-&amp;gt; add to module)&lt;/LI&gt;
&lt;LI&gt;Nuxeos maven repo now only supporting https (-&amp;gt;update all pom.xml)&lt;/LI&gt;
&lt;LI&gt;github not allowing git: anymore (-&amp;gt; update all bower.json)&lt;/LI&gt;
&lt;LI&gt;I had issues with gulp when building some of the addons, so I just left the addons that are necessary for the minimum build.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Also you need a couple of dependencies. Mostly maven, python2 (!!), bower, grunt and gulp (&amp;lt;4.0)&lt;/P&gt;
&lt;P&gt;After the build you are left with a zipped Nuxeo distribution which you can use with your nuxeo.conf. Or - guessing here - you could update the jars in your old installation with the new ones.&lt;/P&gt;
&lt;P&gt;This is the script I came up with today&lt;/P&gt;
&lt;H3&gt;edit:&lt;/H3&gt;
&lt;P&gt;Be aware different hotfix versions, need other modules. I updated the script to work with HF59. Couldn't make it work for HF60 yet thou.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#!/bin/bash
# dependencies: mvn, bower, grunt, gulp
set -e

###############
## get sources
###############

# specify the tag to clone
VERSION=10.10-HF59
TAG=release-$VERSION
REPO=https://github.com/nuxeo/nuxeo

git clone --depth 1 --branch $TAG $REPO nuxeo-$VERSION

cd nuxeo-$VERSION/

# get addons
python2 clone.py

# get needed dependency richfaces and add module to pom
git clone --depth 1 --branch 4.5.12.Final-NX1 &lt;A href="https://github.com/nuxeo/richfaces-4.5" target="test_blank"&gt;https://github.com/nuxeo/richfaces-4.5&lt;/A&gt;
sed -i '/&amp;lt;module&amp;gt;nuxeo-common&amp;lt;\/module&amp;gt;/i\\t&amp;lt;module&amp;gt;richfaces-4.5&amp;lt;\/module&amp;gt;' pom.xml

# fix old http maven repo to https
find ./ -name pom.xml -exec sed -i 's/http:\/\/maven.nuxeo.org/https:\/\/maven.nuxeo.org/g' {} \;

# fix bower problems using old git: protocol -&amp;gt; &lt;A href="https://github.com" target="test_blank"&gt;https://github.com&lt;/A&gt;
find ./ -name bower.json -exec sed -i 's/git:\/\/github.com/https:\/\/github.com/g' {} \;

## update addons/pom.xml
# remove all modules from pom.xml
sed -i '/&amp;lt;modules&amp;gt;/,/&amp;lt;\/modules&amp;gt;/{//!d}' addons/pom.xml # removes all lines between &amp;lt;modules&amp;gt; and &amp;lt;/modules&amp;gt;

# add needed addons
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-binary-metadata&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-connect-tools&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-platform-pdf-utils&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-shell&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-apidoc-server&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-dmk-adaptor&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-platform-lang-ext&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-platform-suggestbox&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-platform-document-routing&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-chemistry&amp;lt;\/module&amp;gt;' addons/pom.xml

## update nuxeo-distribution modules
# remove all modules from pom.xml
sed -i '/&amp;lt;modules&amp;gt;/,/&amp;lt;\/modules&amp;gt;/{//!d}' nuxeo-distribution/pom.xml

# add needed distribution modules
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-startup-wizard&amp;lt;\/module&amp;gt;' nuxeo-distribution/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-launcher&amp;lt;\/module&amp;gt;' nuxeo-distribution/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-nxr-server&amp;lt;\/module&amp;gt;' nuxeo-distribution/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-nxr-jsf-ui&amp;lt;\/module&amp;gt;' nuxeo-distribution/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-server-tomcat&amp;lt;\/module&amp;gt;' nuxeo-distribution/pom.xml

##########
# compile
##########
mvn clean install -DskipTests=true -Paddons,distrib | tee ../nuxeo_build-$VERSION.log

#################
# get tomcat zip
#################
cp nuxeo-distribution/nuxeo-server-tomcat/target/nuxeo-server-tomcat-$VERSION.zip ../
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 02 Nov 2021 20:22:41 GMT</pubDate>
    <dc:creator>Konrad_Krenzlin</dc:creator>
    <dc:date>2021-11-02T20:22:41Z</dc:date>
    <item>
      <title>Hotfixes source</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hotfixes-source/m-p/313142#M143</link>
      <description>&lt;P&gt;Hi,
after getting Nuxeo Platform LTS 2019 source code, I try to build it but i get a security problem with access to the hofixes. I undertstand that now we need to be a customer to get precompiled hotfixes but is there a way to get the hotfixes source and build them ourselves without being a customer. If so, where can we get them?
Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 00:39:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hotfixes-source/m-p/313142#M143</guid>
      <dc:creator>chouinard_</dc:creator>
      <dc:date>2021-11-01T00:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Hotfixes source</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hotfixes-source/m-p/313143#M144</link>
      <description>&lt;P&gt;You can still do a full build of the 10.10 branch of Nuxeo, it should work even if you are not a customer (unless you had a problem with the NPM registry during your build ..)&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 17:06:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hotfixes-source/m-p/313143#M144</guid>
      <dc:creator>Thierry_Martins</dc:creator>
      <dc:date>2021-11-02T17:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hotfixes source</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hotfixes-source/m-p/313144#M145</link>
      <description>&lt;P&gt;Actually my problem is with the Maven repository access, to the hotfixes (maven.nuxeo.org/nexus/content/repositories/hotfix-snapshots)&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 18:09:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hotfixes-source/m-p/313144#M145</guid>
      <dc:creator>chouinard_</dc:creator>
      <dc:date>2021-11-02T18:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hotfixes source</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hotfixes-source/m-p/313145#M146</link>
      <description>&lt;P&gt;Like Thierry said, you can only do a full build. I just did that on tag "release-10.10-HF53" today.
But it took me all day to make it work, because there are some issues and updates to the code have to be done.
Briefly:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;missing dependency for a Nuxeo version of richfaces (-&amp;gt; add to module)&lt;/LI&gt;
&lt;LI&gt;Nuxeos maven repo now only supporting https (-&amp;gt;update all pom.xml)&lt;/LI&gt;
&lt;LI&gt;github not allowing git: anymore (-&amp;gt; update all bower.json)&lt;/LI&gt;
&lt;LI&gt;I had issues with gulp when building some of the addons, so I just left the addons that are necessary for the minimum build.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Also you need a couple of dependencies. Mostly maven, python2 (!!), bower, grunt and gulp (&amp;lt;4.0)&lt;/P&gt;
&lt;P&gt;After the build you are left with a zipped Nuxeo distribution which you can use with your nuxeo.conf. Or - guessing here - you could update the jars in your old installation with the new ones.&lt;/P&gt;
&lt;P&gt;This is the script I came up with today&lt;/P&gt;
&lt;H3&gt;edit:&lt;/H3&gt;
&lt;P&gt;Be aware different hotfix versions, need other modules. I updated the script to work with HF59. Couldn't make it work for HF60 yet thou.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;#!/bin/bash
# dependencies: mvn, bower, grunt, gulp
set -e

###############
## get sources
###############

# specify the tag to clone
VERSION=10.10-HF59
TAG=release-$VERSION
REPO=https://github.com/nuxeo/nuxeo

git clone --depth 1 --branch $TAG $REPO nuxeo-$VERSION

cd nuxeo-$VERSION/

# get addons
python2 clone.py

# get needed dependency richfaces and add module to pom
git clone --depth 1 --branch 4.5.12.Final-NX1 &lt;A href="https://github.com/nuxeo/richfaces-4.5" target="test_blank"&gt;https://github.com/nuxeo/richfaces-4.5&lt;/A&gt;
sed -i '/&amp;lt;module&amp;gt;nuxeo-common&amp;lt;\/module&amp;gt;/i\\t&amp;lt;module&amp;gt;richfaces-4.5&amp;lt;\/module&amp;gt;' pom.xml

# fix old http maven repo to https
find ./ -name pom.xml -exec sed -i 's/http:\/\/maven.nuxeo.org/https:\/\/maven.nuxeo.org/g' {} \;

# fix bower problems using old git: protocol -&amp;gt; &lt;A href="https://github.com" target="test_blank"&gt;https://github.com&lt;/A&gt;
find ./ -name bower.json -exec sed -i 's/git:\/\/github.com/https:\/\/github.com/g' {} \;

## update addons/pom.xml
# remove all modules from pom.xml
sed -i '/&amp;lt;modules&amp;gt;/,/&amp;lt;\/modules&amp;gt;/{//!d}' addons/pom.xml # removes all lines between &amp;lt;modules&amp;gt; and &amp;lt;/modules&amp;gt;

# add needed addons
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-binary-metadata&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-connect-tools&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-platform-pdf-utils&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-shell&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-apidoc-server&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-dmk-adaptor&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-platform-lang-ext&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-platform-suggestbox&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-platform-document-routing&amp;lt;\/module&amp;gt;' addons/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-chemistry&amp;lt;\/module&amp;gt;' addons/pom.xml

## update nuxeo-distribution modules
# remove all modules from pom.xml
sed -i '/&amp;lt;modules&amp;gt;/,/&amp;lt;\/modules&amp;gt;/{//!d}' nuxeo-distribution/pom.xml

# add needed distribution modules
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-startup-wizard&amp;lt;\/module&amp;gt;' nuxeo-distribution/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-launcher&amp;lt;\/module&amp;gt;' nuxeo-distribution/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-nxr-server&amp;lt;\/module&amp;gt;' nuxeo-distribution/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-nxr-jsf-ui&amp;lt;\/module&amp;gt;' nuxeo-distribution/pom.xml
sed -i '/&amp;lt;\/modules&amp;gt;/i\\t&amp;lt;module&amp;gt;nuxeo-server-tomcat&amp;lt;\/module&amp;gt;' nuxeo-distribution/pom.xml

##########
# compile
##########
mvn clean install -DskipTests=true -Paddons,distrib | tee ../nuxeo_build-$VERSION.log

#################
# get tomcat zip
#################
cp nuxeo-distribution/nuxeo-server-tomcat/target/nuxeo-server-tomcat-$VERSION.zip ../
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Nov 2021 20:22:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hotfixes-source/m-p/313145#M146</guid>
      <dc:creator>Konrad_Krenzlin</dc:creator>
      <dc:date>2021-11-02T20:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Hotfixes source</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/hotfixes-source/m-p/313146#M147</link>
      <description>&lt;P&gt;Thank you Konrad for the useful info.  Finally, most of my problem was with npm issues.  And like you did, I had to retire some modules that I was not allowed to access.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 18:06:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/hotfixes-source/m-p/313146#M147</guid>
      <dc:creator>chouinard_</dc:creator>
      <dc:date>2021-11-05T18:06:15Z</dc:date>
    </item>
  </channel>
</rss>

