Thank you, this is exactly what I needed. One more question: how could I setup the ${maven.repo.local}? As far as I understood, this is a local repository with the jars of our interest. Is it enough to declare a maven.repo.local in the .properties file pointing to a local directory on my PC containing what I need?
Marco ----- Original Message ----- From: "Andrew Chapman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 02, 2004 9:04 AM Subject: Re: Including jars in our projects (Web and not) > > 1. If you look at the war plugin docs you'll see the war.bundle dependency > property e.g: > > <dependency> > <groupId>jdom</groupId> > <artifactId>jdom</artifactId> > <version>b9</version> > <properties> > <war.bundle>true</war.bundle> > </properties> > </dependency> > > 2. There may be a better way to do this but I defined a jar:jar postGoal in > maven.xml to merge other content into the jar... > > <postGoal name="jar:jar"> > <ant:jar compress="false" update="true" > destfile="${maven.build.dir}/${maven.final.name}.jar"> > <zipgroupfileset dir="${maven.repo.local}/mygroup/jars"> > <include name="common-1.jar"/> > <include name="gis-1.jar"/> > </zipgroupfileset> > </ant:jar> > </postGoal> > > Andy > > > > [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > 02/03/04 08:55 cc: > Please respond to Subject: Including jars in our projects (Web and not) > users > > > > > > > Hi, I'm using the war plugin for the first time. Let's say that my web > application depends on a jar and that this jar should be available only to > my web application (and it's application specific). Is there a way to > include it automatically under WEB-INF/lib? > > Also related to this issue, there is another issue: in a general > application, if I need to include a jar in the project artifact jar, is > there an automatic way to do it, without using the <ant:copy> target? > > Marco > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > PLEASE NOTE: THE ABOVE MESSAGE WAS RECEIVED FROM THE INTERNET. > > On entering the GSI, this email was scanned for viruses by the Government > Secure Intranet (GSI) virus scanning service supplied exclusively by > Energis Communications in partnership with MessageLabs. > > GSI users see > http://www.gsi.gov.uk/main/notices/information/gsi-003-2002.pdf for further > details. In case of problems, please call your organisational IT helpdesk. > > > > > > > > For the latest data on the economy and society > consult National Statistics at http://www.statistics.gov.uk > > ********************************************************************** > Please Note: Incoming and outgoing email messages > are routinely monitored for compliance with our policy > on the use of electronic communications > ********************************************************************** > Legal Disclaimer : Any views expressed by > the sender of this message are not necessarily > those of the Office for National Statistics > ********************************************************************** > > The original of this email was scanned for viruses by the Government Secure Intranet (GSi) virus scanning service supplied exclusively by Energis in partnership with MessageLabs. > > On leaving the GSi this email was certified virus-free > > --------------------------------------------------------------------- > 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]