Clone URL (Committers only):
https://cms.apache.org/redirect?new=anonymous;action=diff;uri=http://tomee.apache.org/tomee-mp-getting-started.mdtext
Martin Funk
Index: trunk/content/tomee-mp-getting-started.mdtext
===================================================================
--- trunk/content/tomee-mp-getting-started.mdtext (revision 1560224)
+++ trunk/content/tomee-mp-getting-started.mdtext (working copy)
@@ -4,9 +4,9 @@
TomEE provides a maven-archetype for generating a maven based project. This
template-project is preconfigured with `javaee-api` (scope provided) and with
the `tomee-maven-plugin` for starting the application with TomEE.
-The current version of the archetype is '1.0.1'. So the needed command to
generate an application is:
+The current version of the archetype is '1.6.0'. So the needed command to
generate an application is:
- mvn archetype:generate -DarchetypeGroupId=org.apache.openejb.maven
-DarchetypeArtifactId=tomee-webapp-archetype -DarchetypeVersion=1.0.1
+ mvn archetype:generate -DarchetypeGroupId=org.apache.openejb.maven
-DarchetypeArtifactId=tomee-webapp-archetype -DarchetypeVersion=1.6.0
The first time you run this command maven downloads the archetype and some
parts related to it. Afterwards you see a prompt which allows you to specify
the groupId, artifactId, version and package of your application.
If you are using 'tomee' as groupId, 'tomee-demo' as artifactId, '1.0' as
version and 'myapp' as package, your console should show something like:
@@ -40,11 +40,7 @@
# Accessing a started application
-The application gets deployed to `target/apache-tomee/webapps`. If everything
worked correctly, you should see two directories ('tomee' and 'tomee-demo-1.0')
as well as a web-archive ('tomee-demo-1.0.war').
-The mentioned directories are also the context-paths you can access. In our
example the generated application contains a servlet mapped to '/index'. So you
can access it via:
+The application gets deployed to `target/apache-tomee/webapps`. If everything
worked correctly, you should see a directory ('ROOT') as well as a web-archive
('ROOT.war').
+The context-paths of the deployed application is ROOT. In our example the
generated application contains a servlet mapped to '/index'. So you can access
it via:
- http://localhost:8080/[artifactId]-[version]/index
-
-e.g.:
-
- http://localhost:8080/tomee-demo-1.0/index
+ http://localhost:8080/index