#1.Download node.js.
#2.Unzip node.js
sudo tar -C /usr/local --strip-components 1 -xzf node-v4.1.1-linux-x64.tar.gz
#3.Check version
npm -v
#4.Install
npm install
#5.Build
npm run build
#6.Copy marketplace to project
$frontend/ : cp * ../../../otms/otms-core/web/mp/.
Modify otms-core/pom.xml
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.4.2.v20110526</version>
<configuration>
<webAppConfig>
<contextPath>/</contextPath>
</webAppConfig>
<contextHandlers>
<contextHandler implementation="org.eclipse.jetty.webapp.WebAppContext">
<contextPath>/</contextPath>
<resourceBase>${project.basedir}</resourceBase>
</contextHandler>
<contextHandler implementation="org.eclipse.jetty.webapp.WebAppContext">
<contextPath>/mp</contextPath>
<resourceBase>${project.basedir}/mp</resourceBase>
</contextHandler>
</contextHandlers>
</configuration>
</plugin>