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 🙂

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s