Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for 
change notification.

The following page has been changed by RichardClark:
http://wiki.apache.org/tapestry/Tapestry5_Run_Jetty_From_IDEA

The comment on the change is:
All new!

New page:
So far, all of the documentation focuses on Eclipse and Jetty 5 (via 
JettyRunner) or Maven and Jetty. Here are a couple of ways to use Tapestry 5, 
IntelliJ IDEA 7, and Jetty 6 together.

== Prerequisites ==

[http://www.jetbrains.com/idea/index.html  Intellij IDEA 7.0.3][[BR]]
[http://mortbay.org/jetty-6/ Jetty 6]

== Using Maven to make ==

The quickest and easiest approach is to set up a run configuration using Maven 
(e.g. starting with the Maven archetype.)

 1. Select ''Edit Configurations'' under the ''Run'' menu
 2. Click on the '''+''' button and select ''Maven'' from the list
 3. Name the configuration (optional)
 4. Edit the three tabs as follows:[[BR]]
 ''Project''[[BR]]
  Set ''Project File'' to your POM.xml[[BR]]
  Set ''Goals'' to '''jetty:run-exploded'''[[BR]]
 ''General''[[BR]]
  Set the ''Maven Home Directory'' to your Maven installation's location and 
check ''Override''[[BR]]
  Set your ''Maven Local Repository''[[BR]]
 ''Runner''[[BR]]
  Set the ''VM Parameters'' to '''-Djetty.scanIntervalSeconds=5''' sop you can 
use the automatic class reloading.

== Using IDEA to make ==

This uses the Codebrewer ''Jetty Integration'' plugin.  

=== Install the plugin ===

 1. Open IDEA's ''Preferences''
 2. Select ''Plugins''
 3. Select the ''Available'' tab
 4. Type '''Jetty Integration''' into the search box.
 5. You should see the ''Jetty Integration'' plugin appear.
 6. Click on the "install plugin" icon.
 7. Select '''OK''' and restart the IDE when prompted.

=== Create your run configuration ===

 1. Select ''Edit Configurations'' under the ''Run'' menu
 2. Click on the '''+''' button and select ''Jetty Server'' from the list
 3. Name the configuration (optional)

==== If the Application Server popup menu is empty ====
 1. Click the '''Configure...'''button
 2. Click '''+ Add'''
 3. Select the location of your Jetty installation. 
 4. Click '''OK''' to close this sub-panel.

==== Configure the Server tab ====
 1. Select your version of Jetty from the ''Application Server'' popup. (If 
this is empty, see '''Add a server''' below)
 2. In the ''Open browser'' section, select '''Start browser''' and set the 
''Startup page'' to '''http://localhost:8080/'''
 3. In the '''Before Launch''' section, check ''Make''  and uncheck the other 
two settings.

==== Configure the Deployment tab ====
 1. Under ''Web Facets'' in the left, select '''Web'''
 2. Check '''Deploy Web Facet "Web"'''
 3. Set the '''Context Path''' to ''/''
 4. Click '''Configure...'''

===== Configure the deployment source =====
Start in the '''Web Deployment''' tab

 1. Go to the '''Web Resource Directories''' section
 2. Click '''New'''
 3. Add ''app/src/main/resources'' at path ''/WEB-INF/classes''

Now go to the '''Java EE Build Settings''' tab

 1. Select '''Create web module exploded directory''' and define a directory
 2. Select '''Build on frame deactivation''' and unselect '''Build web 
resources only'''. This will let you use automatic code reloading.

Click ''OK'' twice.

=== Finish up ===

 1. Back in the '''Deployment''' tab, go to the '''Deployment source''' popup 
and make sure it points to your exploded directory.
 2. Click '''OK'''

Now you can run your app normally!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to