Skip to main content

I know you’ve been thinking about TomEE for some time. It’s on your list of “things to check out”, but maybe you haven’t had the time to set aside a half day to dive into the details of running TomEE? Maybe you think it’s going to take too long to get started? It won’t, give me two minutes. Here’s a video that demonstrates the process of getting started with TomEE in just that time. If you want to get started with TomEE and you have two minutes to spare, watch this:


All you need to do to start using TomEE right now is:

  1. Install Apache Maven 3.1.1
  2. Run “mvn archetype:generate” passing in the arguments shown below
  3. Run “mvn package tomee:run”
  4. Fire up a web browser and go to http://localhost:8080/
  5. Enjoy.

To create a sample application with the pom.xml configuration for the Maven TomEE plugin just run the following command.  It will automatically use the latest version of the TomEE archetype, and you can use this as a start point for your evaluation.

mvn archetype:generate -DarchetypeGroupId=org.apache.openejb.maven -DarchetypeArtifactId=tomee-webapp-archetype -DarchetypeVersion=1.7.0

Note: Always use the latest release version for production

2 Comments

  • Karl Kildén says:

    Nice! Is it tomee-maven-plugin that sets the war as root? I would have expected the use of a specific context root.

    Why exactly did you include the war plugin? Was it just to set missing xml == np?

    • Jean-Louis MONTEIRO says:

      The TomEE Maven plugin is really flexible actually. So you can easily set another context, and do a lot of stuff. Maybe a place to another blog post 😉

Leave a Reply