Thanks Nayan. I used Maven2 plugin inside eclipse Helios which gives you an option 'Use Maven dependencies' and that is how I came to know that POI 2.5 is coming from JBPM. I used the mentioned exclusions syntax so that JBPM won't download the POI jar file but it does. So I wanted to confirm if I am using it in a right way or not. Please take a look at my pom.xml syntax in my last post and let me know if I am wrong.
- Pradnya -----Original Message----- From: Nayan Hajratwala [mailto:na...@chikli.com] Sent: Thursday, September 16, 2010 5:32 PM To: Maven Users List Subject: Re: Maven dependency library versioning issue you might be getting POI from somewhere else. Check your dependency tree by running "mvn dependency:tree". This will show you what transitive dependency POI is coming from. --- Nayan Hajratwala http://agileshrugged.com http://twitter.com/nhajratw 734.658.6032 On Sep 16, 2010, at 3:06 PM, Pradnya Gawade wrote: > Thanks Antonio. I have tried following but it still it download POI 2.5 > when compile my project. Is following correct for what I want to do? Is > version needs to be mentioned some where? > > <dependency> > <groupId>org.jbpm.jbpm3</groupId> > <artifactId>jbpm-jpdl</artifactId> > <version>3.3.1.GA</version> > <scope>compile</scope> > <exclusions> > <exclusion> > <groupId>org.apache.poi</groupId> <!-- > Exclude apache poi --> > <artifactId>poi</artifactId> > </exclusion> > </exclusions> > </dependency> > > > > - Pradnya > > -----Original Message----- > From: Antonio Petrelli [mailto:antonio.petre...@gmail.com] > Sent: Thursday, September 16, 2010 2:28 PM > To: Maven Users List > Subject: Re: Maven dependency library versioning issue > > 2010/9/16 Pradnya Gawade <pgaw...@akazaresearch.com>: >> How can I make >> JBPM not to download POI 2.5 or how can make my application to use POI >> 3.5.6 and not POI 2.5? > > Use dependency exclusion: > http://maven.apache.org/guides/introduction/introduction-to-optional-and > -excludes-dependencies.html > > Antonio > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org