From 03a03b8f1eab2fcf16ad66e68107863d7e5f1338 Mon Sep 17 00:00:00 2001 From: Martyn Taylor Date: Fri, 13 Feb 2015 11:41:49 +0000 Subject: [PATCH] Added instructions to import ActiveMQ6 into IDEA --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 6d4536fe54..dfd098b2a8 100644 --- a/README.md +++ b/README.md @@ -109,6 +109,36 @@ can be installed from [Eclipse Kepler release repository]. [m2e]: http://eclipse.org/m2e/ [Eclipse Kepler release repository]: http://download.eclipse.org/releases/kepler +## IntelliJ IDEA + +The following steps show how to import ActiveMQ6 source into IntelliJ IDEA and setup the correct maven profile to allow +running of JUnit tests from within the IDE. (Steps are based on version: 13.1.4) + +* File --> Import Project --> Select the root directory of the ActiveMQ6 source folder. --> Click OK + +This should open the import project wizard. From here: + +* Select "Import from existing model" toggle box, then select Maven from the list box below. Click Next. +* Leave the defaults set on this page and click next. +* On the "Select profiles page", select the checkbox next to "Default" and click next. +* From here the default settings should suffice. Continue through the wizard, clicking next until the wizard is complete. + +Once the project has been imported and IDEA has caught up importing all the relevant dependencies, you should be able to +run JUnit tests from with the IDE. Select any test class in the tests -> integration tests folder. Right click on the +class in the project tab and click "Run ". If the "Run " option is present then you're all set to go. + +### My JUnit tests are not runnable with in the IDE. + +If the "Run " or "Run all tests" option is not present. It is likely that the default profile has not been +imported properly. To (re)import the "default" Maven profile in an existing project. + +* Open the Maven Projects Tool Window: View -> Tool Windows -> Maven Projects +* Select the "profiles" drop down +* Unselect then reselect the checkbox next to "default". +* Click on the "Reimport all maven projects" button in the top left hand corner of the window. (It looks like a ciruclar +blue arrow. +* Wait for IDEA to reload and try running a JUnit test again. The option to run should now be present. + ### Annotation Pre-Processing ActiveMQ6 uses [JBoss Logging] and that requires source code generation from Java