Is there a way to build with maven an EJB project that doesn't contain deployment descriptor?
Asked
Active
Viewed 1.5k times
18
-
By default Maven tries to build an EJB jar compatible with EJB version 2. This version of EJB standard requires descriptor. – Grzegorz Żur Feb 28 '14 at 19:12
1 Answers
44
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<configuration>
<ejbVersion>3.0</ejbVersion>
</configuration>
</plugin>
</plugins>
</build>
You need to tell Maven to use EJB 3.0.

Danilo Piazzalunga
- 7,590
- 5
- 49
- 75

Thomas
- 87,414
- 12
- 119
- 157