this closes #101 on an update on the README for using Intelij IDE
This commit is contained in:
commit
11373d0c5c
30
README.md
30
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
|
||||
|
|
Loading…
Reference in New Issue