I declared a custom jboss-app.xml
in my pom.xml
, but the plugin is generating an internal and empty jboss-app.xml
file into ear/META-INF
.
I created my pom.xml
based on this article with the following definition:
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<data-sources>
<data-source>${artifactId}/src/main/resources/mytest-ds.xml</data-source>
</data-sources>
<jboss>${artifactId}/src/main/resources/jboss-app.xml</jboss>
<defaultLibBundleDir>lib</defaultLibBundleDir>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
<modules>
<ejbModule>
<groupId>com.testproject</groupId>
<artifactId>ejb-project</artifactId>
</ejbModule>
</modules>
</configuration>
</plugin>
But, I can't handle my custom jboss-app.xml
. A new is empty descriptor (without defined ejbs) is generated every time.
From the docs, it looks like jboss tag triggers the generation of
jboss-app.xml
. How about omitting this tag and generating theear
?