Skip to content

Commit

Permalink
Merge pull request #80 from recallwu/patch-1
Browse files Browse the repository at this point in the history
Create ConfiguringIntelliJ.adoc
  • Loading branch information
lorban authored May 5, 2017
2 parents a30fca0 + 49c0d49 commit 1b283b6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions btm-docs/src/main/asciidoc/ConfiguringIntelliJ.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,42 @@ Note: The following steps apply to the Bitronix 2.2 development branch, not prio

Start the IntelliJ IDE, and select "New Project..." from the File menu.

image::intellij01.png[]
image::images/intellij01.png[]

Select the option "Import project from external model" (which includes Maven support). Click "Next".

image::intellij02.png[]
image::images/intellij02.png[]

Select the "Maven" option. Click "Next".

image::intellij03.png[]
image::images/intellij03.png[]

* Set the "Root directory" to point to your GIT directory that contains the bitronix project. In the example above, "/Users/brettw/Documents/dev/bitronix"
* Select the checkbox to keep your project files in a separate directory, and select a directory. In the example above, "/Users/brettw/Documents/intellij".
* Select the checkbox to "Import Maven projects automatically".
* Select the checkbox to "Create module groups for multi-module Maven projects".
* Click "Next".

image::intellij04.png[]
image::images/intellij04.png[]

Select the 'dist' profile. Click "Next".

image::intellij05.png[]
image::images/intellij05.png[]

Check to make sure the bitronix project shows up, and is selected. Click "Next".

image::intellij06.png[]
image::images/intellij06.png[]

The defaults should be fine here, just click "Finish".
Your project tree should now look like this:

image::intellij07.png[]
image::images/intellij07.png[]

== Step 2
Now we're going to setup the module paths so that IntelliJ can build with both JDBC3 and JDBC4 at the same time.
Right-click on the bitronix project in the project tree, and choose "Open Module Settings" from the menu. A window like this should open:

image::intellij08.png[]
image::images/intellij08.png[]

Now, perform these steps for the "btm" module:

Expand All @@ -54,7 +54,7 @@ Now, perform these steps for the "btm" module:
- Select the "btm-jdbc3-stubs" dependency, and move it up, above the Java VM dependency ("1.6 (java version 1.6.0_26)" in the screenshot, possibly "1.5" in your environment).
- The result should look like this:

image::intellij09.png[]
image::images/intellij09.png[]

In IntelliJ, dependencies that appear after the JDK are added to the classpath, and dependencies that appear before the JDK are added to the bootclasspath.
Now, perform these steps for the "btm-jdbc4" module:
Expand All @@ -64,7 +64,7 @@ Now, perform these steps for the "btm-jdbc4" module:
- Select the "btm-jdbc4-stubs" dependency, and move it up, above the Java VM dependency ("1.6 (java version 1.6.0_26)" in the screenshot, possibly "1.5" in your environment).
- The result should look like this:

image::intellij10.png[]
image::images/intellij10.png[]

Ok, you're done! Now, click "OK" to dismiss the module settings dialog.

Expand Down

0 comments on commit 1b283b6

Please sign in to comment.