Unless the dependency specifies a version range that your lib is outside of. But as Kalle said - start with supplying your own dependency with desired version which should satisfy your libs' requirements. If it does not then it's time to exclude. But be aware that you will be overriding author's decision on what library version his software works.
http://www.sonatype.com/books/mvnex-book/reference/optimizing-sect-dependency-plugin.html And this one is a must if you lack basic knowledge of what transitive dependencies are all about: http://www.sonatype.com/books/mvnex-book/reference/simple-project-sect-dep-management.html Regards, Michał On Mon, Apr 5, 2010 at 20:46, Kalle Korhonen <kalle.o.korho...@gmail.com> wrote: > No need to exclude anything. The nearest resolution wins; if you > specify a different version for the same library in your pom, that's > version you are going to get. > > Kalle > > > On Mon, Apr 5, 2010 at 11:40 AM, Thiago H. de Paula Figueiredo > <thiag...@gmail.com> wrote: >> On Mon, 05 Apr 2010 15:18:18 -0300, Everton Agner >> <everton_ag...@yahoo.com.br> wrote: >> >>> Well, has anyone upgraded the [tapestry-hibernate-5.1.0.5.jar] lib to a >>> newer Hibernate version via Maven? >> >> Use the exclusion tag and provide you own Hibernate dependency. It's >> documented here: >> http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html. >> >> -- >> Thiago H. de Paula Figueiredo >> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and >> instructor >> Owner, software architect and developer, Ars Machina Tecnologia da >> Informação Ltda. >> http://www.arsmachina.com.br >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Michał Minicki mar...@post.pl --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org