This page is obsolete. Instead, use these instructions: Maqetta-with-Orion-Developer-Setup
Follow this tutorial to retrieve the Maqetta source from GitHub into your Eclipse workspace.
If cloning as read-only, use the URI git://github.com/maqetta/maqetta.git. The Clone Git Repository window should look like this:
Committers who need read/write access should use the URI firstname.lastname@example.org:maqetta/maqetta.git and set the connection protocol to ssh.
When specifying the Local Destination, it is advised that you check the Clone Submodules option. Some required sources, including the Dojo Toolkit as well as the GridX widget (which is used by the
davinci.gridx Maqetta plug-in) are not included in the Maqetta repository. Instead, it is referenced via a submodule. Checking this option is necessary to pull in the source so that it's available at runtime when using the Eclipse launch scripts.
After cloning the repository, make sure the Import Existing Projects radio button is set, click Next>, then Select All to select the projects to import. Click Finish.
Window Users: If you are using Git on the command line, be aware that Git on Windows does not properly handle the executable bit on files. For that reason, you will need to go to the directory that contains your local repository and execute the following line:
git config core.filemode false
As mentioned above, Maqetta has dependencies which are referenced using git submodules. If you did not check the Clone Submodules option when cloning the Maqetta repository and later decide you want to clone the submodule, you can use EGit support for working with submodules or run the following Git command on the command line, within the directory containing your local repository:
git submodule update --init
Maqetta requires a directory on the local file system, for its workspace and project files. The launch configurations look for an environment variable called
MAQETTA_WORKSPACE. Set this environment variable to point to the directory.
Open the launch configurations by selecting Run->Run Configurations... from the menu bar. The Maqetta launch configs are listed under OSGi Framework in the panel on the left hand side.
In a web browser, load http://localhost:8081/maqetta.
If you are going to do JS development in Eclipse, you should install the JSHint Eclipse Plugin. JSHint performs code validation much better than the JS Validator in Eclipse.
Best to code with the Problems view open at the bottom. Double-clicking on an entry in the view takes you to the line in the source.