Hi!

On 15 Mar 2009, Thai Dang Vu wrote:

[...]
> I have some questions here:
> 
> 1. How to tell the maven-ear-plugin to use my application.xml? And where in 
> the ear directory should I place my own application.xml?

The m-ear-p is able to autogenerate an application.xml for you. Maybe you
should try to use this feature. See [1] for details.

If auto-generation doesn't fit your needs, I'd put my application.xml in
src/main/resources/META-INF/application.xml of my ear module. IMHO, this
should work.

> 2. Because of the dependency on the ejb, I have to run mvn install in the ejb 
> directory before I can run mvn compiler:compile in the war directory.

Your dependencies are incorrect! You missed they <type>ejb</type> in your
war dependency declaration.

> 3. In my application.xml, beside the ejb and war modules, I need to add one 
> more module like this:
> 
> <module><ejb>jboss-seam-2.1.1.GA.jar</ejb></module>
> 
> The jboss seam jar file can be found with a <dependency>. What should I do to 
> tell maven to include that file into the root of the ear file it creates when 
> I run mvn ear:ear in the ear directory?

Not 100% sure what you want to achieve. Did you try specifying the seam
artifact as a normal dependency (with scope runtime) of your EAR?

hth,
- martin

[1] http://maven.apache.org/plugins/maven-ear-plugin/

Attachment: signature.asc
Description: PGP signature

Reply via email to