Jetspeed2 Tutorial
目前在JetSpeed2的官方網站上
已經有了一篇使用Maven2進行客製化Portal建置的教程:
連結:http://portals.apache.org/tutorials/jetspeed-2/index.html
本例中使用的版本為2.1
這篇教程目前還有一些問題:
- 使用archtype建立Portal專案
mvn
archetype:create
-DarchetypeGroupId=org.apache.portals.jetspeed-2
-DarchetypeArtifactId=portal-archetype
-DarchetypeVersion=2.1
-DgroupId=org.apache.portals.tutorials
-DartifactId=jetexpress
-Dversion=1.0
-DremoteRepositories=http://www.bluesunrise.com/maven2
目前這個archtype並未真的釋出,因此若要正常下載archtypd的話,
必須加上remoteRepositories的設定。 - 在建立的專案上如此例jetexpress並無法執行mvn相關指令。
其原因在於<module>etc/dbpsml</module>模組設定不正確。
所以導致無法順利下載相關套件。
解決方式,在根資料夾下的pom.xml中的modules設定先註解。
然後再執行指令,如本例的mvn idea:idea -s settings.xml
OK後再把註解的其中一個module的註解移除
再執行mvn idea:idea依次將所有module的註解移除。
相對的所需的套件會順利下載。 - 在建立資料庫的etc/build.xml的第304行
<antcall target="populate-seed-data" inheritall="on" inheritrefs="on"/>
無法順利執行下去。當註解完成時才能順利Build成功。 - 當建置完成後對應的Tomcat可啟動但jetexpress這個context無法執行。
事實上這個教程雖然滿正式的。但實際上來說釋出的版本並非穩定的版本。
但這篇文章並非完全不重要,建議讀者從標題為
02. Customizing Your Portal Design
03. Portlet Application Configuration
04. Portlet Development
的教程開始看,將會了解如何在一個發行版的Portal進行客製化設定的動作。
沒有留言:
張貼留言