Skip to content

Instantly share code, notes, and snippets.

@aakash14goplani
Last active July 10, 2018 17:05
Show Gist options
  • Save aakash14goplani/fd63ab895157a5cabffcd46de40f8f23 to your computer and use it in GitHub Desktop.
Save aakash14goplani/fd63ab895157a5cabffcd46de40f8f23 to your computer and use it in GitHub Desktop.
Setting Up a Development Environment in Oracle WebCenter Sites

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).

  1. Install a fresh OWCS JumpStart Kit (JSK), with no sample sites
    • The JSK could be a fresh local installation of OWCS
  2. Start the JSK
  3. Create a new ContentServer (CS) workspace in Eclipse
  4. Open eclipse, switch to Oracle WebCenter Sites (or ContentServer) perspective
  5. 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"
  6. Once connected to the JSK via CSDT, continue
  7. Rename the "/cs_workspace/" folder to "/cs_workspace_old/"
  8. Create a new, empty "/cs_workspace/" folder
  9. Switch to Git perspective in Eclipse
  10. Clone an existing remote repository
  11. 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.
  12. Copy the ".classpath" and ".project" files from your old "/cs_workspace_old/" folder into the new one
  13. Back in Eclipse, change back to the Oracle WebCenter Sites (or ContentServer) perspective
  14. Right-click on project in the Project Explorer in Eclipse
  15. Select Team `-->` Share Project
  16. Choose Git
  17. If available, check the box for "Use or create repository in parent folder of project"
  18. 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.

Contents of .gitignore file

References

  1. Function 1
  2. A new repo from an existing project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment