1 Pre-Requirements
Please setup your IDE/Maven according to: Maven Setup
2 Checkout from Git
- portalnode
Import → Git → Projects from Git → Clone URI:ssh://git@git.office:22/var/git/portalnode Store in Secure Store: false → Next → Next Directory: [WORKSPACE_DIR]/portalnode (Workspace Verzeichnis auswählen) Initial branch: dev → Finish
- generic-testutils
Import → Git → Projects from Git → Clone URI:ssh://git@git.office:22/var/git/generic-testutils Store in Secure Store: false → Next → Next Directory: [WORKSPACE_DIR]/generic-testutils (Workspace Verzeichnis auswählen) Initial branch: master → Finish
- gcn5portal
https://github.com/gentics/Gentics-Demoportal Fork this on github Clone this into your workspace git clone git@github.com:username/Gentics-Demoportal.git Import → Git → Projects from Git → Clone URI:ssh://git@github.com:username/Gentics-Demoportal.git Store in Secure Store: false → Next → Next Directory: [WORKSPACE_DIR]/gcn5portal (Workspace Verzeichnis auswählen) Initial branch: master → Finish
- node
Import → Git → Projects from Git → Clone URI:ssh://git@git.office:22/var/git/node Store in Secure Store: false → Next → Next Directory: [WORKSPACE_DIR]/node (Workspace Verzeichnis auswählen) Initial branch: dev → Finish
Connect Project with Git
For all projects:
[Project]: Team → Share Project → Git → Next → Finish
Configuration GCN5 Demo Portal
Server Konfiguration anlegen
New → Server → Tomcat v6.0 Server Server name: Portal.Node → Next Add portalnode-webapp → Finish Modify context path (not necessary with Eclipse Indigo) portalnode-webapp → /Portal.Node Add gcn5portal → Finish Modify context path (not necessary with Eclipse Indigo) gcn5portal → /GCN5_Portal
Adapt server configuration
Adapt Portal.Node Server Configuration → Edit launch configuration properties VM arguments: -Dcom.gentics.portalnode.confpath=“[WORKSPACE_DIR]/gcn5portal/target/server_configuration/gentics”
Configure shared.loader
Adapt shared.loader parameter and replace [WORKSPACE_DIR] by the absolute path to your workspace directory.
catalina.properties: shared.loader=[WORKSPACE_DIR]/node/node-lib/target/classes,[WORKSPACE_DIR]/portalnode/portalnode-lib/target/classes,[WORKSPACE_DIR]/portalnode/portalnode-lib/target/mavendependencies/.jar,${catalina.base}/shared/classes,${catalina.base}/shared/lib/.jar
After changes to catalina.properties it is needed to invoke clean&publish for the server instance.
Maven Settings
Use the settings from gcn5portal → README.md to customize your environment settings (including license.key devbox path)
Configuration of Workspaces / Workstation
Create Server Configuration
New → Server → Tomcat v6.0 Server Server name: Portal.Node → Next Add portalnode-webapp → Finish Kontextpfade der Webapps anpassen portalnode-webapp → /Portal.Node
Add node-lib and portalnode-lib Projects to Sources of the ‘launch configuration’.
portalnode-webapp/src/main/webapp/WEB-INF/config
Adapt Server Configuration
Adapt Portal.Node Server Configuration → Edit launch configuration properties VM arguments: -Dcom.gentics.portalnode.confpath=“[WORKSPACE_DIR]/portalnode/portalnode-webapp/src/main/webapp/WEB-INF/config”
Configure shared.loader
Für das portalnode-lib neue Run Configuration anlegen um die Shared Libraries zu exportieren:
Right click Projekt → Run As → Maven Build … Goals:clean compile process-resources Run Adapt shared.loader parameter and replace [WORKSPACE_DIR] with the absolute path to your workspace directory.
catalina.properties: shared.loader=[WORKSPACE_DIR]/node/node-lib/target/classes,[WORKSPACE_DIR]/portalnode/portalnode-lib/target/classes,[WORKSPACE_DIR]/portalnode/portalnode-lib/target/mavendependencies/.jar,${catalina.base}/shared/classes,${catalina.base}/shared/lib/.jar
After changes to catalina.properties it is needed to invoke clean&publish for the server instance.
Import projects
Import → Maven → Existing Maven Projects Root Directory: /home/johannes2/workspaces/workspace_maven/ → Refresh → Select All → Finish SDK Projekte:
Import → Maven → Existing Maven Projects Root Directory: /home/johannes2/workspaces/workspace_maven/portalnode/portalnode-sdk → Refresh → Select All → Finish
Einstellungen überarbeiten
Window > Preferences > Java > Installed JREs – A JDK 1.5 must be added to compile the node-lib node-lib: Rightclick > Maven > Update Project Config (otherwise the project won’t build)
The node-meta project must be closed. Otherwise compile errors may occur