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 🙂
Like this:
Like Loading...