Hello,

I've answered you in the separate threads you have created.

Hope it helps,
Stephane

On 12/15/05, Dário Luís Coneglian Oliveros <[EMAIL PROTECTED]> wrote:
>
> Hi Edwin,
>
> I´ve read this guide before, however it focus on customization only.
> According to the ear plugin, the descriptor deployment (application.xml)
> is generated automatically and by doing so the plugin should add into it all
> the dependencies as java, ejb and/or web modules. That´s not happening for
> jar artifacts though. Besides it´s not viable to manually add all jars
> (transitive dependencies) in the customization section as java modules.
>
> Regards,
> Dário
>
> -----Original Message-----
> From: Edwin Punzalan [mailto:[EMAIL PROTECTED]
> Sent: quinta-feira, 15 de dezembro de 2005 01:14
> To: Maven Users List
> Subject: Re: [m2] ear plugin: jar does not get added to application xml
> (as java module)
>
>
>
> The ejb plugin has configuration elements for the application.xml.
> Please see: http://maven.apache.org/plugins/maven-ear-plugin/howto.html
>
>
> Dário Luís Coneglian Oliveros wrote:
>
> >Hi,
> >
> >I´ve been trying to create an EAR that contains a JAR, an EJB JAR
> (depends on JAR) and a WAR, however only EJB JAR and WAR gets added to the
> application.xml as ejb and web modules respectively. The JAR is not added
> at all. This used to work in Maven 1. How can I have an entry of JAR in the
> application.xml as a java module ? Do I need to add it manually ?
> >I´ve noticed that all dependency jars are added to the EAR (depending on
> the scope), but they are not present in the application.xml as java
> modules. Should I report a bug or this is an expected behaviour ?
> >
> >Please find below my POM:
> >
> ><project>
> >   <modelVersion>4.0.0</modelVersion>
> >   <groupId>com.mycompany.sample</groupId>
> >   <artifactId>sample-ear</artifactId>
> >   <packaging>ear</packaging>
> >   <version>1.0-SNAPSHOT</version>
> >   <dependencies>
> >      <dependency>
> >         <groupId>com.mycompany.sample</groupId>
> >         <artifactId>sample-java</artifactId>
> >         <version>1.0-SNAPSHOT</version>
> >      </dependency>
> >     <dependency>
> >       <groupId>com.mycompany.sample</groupId>
> >       <artifactId>sample-ejb</artifactId>
> >       <version>1.0-SNAPSHOT</version>
> >       <type>ejb</type>
> >     </dependency>
> >     <dependency>
> >       <groupId>com.mycompany.sample</groupId>
> >       <artifactId>sample-web</artifactId>
> >       <version>1.0-SNAPSHOT</version>
> >       <type>war</type>
> >     </dependency>
> >  </dependencies>
> >   <build>
> >      <plugins>
> >         <plugin>
> >           <groupId>org.apache.maven.plugins</groupId>
> >           <artifactId>maven-ear-plugin</artifactId>
> >         </plugin>
> >      </plugins>
> >   </build>
> ></project>
> >
> >application.xml
> >----------------------
> ><application>
> >  <display-name>sample-ear</display-name>
> >  <module>
> >    <ejb>sample-ejb-1.0-SNAPSHOT.jar</ejb>
> >  </module>
> >  <module>
> >    <web>
> >      <web-uri>sample-web-1.0-SNAPSHOT.war</web-uri>
> >      <context-root>/sample-web</context-root>
> >    </web>
> >  </module>
> ></application>
> >
> >Any clues ? I am not sure if that´s the right way to create an EAR.
> >I would appreciate any help.
> >
> >Thanks in advance,
> >Dário
> >
> >
> >
> >
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
.::You're welcome ::.

Reply via email to