And you override where necessary? Quintin Beukes
On Sat, Oct 10, 2009 at 8:36 PM, Anders Hammar <[email protected]> wrote: > Yes. You use the dependencyManagement to specify stuff like version and > scope. Each project where you have the dependency you still need to specify > it. However, you just state groupId and artifactId. > > /Anders > > On Sat, Oct 10, 2009 at 20:02, Quintin Beukes <[email protected]> wrote: > >> Thanks, that looks good. >> >> Re. the <dependencyManagement> element. When I include a set of >> dependencies in my parent POM, they won't be included in the child >> POMs unless I excplicitely list them there? Meaning it's effect is >> only when the dependency is listed in a child without a version? >> >> Quintin Beukes >> >> >> >> On Sat, Oct 10, 2009 at 7:44 PM, Jason van Zyl <[email protected]> wrote: >> > You really need to read the book. >> > >> > >> http://www.sonatype.com/books/maven-book/reference/optimizing-sect-dependencies.html >> > >> > On 2009-10-10, at 9:29 AM, Quintin Beukes wrote: >> > >> >> Hey, >> >> >> >> We have certain dependencies like OpenEJB, Geronimo and Hibernate >> >> being used throughout our project. When we upgrade the version >> >> (especially with minor revisions) it's merely a process of changing >> >> all the <version> elements to the new version. Though, being many >> >> projects this is a tedious process, and you sometimes miss one/two. >> >> >> >> Isn't there a way to define some properties in the parent POM and have >> >> them propagate to the children, to be referenced from there? Or to >> >> maybe declare some dependency groups in the parent POM, and then >> >> reference them by group in the child projects? >> >> >> >> Quintin Beukes >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [email protected] >> >> For additional commands, e-mail: [email protected] >> >> >> > >> > Thanks, >> > >> > Jason >> > >> > ---------------------------------------------------------- >> > Jason van Zyl >> > Founder, Apache Maven >> > http://twitter.com/jvanzyl >> > ---------------------------------------------------------- >> > >> > >> > --------------------------------------------------------------------- >> > 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] >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
