Custom jboss-app.xml using Maven -


i declared custom jboss-app.xml in pom.xml, plugin generated internal , empty jboss-app.xml file ear/meta-inf.

i implemented pom.xml based on article, 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, can't handle custom jboss-app.xml. new empty descriptor (without defined ejbs) generated every time.

somebody may me?

thanks,

and past

you should able include jboss-app.xml in source tree , maven pull in.

your project directory structure maven-ear-plugin should like:

|-- pom.xml `-- src     `-- main         `-- application             `-- meta-inf                 |-- application.xml                 `-- jboss-app.xml 

then run mvn package create ear. assuming packaging pom.xml 'ear' pull jboss-app.xml resulting ear.

also, believe <datasources>...</datasources> configuration needs within <jboss>...</jboss> tags.

see also: http://maven.40175.n5.nabble.com/deployment-of-the-jboss-app-xml-file-td45009.html


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -