• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Uncho
大自然的搬运工
博客园    首页    新随笔    联系   管理    订阅  订阅
jetty + maven + (frontend) + eclipse

 #1.Download node.js.

https://nodejs.org/en/

 

#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>

posted on 2015-11-20 13:10  Unco  阅读(310)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3