Hi, Do you have set the dependency in project B to project A (type war). I think but not really sure ( ;-) ) this will be included in the next war plugin version [1] (try the snapshot). But for the version 2.0-beta-2, it doesn't work [2]. But for the moment if it's a share component just add a new module (type jar) with dependency to this in project A and B ?
- Olivier [1] http://svn.apache.org/viewcvs.cgi/maven/plugins/trunk/maven-war-plugin/s rc/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java?rev=385799 &view=markup method buildWebapp() [2] http://svn.apache.org/viewcvs.cgi/maven/components/tags/maven-war-plugin -2.0-beta-2/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.ja va?rev=321457&view=markup method buildWebapp() -----Message d'origine----- De : Christian Mouttet [mailto:[EMAIL PROTECTED] Envoyé : jeudi 16 mars 2006 09:44 À : Maven Users List Objet : Re: using classes from another web project any ideas? Am Mittwoch, 15. März 2006 16:23 schrieb Christian Mouttet: > Hi all, > > I have two web applications that share code. An implementation of > javax.servlet.Filter in Project A should be used by Project B. > > With Maven-1 I built a project-a-x.y.jar and defined a dependency to > it. The generated project-a.war could be deployed on the application > server. > > In the pom.xml (Maven-2) I have configured <packaging>war</packaging> > and only the .war file is generated (installed or deployed to central > repository). > > How is it possible to build .jar AND .war files of this type of > projects? > > > Regards, > > -chris ********************************************************************** Diese E-Mail wurde auf Viren ueberprueft. [EMAIL PROTECTED] ********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited. -------------------------------------------------------------------------------------------------------------- Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites. ------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
