This blog post will outline a detailed, step-by-step guideline to set up an Oracle WebCenter Sites (OWCS) development environment that runs on Tomcat, connects to Git and integrates with Eclipse and the Content Server Developer Tools (CSDT).
- Install a fresh OWCS JumpStart Kit (JSK), with no sample sites
- The JSK could be a fresh local installation of OWCS
- Start the JSK
- Create a new ContentServer (CS) workspace in Eclipse
- Open eclipse, switch to Oracle WebCenter Sites (or ContentServer) perspective
- Connect to the JSK (it will prompt you for the project name)
- The new CSDT workspace will always default to the directory "<ContentServer_Root>/export/envision/cs_workspace"
- Once connected to the JSK via CSDT, continue
- Rename the "/cs_workspace/" folder to "/cs_workspace_old/"
- Create a new, empty "/cs_workspace/" folder
- Switch to Git perspective in Eclipse
- Clone an existing remote repository
- Enter the Git repository URL
- Example: `https://github.com/aakash14goplani/repo_name.git`
- The destination for this clone should be your new, empty "/cs_workspace/" folder (if need be, delete the ".project" file). Other than that, accept all the defaults. This will download all files from the remote repository onto your local machine.
- Copy the ".classpath" and ".project" files from your old "/cs_workspace_old/" folder into the new one
- Back in Eclipse, change back to the Oracle WebCenter Sites (or ContentServer) perspective
- Right-click on project in the Project Explorer in Eclipse
- Select Team `-->` Share Project
- Choose Git
- If available, check the box for "Use or create repository in parent folder of project"
- Select a ".git" file that points to the repository you cloned in your local CSDT workspace (<ContentServer_Root>/export/envision/cs_workspace)
At this point, we’ve connected our local CSDT workspace to a remote Git repository via Eclipse.