Maven Repository-Based JBoss IntelliJ Investigation Environment: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 34: Line 34:


then follow the same procedure as for [[#Create_Reference_Modules|Create Reference Modules]].
then follow the same procedure as for [[#Create_Reference_Modules|Create Reference Modules]].
<blockquote style="background-color: Gold; border: solid thin Goldenrod;">
:<br>It is important to follow the same procedure and be careful to settings (such as Level, etc), otherwise you could end up with broken modules.<br><br>
</blockquote>


=Import a Module in Your Project=
=Import a Module in Your Project=


File -> Project Structure -> Modules -> + -> Import Module.
File -> Project Structure -> Modules -> + -> Import Module.

Revision as of 01:23, 19 January 2016

Internal

Create Reference Modules

Unzip the Maven repository into ~/projects/eap7/beta/jboss-eap-7.0.0.Beta1-maven-repository.

Create an empty IntelliJ project rooted in the Maven repository directory /Users/ovidiu/projects/eap7/beta/jboss-eap-7.0.0.Beta1-maven-repository/maven-repository.

Project format: .idea (directory based).

Add a module. New -> Module -> Java

Name: EAP 7.0 Beta Undertow

Content root: /Users/ovidiu/projects/eap7/beta/jboss-eap-7.0.0.Beta1-maven-repository/maven-repository/modules/EAP 7.0 Beta Undertow

Use the same value for module file location.

Open Module Settings -> Dependencies -> Library -> Java -> ... io/undertow/undertow-core/1.3.7-Final-redhat-1/*.jar

Level: Module Library

+ -> the source JAR.

Scope: Provided.

Add More Content to a Reference Module

Open the reference IntelliJ project -> navigate to the module in question -> Dependencies -> + -> Library -> Java

then follow the same procedure as for Create Reference Modules.


It is important to follow the same procedure and be careful to settings (such as Level, etc), otherwise you could end up with broken modules.

Import a Module in Your Project

File -> Project Structure -> Modules -> + -> Import Module.