This tutorial provides step-by-step instructions on how to:
- Download the EGit plugin - optional
- Locate a repository in Magnolia CMS Gitweb
- Retrieve and clone a repository
- Import Maven projects
Recent Eclipse releases already included GIT support. Users might not have to install EGit anymore, just use built-in Eclipse function.
Git and Eclipse
Git and Eclipse are third party software. If you are new to Git or to distributed version control systems in general, make sure you read Git for Eclipse Users first. More background and details can be found in the on-line book Pro Git.
- 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 IntelliJ IDEA and Git
Using Eclipse to access the Magnolia CMS codebase on Git
Please ignore downloading and installing EGit if your Eclipse already has GIT support.
Downloading the EGit plugin (optional)
To access the Magnolia CMS Git repository you need the EGit plugin for Eclipse.
- Go to the Eclipse marketplace and search for "EGit".
- Download the latest version and restart Eclipse.
- When Eclipse restarts, select from the top menu bar Window → Open Perspective → Other... to see the available perspectives - including the newly added Git Repository Exploring.
Accessing the Magnolia repository
To access the Magnolia CMS Git repository:
Open Eclipse and select or create a local workspace to save the cloned repository in.
Go to Git view perspective
Locate the repository URL in Gitweb
To retrieve and clone a repository you first need to locate and copy the path to that repository.
- Go to Magnolia GIT web https://git.magnolia-cms.com/ Note that you may be asked to insert your credentials.
- Browse to the URL of the repository.
- Copy the full repository path then paste to your Eclipse Git View.
Cloning the repository
Cloning the Git repository means copying the repository content to your local machine.
- Enter the URL (referred to as URI in Eclipse) of the source repository. Note that the Host and Repository paths populate automatically when you provide the full URL.
- Select the transfer Protocol and provide your Magnolia CMS Git repository credentials to your Eclipse instance. The transfer protocol specified in Eclipse should be the same as that specified in the URL in Gitweb.
- If you will be accessing Git frequently, select the Store in Secure Store checkbox.
- Click Next.
- The cloning process consists of two aspects:
- Branch info download
- Specific branch/file cloning
- When Eclipse has finished getting the branch information, select the branch(es) you wish to clone.
- Click Next and then choose the local directory to store the cloned files in. The default save location is the workspace you selected/created on opening Eclipse.
- When the cloning process is complete the cloned files will be available in your Eclipse workbench. Going forward you can search for and clone files directly from within Eclipse.
Importing a Maven Project
- In the Git Repositories view, right-click the project and select Import Projects.
- On the dialog, select the required option and click Next/Finish.
- Select the Maven Wizard and then the specific Maven artifact.
Right clicking on the ee-bundle node in the EGit perspective and choosing Import Projects... for some reason did not detect the projects to import for me (using Eclipse Kepler on Ubuntu). However, I was able to import using the traditional method (File → Import...).
Thanks for this! Welcome to Magnolia!
Gavan Stockdale Can you tell me if this is the correct way to create the Maven Eclipse Project from the GIT Repository: http://git.magnolia-cms.com/git/ce-bundle.pub.git
if so, I will extend this wiki page.
We have tutorials on setting up projects with Maven in Academy and in Documentation.
I'm reluctant now to endorse wiki because it became what we refer to as wild west. Maybe check out what we have in official publication stream first.
Another thing is that just by adding a note here people will see your work - including the attached images. I'll see what my colleague Lars Fischer has to say. At first glance looks like it could warrant a new heading etc. - but I need someone internal (not me) to give it a rubber stamp.
Here's an idea. Check the official publication stream. If you can get the same result or better with YOUR neat instruction set, i'll gladly link to it and endorse. Anything that clarifies/simplifies how to do this is fine, provided it takes into account other needs, such as adding new modules etc.
Okay, after my lunch I will read and thing about what you have writen me. But it could be that I will comment many pages in the next days. I can correct or extend wiki pages, but more after lunch.
back. First thing which I had to notice, is that I can't delete an comment. My previous thinking was that I can delete my comments and clean up the comment area of an wiki page, after the changes are worked into the special wikipage. Or even to hide / my comment for this version of the wikipage.
I check again CE wiki and official publication stream (official documentation is meant.). In this morning I started with the official documentation, specially with the right-half "Develop". I followed the instruction of the first wikipage of Develop and the Eclipse-Page has let me going to this wikipage... - but, stop! You are right. It's like wild west here! Thanks for pointing me back to official documentation also to remind me that there is an academy program.
For extending the wiki with usfully information I will use new Images, not my used in the comments. The comment was only to clearify and get some examples and to talk about it. Nobody can work with my enviroment, they need an more common view per topic in the wiki. I think Magnolia has some information pages about how to extending and writing an wiki article, before I will do such a work, I check these documents. I'm currently not an expert in Eclipse with Maven, so for me this page was looking like not finished, because now comes some Dialogs with Individual Settings and that needs some more explaining. This stuff is basic Maven and can be understand if you have already done an Maven Project, so I could now start to read recursive the documentations, cascading into the maven documentation and coming back Magnolia.
Training Participants - FullStack Developer
I am new to git, can someone let me know, How to create user or get credentials for http://git.magnolia-cms.com.