thanks -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: vendredi 5 décembre 2003 15:10 To: Maven Users List Subject: Re: Newbie question on compile
Stephane, a <dependency> element represents a single dependency (e.g. a single tld file, a single jar, etc.), thus to specify several library dependencies you have to declare one <dependency> element per jar like below : <dependencies> <dependency> <groupId>Prima Solutions</groupId> <artifactId>foo1.jar</artifactId> <dependency> <dependency> <groupId>Prima Solutions</groupId> <artifactId>foo2.jar</artifactId> <dependency> <dependencies> Also to tell Maven that a given dependency shouldnot be looked up in the repository but instead in a particular location you have to use jar overriding feature. indeed the <jar> element is used to specify that the artifact is expected to be found in the repository under the name specified in the <jar> element (clearly thats not the case here). To enable jar overriding you have to add maven.jar.override=true in you project.properties and foreach overriden dependency jar add the following property : maven.jar.<artifactId> = ${path.to.artifact}, for instance : maven.jar.foo1 = ${basedir}/../lib/foo1.jar please refer to http://maven.apache.org/reference/user-guide.html#Overriding%20Stated%20 Dependencies for more details and also to http://maven.apache.org/reference/project-descriptor.html#dependencies for the semantic of the <jar> element hope this helps. -- gd Quoting Stéphane Philippart <[EMAIL PROTECTED]>: > <dependencies> > <dependency> > <groupId>Prima Solutions</groupId> > <artifactId>libs</artifactId> > <jar>foo1.jar</jar> > <jar>foo2.jar</jar> > ... > <jar>fooN.jar</jar> > <url>../libs/</url> > </dependency> > </dependencies> > > But i can't put a wild cards in the jar tag like <jar>*.jar</jar> to > avoid to list all the jars ! > > How can i do that. > > Thanks for your respnses and sorry for my poor english ! > > Stephane > --------------------------------------------------------------------- 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]