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/04/11 15:11:13 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:
instructions to build latest idea-plugin,removed unnecessary customization steps

------------------------------------------------------------------------------
  
  == Building Apache MyFaces with IntelliJ IDEA - Step by Step ==
  
- === Download and install maven and the maven-idea-plugin ===
+ === Prepare maven and the maven-idea-plugin ===
+ ==== Download and install maven ====
   1. Download the current maven version available at http://maven.apache.org
   1. Follow the Installation Instructions on http://maven.apache.org to install maven
-  1. Download the maven-idea-plugin zip-file from https://issues.apache.org/jira/browse/MYFACES-1081
-  1. extract the zip file into a directory (we will use C:\Programme\Apache Software Foundation\ in this guide)
-  1. open a Console window and change into C:\Programme\Apache Software Foundation\idea
-  1. run "mvn install" ( you may need to try it several times if the connection can't be established in the first run)
+ 
+ ==== Build latest maven-idea-plugin ====
+ Unfortunately the latest stable release does not work for MyFaces. Even the latest 2.0-beta-2-SNAPSHOT has bugs that make it fail for our complex project structure. So, you must get the latest 2.0-beta-2-SNAPSHOT source and build it on your own to have success.
+ The latest source that is known to work is: 2006-04-11 11:00 UTC
+  1. Do a subversion checkout from http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-idea-plugin/
+  1. run "mvn clean install" (or "mvn clean install -Dmaven.test.skip=true" if there are test failures)
  
  === 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. change into that directory in the console window
-  1. 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 clean install"
   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)
   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. In the project Settings open the Modules Dialog by clicking on the Icon or pressing 1.
-  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
- 
- ==== 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. In the project Settings open the Modules Dialog by clicking on the Icon or pressing 1.
-  1. In the left section of the dialog (where the modules are listed) select the module "myfaces-impl"
-  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
-  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.
-  1. right click on the javax folder and select Excluded
-  1. right click on the org folder and select Excluded
-  1. right click on the target 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. In the project Settings open the Modules Dialog by clicking on the Icon or pressing 1.
-  1. In the left section of the dialog (where the modules are listed) select the module "tomahawk"
-  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
-  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.
-  1. right click on the licenses folder and select Excluded
-  1. right click on the org folder and select Excluded
-  1. right click on the target 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)