Goals
This tutorial provides step-by-step instructions on how to:
- Retrieve and clone a project from the Magnolia Git repository
- Import Maven projects
Git and IntelliJ IDEA
Git and IntelliJ IDEA are third party software. More background and details can be found in the on-line book Pro Git and in Git usage. Earlier source code is still available via Subversion (SVN). Note that certain Magnolia CMS files may still contain references to SVN URLs.
See also:
- Git usage - source code location and tips on the Magnolia Wiki.
- Checking out modules - how to retrieve and identify modules in the Magnolia Git repository.
- Setup instructions - download and setup for different operating systems. Includes setup instructions.
- Cheat sheet
- Videos - help to get started with Git.
- Working with Eclipse and Git
Using IntelliJ to access the Magnolia CMS codebase on Git
Magnolia CMS source code needs to be retrieved from Magnolia's Git repository in order to build and modify the code.
To retrieve the source code from the Git repository :
- Select Check out from Version Control
- Enter the URL to clone from the Magnolia Git repository, together with the Parent Directory and the Directory Name.
- Click Clone.
- Click Yes to open the newly created project.
Tip
To check if the repository URL is valid use the Test button before trying to clone the repository.
Checking out a specific tag
To use a specific file version (indicated by 'tags' in Git) for your Magnolia build.
- From the IDEA main menu select VCS > Git > Branches
- In the dialog, click Checkout Tag or Revision
- In the edit field type the specific tag to check out.
- After retrieving the code, you need to Import Changes in Maven.
Info
You can find tags by browsing the Magnolia Git repository on the web, for example http://git.magnolia-cms.com/gitweb/?p=magnolia_main.pub.git;a=tags