activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/4] activemq-6 git commit: Added instructions to import ActiveMQ6 into IDEA
Date Fri, 13 Feb 2015 15:17:52 GMT
Added instructions to import ActiveMQ6 into IDEA


Project: http://git-wip-us.apache.org/repos/asf/activemq-6/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-6/commit/03a03b8f
Tree: http://git-wip-us.apache.org/repos/asf/activemq-6/tree/03a03b8f
Diff: http://git-wip-us.apache.org/repos/asf/activemq-6/diff/03a03b8f

Branch: refs/heads/master
Commit: 03a03b8f1eab2fcf16ad66e68107863d7e5f1338
Parents: ed661c4
Author: Martyn Taylor <mtaylor@redhat.com>
Authored: Fri Feb 13 11:41:49 2015 +0000
Committer: Martyn Taylor <mtaylor@redhat.com>
Committed: Fri Feb 13 11:45:44 2015 +0000

----------------------------------------------------------------------
 README.md | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-6/blob/03a03b8f/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 6d4536f..dfd098b 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 <classname>".  If the "Run <classname>"
option is present then you're all set to go.
+
+### My JUnit tests are not runnable with in the IDE.
+
+If the "Run <classname>" 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


Mime
View raw message