You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2014/03/24 23:27:24 UTC
svn commit: r1581095 - in /isis/site/trunk/content:
intro/getting-started/ide/ intro/getting-started/ide/images/
intro/tutorials/ other/
Author: danhaywood
Date: Mon Mar 24 22:27:23 2014
New Revision: 1581095
URL: http://svn.apache.org/r1581095
Log:
intellij etc
Added:
isis/site/trunk/content/intro/getting-started/ide/images/intellij-035-run-configuration.png (with props)
isis/site/trunk/content/intro/getting-started/ide/images/intellij-040-run-configuration.png (with props)
Modified:
isis/site/trunk/content/intro/getting-started/ide/eclipse.md
isis/site/trunk/content/intro/getting-started/ide/images/intellij-030-run-configuration.png
isis/site/trunk/content/intro/getting-started/ide/intellij.md
isis/site/trunk/content/intro/tutorials/screencasts.md
isis/site/trunk/content/other/jrebel.md
Modified: isis/site/trunk/content/intro/getting-started/ide/eclipse.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/intro/getting-started/ide/eclipse.md?rev=1581095&r1=1581094&r2=1581095&view=diff
==============================================================================
--- isis/site/trunk/content/intro/getting-started/ide/eclipse.md (original)
+++ isis/site/trunk/content/intro/getting-started/ide/eclipse.md Mon Mar 24 22:27:23 2014
@@ -6,23 +6,21 @@ Title: Setting up Eclipse (with JDO/Data
> * setting up [Eclipse and JRebel](../../../other/jrebel.html).
>
-We highly recommend that you develop your Isis application using an IDE. Isis is built with Maven, and all modern IDEs can import Maven projects.
+We highly recommend that you develop your Isis application using an IDE. Isis is built with Maven, and all modern IDEs can import Maven projects. The most commonly used IDE is [Eclipse](http://www.eclipse.org), which can be downloaded in various configurations, all of which are free for use. We recommend you download the "Eclipse JEE package".
-If using the [JDO Objectstore](../../../components/objectstores/jdo/about.html) (the default if using the [simple](../simple-archetype.html) or [quickstart](../quickstart-archetype.html) archetypes), then the development environment must be configured such that the Java bytecode can be enhanced by a [JDO enhancer](http://db.apache.org/jdo/enhancement.html).
-
-If working in Eclipse, then JDO enhancement is most easily done by installing [DataNucleus' plugin](http://www.datanucleus.org/plugins/ide.eclipse.html). This hooks the bytecode enhancement of your domain objects into Eclipse's normal incremental compilation. This plugin needs to be configured for each of your domain modules (usually just one in any given app).
+If using the [JDO Objectstore](../../../components/objectstores/jdo/about.html) (the default if using the [simple](../simple-archetype.html) or [quickstart](../quickstart-archetype.html) archetypes), then the development environment must be configured such that the Java bytecode can be enhanced by a [JDO enhancer](http://db.apache.org/jdo/enhancement.html). If working in Eclipse, then JDO enhancement is most easily done by installing [DataNucleus' plugin](http://www.datanucleus.org/plugins/ide.eclipse.html). This hooks the bytecode enhancement of your domain objects into Eclipse's normal incremental compilation. This plugin needs to be configured for each of your domain modules (usually just one in any given app).
The steps are therefore:
* import the project into Eclipse
* configure the DataNucleus enhancer
-* running the app from the `.launch` file
+* run the app from the `.launch` file
## <a name="screencast"></a>Screencast
The following screencast shows how import an Apache Isis maven-based application into Eclipse and configure to use with the JDO Objectstore
-<iframe width="420" height="315" src="http://www.youtube.com/embed/RgcYfjQ8yJA" frameborder="0" allowfullscreen></iframe>
+<iframe width="640" height="480" src="http://www.youtube.com/embed/RgcYfjQ8yJA" frameborder="0" allowfullscreen></iframe>
## Importing the Project
Modified: isis/site/trunk/content/intro/getting-started/ide/images/intellij-030-run-configuration.png
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/intro/getting-started/ide/images/intellij-030-run-configuration.png?rev=1581095&r1=1581094&r2=1581095&view=diff
==============================================================================
Binary files - no diff available.
Added: isis/site/trunk/content/intro/getting-started/ide/images/intellij-035-run-configuration.png
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/intro/getting-started/ide/images/intellij-035-run-configuration.png?rev=1581095&view=auto
==============================================================================
Binary file - no diff available.
Propchange: isis/site/trunk/content/intro/getting-started/ide/images/intellij-035-run-configuration.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: isis/site/trunk/content/intro/getting-started/ide/images/intellij-040-run-configuration.png
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/intro/getting-started/ide/images/intellij-040-run-configuration.png?rev=1581095&view=auto
==============================================================================
Binary file - no diff available.
Propchange: isis/site/trunk/content/intro/getting-started/ide/images/intellij-040-run-configuration.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: isis/site/trunk/content/intro/getting-started/ide/intellij.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/intro/getting-started/ide/intellij.md?rev=1581095&r1=1581094&r2=1581095&view=diff
==============================================================================
--- isis/site/trunk/content/intro/getting-started/ide/intellij.md (original)
+++ isis/site/trunk/content/intro/getting-started/ide/intellij.md Mon Mar 24 22:27:23 2014
@@ -6,30 +6,56 @@ Title: Setting up the IntelliJ IDE
> * setting up [IntelliJ and JRebel](../../../other/jrebel.html).
>
-We highly recommend that you develop your Isis application using an IDE. Isis is built with Maven, and all modern IDEs can import Maven projects.
+We highly recommend that you develop your Isis application using an IDE. Isis is built with Maven, and all modern IDEs can import Maven projects. One of the most popular IDEs is [IntelliJ](http://jetbrains.com/intellij), offering either a paid-for "Ultimate" edition or a free-to-use Community edition. Either will do for Isis development.
-If using the [JDO Objectstore](../../../components/objectstores/jdo/about.html) (the default if using the [simple](../simple-archetype.html) or [quickstart](../quickstart-archetype.html) archetypes), then the development environment must be configured such that the Java bytecode can be enhanced by a [JDO enhancer](http://db.apache.org/jdo/enhancement.html).
-
-If working in IntelliJ, then JDO enhancement is most easily done by leveraging the Maven configuration.
+If using the [JDO Objectstore](../../../components/objectstores/jdo/about.html) (the default if using the [simple](../simple-archetype.html) or [quickstart](../quickstart-archetype.html) archetypes), then the development environment must be configured such that the Java bytecode can be enhanced by a [JDO enhancer](http://db.apache.org/jdo/enhancement.html). When working in IntelliJ, then JDO enhancement is most easily done by leveraging the Maven configuration. We do this by executing the `mvn compile` goal in the dom project, prior to running the application.
The steps are therefore:
-* import the project into Eclipse
+* import the project into IntelliJ
* setting up a run/debug configuration to run the app
## <a name="screencast"></a>Screencasts
-TODO
+This screencast shows how to import an Isis app into IntelliJ, and then how to setup the run/debug configuration to run the app:
+
+<iframe width="640" height="360" src="//www.youtube.com/embed/lwKsyTbTSnA" frameborder="0" allowfullscreen></iframe>
+
+If you are a [JRebel](http://zeroturnaround.com/software/jrebel/) user, then do also look at [how to configure IntelliJ with JRebel](../../../other/jrebel.html#intellij).
## Importing the Code into IntelliJ
+Importing the Isis as a Maven app is straightforward:
+
<img src="images/intellij-010-import.png" width="600px"/>
+and then:
+
<img src="images/intellij-020-maven.png" width="600px"/>
## Setting up a Run/Debug Configuration
+The screenshot below shows how to setup the run/debug configuration:
<img src="images/intellij-030-run-configuration.png" width="600px"/>
+That is:
+
+* Main Class: `org.apache.isis.WebServer`
+* VM options: (leave blank)
+* Program arguments: `--type SERVER_PROTOTYPE --port 8080`
+* Environment variables: (leave blank)
+* Use classpath of module: (the `webapp` module)
+
+See [here](../../../reference/deployment-type.html) for other deployment types (the `--type` argument).
+
+Then - importantly - for the `Before launch` setting, first remove the default "Make" entry, and then add a new Maven goal:
+
+<img src="images/intellij-040-run-configuration.png" width="350px"/>
+
+to execute `mvn compile` for the `dom` modue:
+
+<img src="images/intellij-040-run-configuration.png" width="400px"/>
+
+Running `mvn compile` (rather than IntellJ's regular make) will ensure that the domain object classes are enhanced by the DataNucleus enhancer.
Modified: isis/site/trunk/content/intro/tutorials/screencasts.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/intro/tutorials/screencasts.md?rev=1581095&r1=1581094&r2=1581095&view=diff
==============================================================================
--- isis/site/trunk/content/intro/tutorials/screencasts.md (original)
+++ isis/site/trunk/content/intro/tutorials/screencasts.md Mon Mar 24 22:27:23 2014
@@ -59,7 +59,7 @@ We've prepared some screencasts to help
Learn more <a href="../getting-started/ide/intellij.html#screencast">here</a>
</td>
<td>
- TODO
+ <iframe width="420" height="315" src="http://www.youtube.com/embed/lwKsyTbTSnA" frameborder="0" allowfullscreen></iframe>
</td>
</tr>
@@ -161,7 +161,7 @@ We've prepared some screencasts to help
See also <a href="../../other/jrebel.html#screencast">here</a>
</td>
<td>
- TODO
+ <iframe width="420" height="236" src="//www.youtube.com/embed/XXX" frameborder="0" allowfullscreen></iframe>
</td>
</tr>
<table>
Modified: isis/site/trunk/content/other/jrebel.md
URL: http://svn.apache.org/viewvc/isis/site/trunk/content/other/jrebel.md?rev=1581095&r1=1581094&r2=1581095&view=diff
==============================================================================
--- isis/site/trunk/content/other/jrebel.md (original)
+++ isis/site/trunk/content/other/jrebel.md Mon Mar 24 22:27:23 2014
@@ -16,16 +16,19 @@ This page describes how to use the JRebe
The Isis JRebel plugin itself is free for use, and is hosted on [github](https://github.com/danhaywood/isis-jrebel-plugin). However, JRebel itself is commercial software. There is though a community version that is [free for open source use](https://my.jrebel.com/). Please check terms and conditions before using.
+> Note that Isis must be run in prototype mode to automatically pick up changes.
-## <a name="screencast"></a>Screencasts
+## Prerequisites
-The following screencasts show how to develop your app without having to redeploy using a JRebel plugin.
+There are two prerequisites:
+* first, you'll need to download the JRebel JAR (or install the plugins into the IDE) and set up a license
+* second, you'll need to build/download the Isis JRebel plugin. Do this by cloning the [github repo]((https://github.com/danhaywood/isis-jrebel-plugin)), and building using maven.
-#### Using Maven with JRebel (1.4.2-snapshot)
+## <a name="maven"><a name="screencast">Using Maven with JRebel (1.4.2-snapshot)</a></a>
This screencast shows how to use Maven in conjunction with JRebel:
-<iframe width="640" height="354" src="//www.youtube.com/embed/jpYNZ343gi4" frameborder="0" allowfullscreen></iframe>
+<iframe width="640" height="360" src="//www.youtube.com/embed/jpYNZ343gi4" frameborder="0" allowfullscreen></iframe>
The command used to run the webapp is:
@@ -33,20 +36,33 @@ The command used to run the webapp is:
-Djrebel.jar="C:/Users/Dan/.IdeaIC13/config/plugins/jr-ide-idea/lib/jrebel/jrebel.jar" \
-Disis_jrebel_plugin.jar="C:/github/danhaywood/isis-jrebel-plugin/target/danhaywood-isis-jrebel-plugin-1.0.0-SNAPSHOT.jar"
-Change the values of `rebel.jar` and `isis_jrebel_plugin.jar` as necessary.
+Change the values of `rebel.jar` and `isis_jrebel_plugin.jar` as necessary:
+* the `rebel.jar` property is the location of the JRebel jar file. You can either download this or (as the above example shows) simply use the embedded JRebel from an IDE
+* the `isis_jrebel_plugin.jar` property points to the Isis plugin JAR that you built previously
+* `isis-jrebel-plugin.packagePrefix` for the prefix of the application (eg `com.mycompany.myapp.dom`)
+
+## <a name="eclipse">Using Eclipse with JRebel</a>
-#### Using Eclipse with JRebel
+> Remember to install the JRebel plugin for Eclipse from the Eclipse Marketplace (Help > Eclipse Marketplace), and set up a license.
This screencast shows how to use Maven in conjunction with Eclipse:
-<iframe width="640" height="354" src="//www.youtube.com/embed/uPfRXllQV1o" frameborder="0" allowfullscreen></iframe>
+<iframe width="640" height="360" src="//www.youtube.com/embed/uPfRXllQV1o" frameborder="0" allowfullscreen></iframe>
+
+The archetypes already include a `.launch` file for JRebel. AS the screencast showed, you will need to adjust some settings:
+* `isis-jrebel-plugin.packagePrefix` for the prefix of the application (eg `com.mycompany.myapp.dom`)
+* `rebel.plugins` for the location of the Isis plugin JAR (from the github repo)
-#### Using IntelliJ with JRebel
+
+## <a name="intellij>Using IntelliJ with JRebel</a>
+
+> Remember to installed the JRebel plugin for IntelliJ (File > Settings > Plugins), and set up a license.
This screencast shows how to use Maven in conjunction with IntelliJ:
-> TODO
+<iframe width="640" height="360" src="//www.youtube.com/embed/XXX" frameborder="0" allowfullscreen></iframe>
+> This screencast follows on from the one that explains [how to setup IntelliJ](../../intro/getting-started/ide/intellij.html#screencast) as your IDE.
These screenshots show the VM arguments as configured in IntelliJ:
@@ -69,20 +85,9 @@ If you want to copy-n-paste those VM arg
-XX:MaxPermSize=128m
You'll need to adjust the value of some of these:
-* `rebel.plugins` for the location of the plugin JAR
-* `project.root` for the root directory of the application
+* `rebel.plugins` for the location of the Isis plugin JAR (from the github repo)
* `isis-jrebel-plugin.packagePrefix` for the prefix of the application (eg `com.mycompany.myapp.dom`)
+* `project.root` for the root directory of the application
You can probably leave the other properties as is.
-
-## Download
-
-The plugin can be downloaded from [github](https://github.com/danhaywood/isis-jrebel-plugin).
-
-
-## Usage
-
-The README on the github page how to set up the plugin.
-
-One final note: you do need to run Isis in prototype mode to automatically pick up changes.