Monthly Archives: January 2014

A little fix and TomEE Maven Plugin works with OpenEJB Standalone!


Hi, since few minutes you can use TomEE Maven Plugin with OpenEJB Standalone (let consider it as TomEE without Tomcat).

Basically you just declare in your pom:

<plugin>
  <groupId>org.apache.openejb.maven</groupId>
  <artifactId>tomee-maven-plugin</artifactId>
  <version>1.6.1</version> <!-- in SNAPSHOT ATM -->
  <configuration>
    <tomeeGroupId>org.apache.openejb</tomeeGroupId>
    <tomeeArtifactId>openejb-standalone</tomeeArtifactId>
    <tomeeVersion>4.6.0</tomeeVersion>
    <tomeeShutdownPort>4200</tomeeShutdownPort>
    <tomeeShutdownCommand>Q</tomeeShutdownCommand>
  </configuration>
</plugin>

When you know the interface we use to handle TomEE start/stop is the same for TomEE and OpenEJB standalone it looks quite obvious but we needed to clean up some TomEE specific stuff. To make it a little bit easier we added an option useOpenEJB:

<plugin>
  <groupId>org.apache.openejb.maven</groupId>
  <artifactId>tomee-maven-plugin</artifactId>
  <version>1.6.1</version>
  <configuration>
    <useOpenEJB>true</useOpenEJB>
  </configuration>
</plugin>

Then simply start OpenEJB with your application with:

mvn tomee:run

Note: option like simpleLog still works 🙂

Arquillian and TomEE: deploy remotely without hacks!


Arquillian is a great way to deploy an application in a container to test it. However the framework itself doesn’t know if the container is local or remote. TomEE adapter (the bridge between arquillian and tomee) was supporting local deployment but remote one was quite hard and needed to workaround a bit arquillian which was not that fancy.

Since yesterday you can do it easily!

Continue reading