Dear, exaplme: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifest>
<addClasspath>true</addClasspath> </manifest> <manifestEntries> <mode>clark rao</mode> <url>areden.blog.com</url> </manifestEntries> </archive> </configuration> </plugin> thanks. Tel: (020)36315358-328 Fax: (020)36315170 Edwin Punzalan <[EMAIL PROTECTED] To: Maven Users List <users@maven.apache.org> com> cc: Subject: Re: [m2] ear plugin: jar does not get added to application xml (as java 15/12/2005 11:13 module) Please respond to "Maven Users List" 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] ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ Hactl..........Moving forward with you. Best Air Cargo Terminal - Asia 2005 Air Cargo Terminal of the Year 2002, 2003 & 2004 Web: http://www.hactl.com DISCLAIMER :- The information contained in this message, including any attachment, is confidential and may also be privileged. The information is intended only for the person or entity to which it is addressed. Any review, re-transmission, copying, storage, distribution or other use or disclosure of this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient, please contact the sender immediately by return email and delete this message from your system. Thank you. ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]