Hi marc, Take a look at the Maven The Definitive Guide and especially the part about optional dependencies. [1]
[1] http://www.sonatype.com/book/reference/pom-relationships.html#d0e8242 Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Tue, Aug 12, 2008 at 3:31 PM, Marc Schneider <[EMAIL PROTECTED]>wrote: > Hi all, > > There is something I don't understand. > In my maven repository, I have this POM file (Hibernate Search 3.1.O Beta) > with : > > <dependency> > <groupId>org.hibernate.apache.lucene.solr</groupId> > <artifactId>apache-solr-analyzer</artifactId> > <version>1.2.0</version> > <optional>true</optional> > </dependency> > > When compiling the system complains that a class is missing. > This is because this class is in this artifact. > > If I add this dependency directly in my project's POM file, the artifact > is downloaded and so it works. > > But why do I have to add it manually ? > > Thanks, > Marc. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
