Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error assembling EJB: META-INF/ejb-jar.xml is required for ejbVersion 2.x

Tags:

java

maven

ejb

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

like image 984
bob-cac Avatar asked Nov 27 '13 10:11

bob-cac


1 Answers

<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.

like image 191
Thomas Avatar answered Oct 07 '22 14:10

Thomas