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/02/22 13:28:26 UTC

[Myfaces Wiki] Update of "JetBrains IntelliJ IDEA" by ManfredGeiler

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 ManfredGeiler:
http://wiki.apache.org/myfaces/JetBrains_IntelliJ_IDEA

The comment on the change is:
added jdkName hint and some trivial reformating

------------------------------------------------------------------------------
  == Building Apache MyFaces with IntelliJ IDEA - Step by Step ==
  
  === Download and install maven and the maven-idea-plugin ===
- 
- 1.)Download the current maven version available at http://maven.apache.org
+  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
+  1. Follow the Installation Instructions on http://maven.apache.org to install maven
- 
- 3.)Download the maven-idea-plugin zip-file from https://issues.apache.org/jira/browse/MYFACES-1081
+  1. Download the maven-idea-plugin zip-file from https://issues.apache.org/jira/browse/MYFACES-1081
- 
- 4.)extract the zip file into a directory (we will use C:\Programme\Apache Software Foundation\ in this guide)
+  1. 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
+  1. 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)
+  1. run "mvn install" ( you may need to try it several times if the connection can't be established in the first run)
  
  === Checkout MyFaces and create the IDEA Project with maven ===
- 
- 1.)checkout (svn) the myfaces source directory from https://svn.apache.org/repos/asf/myfaces/current
+  1. checkout (svn) the myfaces source directory from https://svn.apache.org/repos/asf/myfaces/current
- 
- 2.)change into that directory in the console window
+  1. change into that directory in the console window
- 
- 3.)run "mvn install" ( you may need to try it several times if the connection can't be established in the first run)
+  1. run "mvn install" ( you may need to try it several times if the connection can't be established in the first run)
+  1. select one of the JDKs in your IntelliJ settings under "JDK & Global Libraries" and remember (or clipboard) the exact name[[BR]]Note: JDK 1.5.x is not recommended, use a JDK 1.4.x instead
+  1. after that run {{{ mvn idea:idea -DjdkName=NAME }}} where NAME is the name of the JDK in your IntelliJ settings (see last step)
- 
- 4.)after that run "mvn idea:idea" 
- 
- 5.)exit the console window and open the newly created project "myfaces-build.ipr" with IntelliJ IDEA
+  1. exit the console window and open the newly created project "myfaces-build.ipr" with IntelliJ IDEA
  
  === Customize the project ===
  
  ==== configure the project to use your JDK : ====
- 
- 1)open the Settings dialog by pressing CTRL-ALT-S, Clicking on the Settings Icon or selecting Settings from the File Menu
+  1. open the Settings dialog by pressing CTRL-ALT-S, Clicking on the Settings Icon or selecting Settings from the File Menu
- 
- 2)In the project Settings open the Modules Dialog by clicking on the Icon or pressing 1.
+  1. In the project Settings open the Modules Dialog by clicking on the Icon or pressing 1.
- 
- 3)Click on the libraries tab. If the Project JDK isn't already the one you want to use click on the ... next to the
+  1. 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
- selected JDK and select another one
  
  ==== configure the Module "myfaces-impl" ====
- 
- 1)open the Settings dialog by pressing CTRL-ALT-S, Clicking on the Settings Icon or selecting Settings from the File Menu
+  1. open the Settings dialog by pressing CTRL-ALT-S, Clicking on the Settings Icon or selecting Settings from the File Menu
- 
- 2)In the project Settings open the Modules Dialog by clicking on the Icon or pressing 1.
+  1. In the project Settings open the Modules Dialog by clicking on the Icon or pressing 1.
- 
- 3)In the left section of the dialog (where the modules are listed) select the module "myfaces-impl"
+  1. In the left section of the dialog (where the modules are listed) select the module "myfaces-impl"
- 
- 4)In the middle section of the dialog where the excluded Folders are listed (they appear in red) click on the x-button
+  1. 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
- right of target\classes to include this folder
- 
- 5)In the right section of the dialog where the folder tree is shown expand the target folder by clicking on the + left 
+  1. 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.
- of it and after that expand the classes folder.
- 
- 6)right click on the javax folder and select Excluded
+  1. right click on the javax folder and select Excluded
- 
- 7)right click on the org folder and select Excluded
+  1. right click on the org folder and select Excluded
- 
- 8)right click on the target folder and select Sources
+  1. right click on the target folder and select Sources
- 
- 9)right click on the META-INF folder and select Sources
+  1. right click on the META-INF folder and select Sources
  
  ==== configure the Module "tomahawk" ====
- 
- 1)open the Settings dialog by pressing CTRL-ALT-S, Clicking on the Settings Icon or selecting Settings from the File Menu
+  1. open the Settings dialog by pressing CTRL-ALT-S, Clicking on the Settings Icon or selecting Settings from the File Menu
- 
- 2)In the project Settings open the Modules Dialog by clicking on the Icon or pressing 1.
+  1. In the project Settings open the Modules Dialog by clicking on the Icon or pressing 1.
- 
- 3)In the left section of the dialog (where the modules are listed) select the module "tomahawk"
+  1. In the left section of the dialog (where the modules are listed) select the module "tomahawk"
- 
- 4)In the middle section of the dialog where the excluded Folders are listed (they appear in red) click on the x-button
+  1. 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
- right of target\classes to include this folder
- 
- 5)In the right section of the dialog where the folder tree is shown expand the target folder by clicking on the + left 
+  1. 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.
- of it and after that expand the classes folder.
- 
- 6)right click on the licenses folder and select Excluded
+  1. right click on the licenses folder and select Excluded
- 
- 7)right click on the org folder and select Excluded
+  1. right click on the org folder and select Excluded
- 
- 8)right click on the target folder and select Sources
+  1. right click on the target folder and select Sources
- 
- 9)right click on the META-INF folder and select Sources
+  1. right click on the META-INF folder and select Sources
  
  ==== 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)
+ for each of the web-modules (they are listed in the left section of the dialog having a globe as icon)
- 
- 1)select the web-module in the left section of the dialog
+  1. select the web-module in the left section of the dialog
- 
- 2)select the tab J2EE Build Settings
+  1. select the tab J2EE Build Settings
- 
- 3)check the checkbox "Create web module exploded directory"
+  1. check the checkbox "Create web module exploded directory"
- 
- 4)click on the tab web module settings
+  1. click on the tab web module settings
- 
- 5)in the top-left drop-down-menu select an application server (most likely tomcat)
+  1. in the top-left drop-down-menu select an application server (most likely tomcat)
  
  ==== Choose an application server for running/debugging and set the application contexts ====
+  1. click on the dropdown left of the "dead" run and debug buttons, and selct "Edit Configurations"[[BR]](alternatively you can select Run -> "Edit Configurations" to get the same dialog)
+  1. click on the tab "Tomcat Server"
+  1. click on the + Button in the left section of the dialog and choose "Local"
+  1. In the right section of the dialog, in the dropdown next to "Application Server" select "Tomcat"
+  1. In the right section of the dialog select the sub-tab Deployment
+  1. 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[[BR]]Note: the individual modules must have different application context and there can only be one module with the context /[[BR]]myfaces-example-simple generally is a good one to start with ;-)
+  1. 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/)
  
- 1)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)
- 
- 2)click on the tab "Tomcat Server"
- 
- 3)click on the + Button in the left section of the dialog and choose "Local"
- 
- 4)In the right section of the dialog, in the dropdown next to "Application Server" select "Tomcat"
- 
- 5)In the right section of the dialog select the sub-tab Deployment
- 
- 6)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 ;-)
- 
- 7)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/)
-