You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by jc...@apache.org on 2011/12/23 18:00:00 UTC

svn commit: r1222750 - /incubator/rave/site/trunk/content/rave/ide-settings-and-debugging.mdtext

Author: jcian
Date: Fri Dec 23 17:00:00 2011
New Revision: 1222750

URL: http://svn.apache.org/viewvc?rev=1222750&view=rev
Log:
RAVE-387: Add Intelij deployment instructions (thanks to marijan milicevic for the patch)

Modified:
    incubator/rave/site/trunk/content/rave/ide-settings-and-debugging.mdtext

Modified: incubator/rave/site/trunk/content/rave/ide-settings-and-debugging.mdtext
URL: http://svn.apache.org/viewvc/incubator/rave/site/trunk/content/rave/ide-settings-and-debugging.mdtext?rev=1222750&r1=1222749&r2=1222750&view=diff
==============================================================================
--- incubator/rave/site/trunk/content/rave/ide-settings-and-debugging.mdtext (original)
+++ incubator/rave/site/trunk/content/rave/ide-settings-and-debugging.mdtext Fri Dec 23 17:00:00 2011
@@ -108,6 +108,27 @@ Now we need to add the the two webapps t
   * Start the server
   * Now see the instructions above for logging into the server
 
+## Configuring Intellij
+
+ * Checkout Rave project
+ * File > New project > Import project from external model and select pom.xml
+
+## Configure remote Tomcat and Intellij
+
+ * Go to Project Structure  and select Artifacts
+ * Add new artifact of type "Other"
+ * Give above created artifact useful name e.g. "Portal" and point output directory to "CATALINA_HOME/webapps/portal"
+ * Check "Build on make checkbox" and add copy of Artifact "rave-portal:war exploded to "output root"
+ * Repeat above steps for Shindig artifact (use "rave-shindig:war exploded" artifact and use "CATALINA_HOME/webapps/ROOT" as output directory
+ * Repeat above steps for Gadgets artifact (use "rave-demo-gadgets:war exploded" artifact and use "CATALINA_HOME/webapps/gadgets" as output directory
+
+## Debug with Intellij and remote tomcat
+
+ * Install [OpenJpa Enhancer integration plugin][11] Without this plugin you'll need to use maven for compiling. See also [plugin documentation][12]
+ * Configure Remote Tomcat debugging configuration at port 8000
+
+ Note: to enable debugging session add following to catalina.sh file:
+ "CATALINA_OPTS="${CATALINA_OPTS} -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000"
 
   [1]: http://download.eclipse.org/webtools/downloads/
   [2]: http://download.eclipse.org/releases/indigo/
@@ -118,4 +139,6 @@ Now we need to add the the two webapps t
   [7]: http://code.google.com/p/mavenfilesync/
   [8]: http://andrei.gmxhome.de/eclipse/
   [9]: http://www.zeroturnaround.com/jrebel/how-to-install-jrebel-for-eclipse/
-  [10]: http://m2eclipse.sonatype.org/sites/m2e-extras
\ No newline at end of file
+  [10]: http://m2eclipse.sonatype.org/sites/m2e-extras
+  [11]: http://plugins.intellij.net/plugin/?idea&id=6617
+  [12]: https://github.com/machak/enhancer/wiki
\ No newline at end of file