18

Is there a way to build with maven an EJB project that doesn't contain deployment descriptor?

Grzegorz Żur
  • 47,257
  • 14
  • 109
  • 105
bob-cac
  • 1,272
  • 2
  • 17
  • 35
  • 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 Answers1

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