You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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

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

Set a 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 IDEA

2. If you have already opened a project and want to follow the steps in this tutorial, select File > Close Project in the IDEA main menu

3. Select Check out from Version Control

4. Enter the URL to clone from the Magnolia Git repository, the Parent Directory and the Directory Name:

Info

Use the Test button to check if the repository URL is valid before trying to clone the repository.

5. Confirm with Yes to open the newly created project.

Check out a specific tag

By following the steps above, you cloned the latest code from the Magnolia Git repository. It's very likely that you want to use a specific version (indicated by 'tags' in Git) for your Magnolia build.

To check out a specific tag:

1. From the IDEA main menu select VCS > Git > Branches

2. In the popup menu click on Checkout Tag or Revision

3. In the edit field type the tag you want to checkout

Info

You can find tags by browsing the Magnolia Git repository on the web, e. g. http://git.magnolia-cms.com/gitweb/?p=magnolia_main.pub.git;a=tags

4. After retrieving the code, you need to Import Changes in Maven

Just select the Import Changes link in the little popup IDEA displays.

  • No labels