Similar content

Loading

Powered by Canoo FindIT.

Retrieve code from SVN

The CMS' source code needs to be retrieved from Magnolia's Subversion (SVN) repository in order to build the code and modify for ongoing development.

To retrieve the source code from the SVN repository follow the sections in order.

Set repository location

The repository location in Eclipse needs to be set to the location in the SVN repository from which projects will be checked out.

To set the repository location:

  1. Start Eclipse.
  2. Select a workspace and click OK.

  3. Click SVN Repository perspective on the top right.
    If this perspective is not available, click Window > Open Perspective > Other, then select SVN Repository Exploring and click OK.

  4. Right-click the SVN Repositories tab and select New > Repository Location.

  5. Type http://svn.magnolia-cms.com/svn in the URL box and click Browse.

  6. Select a folder from Magnolia SVN that contains a magnolia-empty-webapp folder and click OK.
    The example selected here is in community/magnolia/tags/magnolia-4.4.2.

  7. In the New Repository Location dialog:
    1. Select Use a custom label.
    2. Enter a label that corresponds to folder selected earlier such as magnolia-4.4.2.
    3. Type username in the User box. Use your Can't resolve link to: nexus.
    4. Type password in the Password box.

  8. Click Finish.

Check out parent project

The parent project needs to be checked out so that the Maven builds of the child projects will be able to find needed referenced libraries.

To check out the parent project:

  1. Right-click the newly added repository and select Find/Check Out As.

  2. In the Check Out As dialog.
    1. Select Check out as a project with the name specified.
    2. Select Files in a folder from the Depth list.

  3. Click Finish.

Check out child project

Child projects contain code that the user needs to work with.

To check out a child project:
  1. Expand the repository tree.

  2. Right-click any project folder in the repository and select Find/Check Out As. A project contains a pom.xml file.

  3. Select Check out as a folder into existing project and click Next.

  4. Select the parent project and click Finish.

  5. Click Java EE perspective in top right.
    The Project Explorer tab is displayed on the left.

  6. Click Window > Show View > Other.

  7. Select Java > Package Explorer and click OK.

  8. If the Package Explorer tab is displayed at the bottom right then move it next to the Project Explorer tab.
  9. Expand the parent project.


    Projects are displayed in the Package Explorer tab.