Jetspeed2

refer to: http://portals.apache.org/jetspeed-2/tutorial/01/genapp.html

 

Setup:

 

1.  generate two maven submodules: jetexpress-portal and jetexpress-pa.

 

mvn org.apache.maven.plugins:maven-archetype-plugin:2.0-alpha-4:generate \
    -DarchetypeGroupId=org.apache.portals.jetspeed-2 \
    -DarchetypeArtifactId=jetspeed-archetype \
    -DarchetypeVersion=2.2.0 \
    -DartifactId=jetexpress \
    -Dpackage=org.apache.portals.tutorials \
    -DgroupId=org.apache.portals.tutorials \
    -Dversion=1.0-SNAPSHOT

 

2. change file jetspeed-mvn-settings.xml

 

2.1 Find the org.apache.jetspeed.server.home configuration parameter and change the path to where you installed Tomcat

 

2.2 Find the org.apache.jetspeed.production.database.url configuration parameter

 

3. create file %USERPROFILE%\.m2\settings.xml

<settings xmlns="http://maven.apache.org/POM/4.0.0"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
       http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <pluginGroups>
    <pluginGroup>org.apache.portals.jetspeed-2</pluginGroup>
  </pluginGroups>
  
  <!-- There might be more configuration here -->
       
</settings>

 

4. mvn jetspeed:mvn -Dtarget=all

    deploy to the tomcat server

 

     access: http://localhost:8080/jetexpress/portal

 

5. wroking in  Eclipse Env

 

5.1 mvn eclipse:eclipse

 

5.2  In Eclipse, go to Window->Preferences->Java->Build Path->Classpath Variables->New and enter the location of your local Maven repository  M2_REPO (typically this is inside a .m2 directory in your user home/profile directory.

 

5.3 import jetexpress-portal and jetexpress-pa projects

 

5.4 add portlet in jetexpress-pa project

 

5.5 deploy to tomcat ENV

 

mvn jetspeed:mvn -Dtarget=deploy-pa
mvn jetspeed:mvn -Dtarget=deploy-portal

 

access: http://localhost:8080/jetexpress/portal

 

 

 

 Create A New Page:

 

 1.  make dir under such as demo

 

    \jetexpress\jetexpress-portal\src\main\webapp\WEB-INF\pages\demo

 

2. copy and edit folder.metadata & default-page.psml

 

3.  deploy

mvn jetspeed:mvn -Dtarget=deploy-pa
mvn jetspeed:mvn -Dtarget=deploy-portal

 

access: http://localhost:8080/jetexpress/portal

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值