bob-cac
bob-cac

Reputation: 1302

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

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

Upvotes: 19

Views: 15590

Answers (1)

Thomas
Thomas

Reputation: 88707

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

Upvotes: 45

Related Questions