You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by GOKULAM Jayaram <JG...@covansys.com> on 2005/03/26 13:01:08 UTC

ear file to include jar and war

Hi all,

I used the ear plug-in to generate the ear file, but it does not include
the ear and war file by default. IT just holds the META-INF and
application.xml file.

I want the ear file to include the generated jar and war files, how
should I do this?

 

Thanks for your help in advance,

 

Jayaram

Confidentiality Statement:

This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email.


Re: ear file to include jar and war

Posted by dan tran <da...@gmail.com>.
I think your ear's project.xml is  missing the ear.bundle properties
in dependencies listing of
your ear project.

some thing like this

  <dependencies>

    <dependency>
      <groupId>${pom.groupId}</groupId>
      <artifactId>bookstore-common</artifactId>
      <version>${pom.currentVersion}</version>
      <properties>
	 <ear.bundle>true</ear.bundle>
      </properties>

    </dependency>

    <dependency>
      <groupId>${pom.groupId}</groupId>
      <artifactId>bookstore-ejb</artifactId>
      <version>${pom.currentVersion}</version>
      <type>ejb</type>
      <properties>
	 <ear.bundle>true</ear.bundle>
	 <ear.module>true</ear.module>
      </properties>
    </dependency>


    <dependency>
      <groupId>${pom.groupId}</groupId>
      <artifactId>bookstore-webapp</artifactId>
      <version>${pom.currentVersion}</version>
      <type>war</type>
      <properties>
        <ear.bundle>true</ear.bundle>
        <ear.appxml.war.context-root>bookstore</ear.appxml.war.context-root>
      </properties>
    </dependency>


  </dependencies>

Check out ear plugin for more detail.

-D


On Sat, 26 Mar 2005 17:31:08 +0530, GOKULAM Jayaram
<JG...@covansys.com> wrote:
> Hi all,
> 
> I used the ear plug-in to generate the ear file, but it does not include
> the ear and war file by default. IT just holds the META-INF and
> application.xml file.
> 
> I want the ear file to include the generated jar and war files, how
> should I do this?
> 
> Thanks for your help in advance,
> 
> Jayaram
> 
> Confidentiality Statement:
> 
> This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, please note that you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by return email.
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org