diff --git a/j2ee/plugin.properties b/j2ee/plugin.properties deleted file mode 100644 index 5811388c..00000000 --- a/j2ee/plugin.properties +++ /dev/null @@ -1,128 +0,0 @@ -# ------------------------------------------------------------------- -# Default properties for the J2EE Plugin -# ------------------------------------------------------------------- -# These are the properties that we believe are immutable so we -# keep them apart from the project specific properties. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# Properties for the "validate-war" target -# ------------------------------------------------------------------- -# Location where the webapp or the war will be created. Defaults to -# ${maven.build.dir} -maven.war.build.dir = ${maven.build.dir} - - -# ------------------------------------------------------------------- -# Properties for the "ear" target -# ------------------------------------------------------------------- - -# List of mandatory properties that need to be defined in the project -# properties for the "ear" target : -# -# maven.j2ee.ear.name : name of the ear - -# Location of the ear application.xml file -maven.j2ee.ear.appxml=${maven.src.dir}/application.xml - -# J2EE modules to include and exclude from the ear -# Note: These files are relative to ${maven.build.dir} -maven.j2ee.ear.includes=*.jar, *.war -maven.j2ee.ear.excludes= - -# ------------------------------------------------------------------- -# Properties for the "ejb" target -# ------------------------------------------------------------------- - -# Required - -#maven.j2ee.ejb.name - -# Defaulted - -maven.j2ee.ejb.conf.dir=${maven.conf.dir}/${maven.j2ee.ejb.name}/ -maven.j2ee.ejb.conf.includes=ejb-jar.xml -maven.j2ee.ejb.conf.excludes= -maven.j2ee.ejb.includes=** -maven.j2ee.ejb.excludes=**/package.html - -# Optional - -# Local Interfaces Jar -#maven.j2ee.ejb.local.includes=**/interfaces/*Local*.class -#maven.j2ee.ejb.local.excludes=**/package.html - -# Remote Interfaces Jar -#maven.j2ee.ejb.remote.includes=**/interfaces/* -#maven.j2ee.ejb.remote.excludes=**/interfaces/*Local*.class - - - -############################################################################# -# A P P S E R V E R -#---------------------------------------------------------------------------- - -# -# used to let the appserver implementation scripts know which version of j2ee we are -# running against -# -maven.j2ee.version=13 - -# -# the place where the main install of the application server resides -# -maven.appserver.home=/apps/jakarta-tomcat-4 - -# -# a supported name of an application server instance to install -# -maven.appserver.name=tomcat - -# -# version number of the application server, in the form of ## -# -maven.appserver.version=4.x - -## needed for dir names and messages to the user -maven.appserver.fullname=${maven.appserver.name}-${maven.appserver.version} - -# -# ports to access this server instance -# -maven.appserver.port.http=8082 -maven.appserver.port.https=8083 -maven.appserver.port.one=8087 -maven.appserver.port.two=8088 -maven.appserver.port.three=8089 - -# -# where to install the local instance of the server -# -maven.appserver.dir=${basedir}/server - -# -# files in an 'includes' pattern to include when controlling the server -# For example, if you have classes in your classpath you would like to -# include when starting the server, you could use -# maven.appserver.classpath=${java.class.path} -# paths can be absolute or relative to ${maven.appserver.dir} as that is -# where a jvm will be started. This is common for libraries that need sharing -# across all webapps installed in the server -# -maven.appserver.classpath= - -# -# The host name, used when configuring, defaults to localhost -# -maven.appserver.host=localhost - -# -# The URL used to test the current running status of the appserver -# -maven.appserver.url=http://${maven.appserver.host}:${maven.appserver.port.http}/index.html - - - - - - diff --git a/j2ee/xdocs/appserver.xml b/j2ee/xdocs/appserver.xml index dd441dc9..821d21c2 100644 --- a/j2ee/xdocs/appserver.xml +++ b/j2ee/xdocs/appserver.xml @@ -9,111 +9,10 @@
- This page offers some general information about the appserver control - features of the J2EE plug-in. Specific details about - related targets and - their properties can be found elsewhere. + The Maven J2EE Plugin appserver control features have been migrated to a + standalone Maven appserver plugin. For more information see the appserver + plugin documentation.
- When developing a web application (or website for that matter), each developer - working on the project needs to have an environment to run and test their - application. Rather than store a complete application server install in source - control, it is much more feasible to have a centralized install of that - application server. Then, using only the minimum configuration files the - developer can control a separate isolated instance of the application server - on their machine. -
-- The Maven J2EE plug-in appserver features use this technique to install and control - application server instances for your project needs. The appserver - features are not for - deploying webapps or war files into application servers. -
-- The following table shows the various appserver versions that are - supported by the appserver control features of the Maven J2EE plug-in - and what propety values are required to be set in order for the - maven:appserver-* targets to work with those versions. -
-| Server | -${maven.appserver.name} | -${maven.appserver.version} | -${maven.j2ee.version} | -
|---|---|---|---|
| Tomcat 4.x | -tomcat |
- 40 |
- 12 or 13 |
-
The following application servers are expected to be supported soon:
- -- To make life even easier when using the appserver targets, the Maven J2EE - plug-in includes a proxy build file. This means a file similar to the one - below is copied to the directory specified by - ${maven.appserver.dir}. -
-| ${maven.appserver.dir}/build.xml |
|---|
Using this build file, you can run the appserver related targets quickly - from within your ${maven.appserver.dir} directory. Typing simply
-can stop, re-install, and re-start a started server instance.
-- This document describes the supplied + This document describes the supplied goals that are available when using the J2EE Plug-in with Maven.
- Please refer to the + Please refer to the Integration document for more information on how to integrate these goals into your project. @@ -46,24 +46,6 @@
EAR file.${maven.appserver.dir}
- property.${maven.j2ee.ear.appxml}
- property defines the location of this file. It defaults to
+ property defines the location of this file. It defaults to
src/application.xml
@@ -185,7 +167,7 @@
project.xml
- may be included by adding the ear.bundle.jar property to the
+ may be included by adding the ear.bundle.jar property to the
properties, e.g.
- The j2ee:appserver-install target installs the minimum
- directory and file structure necessary for an individual application
- server instance. Once the structure is created inside the
- directory specified by ${maven.appserver.dir}
- , configuration files are installed using the copy task and the filter
- mechanism built into Ant.
- The exact work done by this target is specific to the
- name and version of the application server you specify using
- ${maven.appserver.name}
- and ${maven.appserver.version}
- properties.
-
- Optionally, you can invoke the install target of the
- Ant build.xml file copied to ${maven.appserver.dir} instead. See the
- appserver proxy build file for more
- information.
-
- During the configuration process, all - maven.appserver.* properties - are used as filter tokens while files in - ${maven.conf.dir}/${maven.appserver.name}${maven.appserver.version} are - copied to ${maven.appserver.dir}. By default, certain files are - excluded from copying to ${maven.appserver.dir}. Files excluded are: -
-- This allows you to keep you webapp specific conf files in the same - directory and not have them installed with this target needlessly. -
-- Your configuration files may require additional processing ( using additional - filter tokens for example). In that case you can use the - maven-post-appserver-install - callback target to re-configure files. -
-- This target has different behavior - depending on the current status of the application server. The - behavior is defined by the following rules: -
-| Server Status | Behavior |
|---|---|
| Not Installed | -- Install and configure the application server. - | -
| Installed and stopped | -- Re-install/re-configure the application server. - | -
| Installed and started | -- Stop, re-install/re-configure, re-start the application server. - | -
Note: In all situations, the j2ee:appserver-install
- target will overwrite existing appserver configuration files already
- installed. Maven does this because it cannot know if the you have changed
- your maven.appserver.* related properties,
- so it always re-configures the configuration files. Since this
- operation has low overhead, it is considered a feature that allows dynamic
- updates to your appserver related property values.
- The j2ee:appserver-start target
- attempts to start the application server instance you have specified
- via properties.
-
Optionally, you can invoke the start target of the
- Ant build.xml file copied to ${maven.appserver.dir} instead. See the
- appserver proxy build file for more
- information.
-
- This target will cause two processes to run. One process will - represent the running of the Ant build file for the Maven target. - The other will be the forked JVM that actually starts the application - server instance. -
-- If you don't want the processes to block your current terminal, - you can execute the call to this target in the background using the - traditional '&' directive on unix-like systems. -
-For example, to run the server in the background, go to your - ${maven.appserver.dir} directory and type:
-- This target has different behavior - depending on the current status of the application server. The - behavior is defined by the following rules: -
-| Server Status | Behavior |
|---|---|
| Not Installed | -- Install/configure, then start the application server. - | -
| Installed and stopped | -- Start the application server. - | -
| Installed and started | -- Stop and then re-start the application server. This is useful for - application servers that are not set to auto-reload resources. - | -
- The j2ee:appserver-stop target
- attempts to stop the application server instance you have specified
- via the maven.appserver.* properties.
-
Optionally, you can invoke the stop target of the
- Ant build.xml file copied to ${maven.appserver.dir} instead. See the
- appserver proxy build file for more
- information.
-
- This target only has relevance if the application server instance - is actually started. All other situations do nothing. -
-
- The j2ee:appserver-clean target
- attempts to safely delete the directory specified by
- ${maven.appserver.dir}.
-
- This target has different behavior - depending on the current status of the application server. The - behavior is defined by the following rules: -
-| Server Status | Behavior |
|---|---|
| Installed and stopped | -- Deletes the directory specified by ${maven.appserver.dir}. - | -
| Installed and started | -- Stop the application server instance and then delete the directory - specified by ${maven.appserver.dir}. - | -