Skip to content
Skip to breadcrumbs
Skip to header menu
Skip to action menu
Skip to quick search
Quick Search
Browse
Pages
Blog
Labels
Attachments
Mail
Advanced
What’s New
Space Directory
Feed Builder
Keyboard Shortcuts
Confluence Gadgets
Log In
Sign Up
Dashboard
Bitronix Transaction Manager
Copy Page
You are not logged in. Any changes you make will be marked as
anonymous
. You may want to
Log In
if you already have an account. You can also
Sign Up
for a new account.
This page is being edited by
.
Paragraph
Paragraph
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Preformatted
Quote
Bold
Italic
Underline
More colours
Strikethrough
Subscript
Superscript
Monospace
Clear Formatting
Bullet list
Numbered list
Outdent
Indent
Align left
Align center
Align right
Link
Table
Insert
Insert Content
Image
Link
Attachment
Symbol
Emoticon
Wiki Markup
Horizontal rule
tinymce.confluence.insert_menu.macro_desc
Info
JIRA Issue
Status
Gallery
Tasklist
Table of Contents
Other Macros
Page Layout
No Layout
Two column (simple)
Two column (simple, left sidebar)
Two column (simple, right sidebar)
Three column (simple)
Two column
Two column (left sidebar)
Two column (right sidebar)
Three column
Three column (left and right sidebars)
Undo
Redo
Find/Replace
Keyboard Shortcuts Help
<h1>Configuring IntelliJ IDE</h1> <p>Follow these steps to configure IntelliJ IDE for btm development. These guide assumes you have already downloaded and built the source successfully with Maven.</p> <p><span style="color: rgb(255,0,0);"><em>Note: The following steps apply to the Bitronix 2.2 development branch, not prior releases.</em></span></p> <h3>Step 1:</h3> <p>Start the IntelliJ IDE, and select "New Project..." from the File menu.<br /> <img class="confluence-embedded-image confluence-content-image-border" src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.30.59+AM.png?version=1&modificationDate=1369354450369" data-image-src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.30.59+AM.png?version=1&modificationDate=1369354450369" data-linked-resource-id="231375594" data-linked-resource-type="attachment" data-linked-resource-default-alias="Screen Shot 2011-08-30 at 10.30.59 AM.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080122" title="null > Screen Shot 2011-08-30 at 10.30.59 AM.png"><br /> Select the option "Import project from external model" (which includes Maven support). Click "Next".</p> <p><img class="confluence-embedded-image confluence-content-image-border" src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.33.43+AM.png?version=1&modificationDate=1369354450367" data-image-src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.33.43+AM.png?version=1&modificationDate=1369354450367" data-linked-resource-id="231375593" data-linked-resource-type="attachment" data-linked-resource-default-alias="Screen Shot 2011-08-30 at 10.33.43 AM.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080122" title="null > Screen Shot 2011-08-30 at 10.33.43 AM.png"><br /> Select the "Maven" option. Click "Next".</p> <p><img class="confluence-embedded-image confluence-content-image-border" src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+2.49.20+PM.png?version=1&modificationDate=1369354450245" data-image-src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+2.49.20+PM.png?version=1&modificationDate=1369354450245" data-linked-resource-id="231375583" data-linked-resource-type="attachment" data-linked-resource-default-alias="Screen Shot 2011-08-30 at 2.49.20 PM.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080122" title="null > Screen Shot 2011-08-30 at 2.49.20 PM.png"></p> <ul> <li>Set the "Root directory" to point to your GIT directory that contains the bitronix project. In the example above, "/Users/brettw/Documents/dev/bitronix"</li> <li>Select the checkbox to keep your project files in a separate directory, and select a directory. In the example above, "/Users/brettw/Documents/intellij".</li> <li>Select the checkbox to "Import Maven projects automatically".</li> <li>Select the checkbox to "Create module groups for multi-module Maven projects".</li> <li>Click "Next".</li> </ul> <p><img class="confluence-embedded-image confluence-content-image-border" src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.43.41+AM.png?version=1&modificationDate=1369354450342" data-image-src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.43.41+AM.png?version=1&modificationDate=1369354450342" data-linked-resource-id="231375591" data-linked-resource-type="attachment" data-linked-resource-default-alias="Screen Shot 2011-08-30 at 10.43.41 AM.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080122" title="null > Screen Shot 2011-08-30 at 10.43.41 AM.png"><br /> Select the 'dist' profile. Click "Next".</p> <p><img class="confluence-embedded-image confluence-content-image-border" src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.44.45+AM.png?version=1&modificationDate=1369354450335" data-image-src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.44.45+AM.png?version=1&modificationDate=1369354450335" data-linked-resource-id="231375590" data-linked-resource-type="attachment" data-linked-resource-default-alias="Screen Shot 2011-08-30 at 10.44.45 AM.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080122" title="null > Screen Shot 2011-08-30 at 10.44.45 AM.png"><br /> Check to make sure the bitronix project shows up, and is selected. Click "Next".</p> <p><img class="confluence-embedded-image confluence-content-image-border" src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.45.53+AM.png?version=1&modificationDate=1369354450321" data-image-src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.45.53+AM.png?version=1&modificationDate=1369354450321" data-linked-resource-id="231375589" data-linked-resource-type="attachment" data-linked-resource-default-alias="Screen Shot 2011-08-30 at 10.45.53 AM.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080122" title="null > Screen Shot 2011-08-30 at 10.45.53 AM.png"><br /> The defaults should be fine here, just click "Finish".</p> <p>Your project tree should now look like this:<br /> <img class="confluence-embedded-image confluence-content-image-border" src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.48.47+AM.png?version=1&modificationDate=1369354450308" data-image-src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.48.47+AM.png?version=1&modificationDate=1369354450308" data-linked-resource-id="231375587" data-linked-resource-type="attachment" data-linked-resource-default-alias="Screen Shot 2011-08-30 at 10.48.47 AM.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080122" title="null > Screen Shot 2011-08-30 at 10.48.47 AM.png"></p> <h3>Step 2:</h3> <p>Now we're going to setup the module paths so that IntelliJ can build with both JDBC3 and JDBC4 at the same time.</p> <p>Right-click on the bitronix project in the project tree, and choose "Open Module Settings" from the menu. A window like this should open:<br /> <img class="confluence-embedded-image confluence-content-image-border" src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.53.07+AM.png?version=1&modificationDate=1369354450297" data-image-src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.53.07+AM.png?version=1&modificationDate=1369354450297" data-linked-resource-id="231375586" data-linked-resource-type="attachment" data-linked-resource-default-alias="Screen Shot 2011-08-30 at 10.53.07 AM.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080122" title="null > Screen Shot 2011-08-30 at 10.53.07 AM.png"><br /> Now, perform these steps for the "btm" module:</p> <ul> <li>Select the "btm" module in the second pane from the left.</li> <li>Click on the "Dependencies" tab for the btm module.</li> <li>Select the "btm-jdbc3-stubs" dependency, and move it up, <em>above</em> the Java VM dependency ("1.6 (java version 1.6.0_26)" in the screenshot, possibly "1.5" in your environment).</li> <li>The result should look like this:</li> </ul> <p><img class="confluence-embedded-image confluence-content-image-border" src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.58.51+AM.png?version=1&modificationDate=1369354450280" data-image-src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+10.58.51+AM.png?version=1&modificationDate=1369354450280" data-linked-resource-id="231375585" data-linked-resource-type="attachment" data-linked-resource-default-alias="Screen Shot 2011-08-30 at 10.58.51 AM.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080122" title="null > Screen Shot 2011-08-30 at 10.58.51 AM.png"><br /> In IntelliJ, dependencies that appear <span style="text-decoration: underline;">after</span> the JDK are added to the <em>classpath</em>, and dependencies that appear <span style="text-decoration: underline;">before</span> the JDK are added to the <em>bootclasspath</em>.</p> <p>Now, perform these steps for the "btm-jdbc4" module:</p> <ul> <li>Select the "btm-jdbc4" module in the second pane from the left.</li> <li>Click on the "Dependencies" tab for the btm-jdbc4 module.</li> <li>Select the "btm-jdbc4-stubs" dependency, and move it up, <em>above</em> the Java VM dependency ("1.6 (java version 1.6.0_26)" in the screenshot, possibly "1.5" in your environment).</li> <li>The result should look like this:</li> </ul> <p><img class="confluence-embedded-image confluence-content-image-border" src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+11.02.30+AM.png?version=1&modificationDate=1369354450264" data-image-src="/download/attachments/231080122/Screen+Shot+2011-08-30+at+11.02.30+AM.png?version=1&modificationDate=1369354450264" data-linked-resource-id="231375584" data-linked-resource-type="attachment" data-linked-resource-default-alias="Screen Shot 2011-08-30 at 11.02.30 AM.png" data-base-url="http://docs.codehaus.org" data-linked-resource-container-id="231080122" title="null > Screen Shot 2011-08-30 at 11.02.30 AM.png"><br /> Ok, you're done! Now, click "OK" to dismiss the module settings dialog.</p> <h3>Step 3:</h3> <p>Click on the "Build" menu, and select "Rebuild Project". The projects should now build without error.</p> <p><strong>Happy developing! The Bitronix Team welcomes your contribution.</strong></p>
Please type the word appearing in the picture.
Attachments
Labels
Location
Watch this page
< Edit
Preview >
Loading…
Save
Cancel
Next hint
search
attachments
weblink
advanced