Skip to content
SQUIDwarrior edited this page Feb 4, 2012 · 2 revisions

#Eclipse Setup Tips

##Setting up the IDE with Maven and Git

  1. Open Eclipse, create a new project, Maven project, and select “Checkout Maven project from SCM”
  2. Select ‘git’ as the SCM URL. If Git is not available, click the link “Find more Maven SCM connectors in the m2e Marketplace” and install the ‘eGit’ plugin. Restart Eclipse when prompted, then repeat steps 1-2
  3. Add ‘git@github.com:squirrely/arinc_838.git’ for the URL then click Finish
  4. Once the project has imported, right-click on the project, then goto Team -> Share project
  5. Select Git as the repository type
  6. Check the “Use or create repository in parent folder” and be sure the “arinc838” project is selected.

##Importing code templates and style templates

  1. Open Eclipse properties (Windows: Window -> Options, OS X: Eclipse -> Preferences)
  2. Expand Java -> Code Style
  3. Select “Code Templates” and then import the ‘misc/eclipse/arinc838_code_templates.xml’ file
  4. Select “Formatter” and then import the ‘misc/eclipse/arinc838_code_formatter.xml’ file

##Installing the TestNG Plugin

  1. Open the Eclipse Marketplace: Help -> Eclipse Marketplace
  2. Search for TestNG. You should find the "TestNG Plugin" for Eclipse.
  3. Install the plugin. Restart Eclipse.
  4. You should now be able to run the TestNG tests from Eclipse.

##Installing TeamCity plugin to Eclipse

  1. Open “Help” -> “Install New Software”
  2. Click the “Add” button at the top of the window to add a new software repository
  3. Type a name (e.g. “TeamCity, provided by CodeBetter”) and paste this link into the location field: http://teamcity.codebetter.com/update/eclipse
  4. Click “OK”
  5. Check the box next to “JetBrains TeamCity Integration for Eclipse
  6. Click “Next”
  7. Agree to the terms and conditions, then click Finish.
  8. Restart Eclipse when prompted.

##Logging into TeamCity from Eclipse

  1. Open “TeamCity” -> Login
  2. Paste the URL http://teamcity.codebetter.com into the field, and enter your TeamCtiy username and password. Check the “Remember me” box so you don’t have to ligin each time Eclipse starts

Clone this wiki locally