You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2006/01/31 23:31:29 UTC
[Myfaces Wiki] Update of "JetBrains IntelliJ IDEA" by ErnstFastl
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.
The following page has been changed by ErnstFastl:
http://wiki.apache.org/myfaces/JetBrains_IntelliJ_IDEA
------------------------------------------------------------------------------
##language:en
#pragma section-numbers off
+ == Building Apache MyFaces with IntelliJ IDEA - Step by Step ==
+
+ 1.)Download the current maven version available at http://maven.apache.org
+
+ 2.)Follow the Installation Instructions on http://maven.apache.org to install maven
+
+ 3.)Download the maven-idea-plugin zip-file
+
+ 3.)extract the zip file into a directory (we will use C:\Programme\Apache Software Foundation\ in this guide)
+
+ 5.)open a Console window and change into C:\Programme\Apache Software Foundation\idea
+
+ 6.)run "mvn install" ( you may need to try it several times if the connection can't be established in the first run)
+
+ 7.)checkout (svn) the myfaces source directory from https://svn.apache.org/repos/asf/myfaces/current
+
+ 8.)change into that directory in the console window
+
+ 9.)run "mvn install" ( you may need to try it several times if the connection can't be established in the first run)
+
+ 10.)after that run "mvn idea:idea"
+
+ 11.)exit the console window and open the newly created project "myfaces-build.ipr" with IntelliJ IDEA
+
+ 12.)configure the project to use your JDK :
+
+ 12a)open the Settings dialog by pressing CTRL-ALT-S, Clicking on the Settings Icon or selecting Settings from the File Menu
+
+ 12b)In the project Settings open the Modules Dialog by clicking on the Icon or pressing 1.
+
+ 12c)Click on the libraries tab. If the Project JDK isn't already the one you want to use click on the ... next to the
+ selected JDK and select another one
+
+ 13)configure the Module "myfaces-impl"
+
+ 13a)open the Settings dialog by pressing CTRL-ALT-S, Clicking on the Settings Icon or selecting Settings from the File Menu
+
+ 13b)In the project Settings open the Modules Dialog by clicking on the Icon or pressing 1.
+
+ 13c)In the left section of the dialog (where the modules are listed) select the module "myfaces-impl"
+
+ 13d)In the middle section of the dialog where the excluded Folders are listed (they appear in red) click on the x-button
+ right of target\classes to include this folder
+
+ 13e)In the right section of the dialog where the folder tree is shown expand the target folder by clicking on the + left
+ of it and after that expand the classes folder.
+
+ 13f)right click on the javax folder and select Excluded
+
+ 13g)right click on the org folder and select Excluded
+
+ 13h)right click on the target folder and select Sources
+
+ 13i)right click on the META-INF folder and select Sources
+
+ 14)configure the Module "tomahawk"
+
+ 14a)open the Settings dialog by pressing CTRL-ALT-S, Clicking on the Settings Icon or selecting Settings from the File Menu
+
+ 14b)In the project Settings open the Modules Dialog by clicking on the Icon or pressing 1.
+
+ 14c)In the left section of the dialog (where the modules are listed) select the module "tomahawk"
+
+ 14d)In the middle section of the dialog where the excluded Folders are listed (they appear in red) click on the x-button
+ right of target\classes to include this folder
+
+ 14e)In the right section of the dialog where the folder tree is shown expand the target folder by clicking on the + left
+ of it and after that expand the classes folder.
+
+ 14f)right click on the licenses folder and select Excluded
+
+ 14g)right click on the org folder and select Excluded
+
+ 14h)right click on the target folder and select Sources
+
+ 14i)right click on the META-INF folder and select Sources
+
+ 15)configure the Web-Modules: for each of the web-modules (they are listed in the left section of the dialog having a globe as icon)
+
+ 15a)select the web-module in the left section of the dialog
+
+ 15b)select the tab J2EE Build Settings
+
+ 15c)check the checkbox "Create web module exploded directory"
+
+ 15d)click on the tab web module settings
+
+ 15e)in the top-left drop-down-menu select an application server (most likely tomcat)
+
+ 16)Choose an application server for running/debugging and set the application contexts
+
+ 16a)click on the dropdown left of the "dead" run and debug buttons, and selct "Edit Configurations"
+ (alternatively you can select Run -> "Edit Configurations" to get the same dialog)
+
+ 16b)click on the tab "Tomcat Server"
+
+ 16c)click on the + Button in the left section of the dialog and choose "Local"
+
+ 16d)In the right section of the dialog, in the dropdown next to "Application Server" select "Tomcat"
+
+ 16e)In the right section of the dialog select the sub-tab Deployment
+
+ 16f)For each web-module:
+
+ -click on the module
+
+ -check the checkbox "Deploy Web Module" in the right section of the dialog
+
+ -enter an application-context for the module ( note: the individual modules must have different
+ application context and there can only be one module with the context /. myfaces-example-simple
+ generally is a good one to start with ;-)
+
+ 17)Click on the run or debug button start the application and test if you can access the examples with your browser
+ (probably under http://localhost:8080/)
+
+
- Attention! OUT-OF-DATE Due to Maven Reorg. Stay tuned for an update.
+ Attention! Content below this line is OUT-OF-DATE Due to Maven Reorg. Stay tuned for an update.
== Setting up the project via IntelliJ's project wizard ==