Thanks for the replies first. The goal of declaring the dependencies in the parent pom project is to force all submodules to use these dependencies. When using <dependencyManagement> in parent pom each submodule have to declare this set of dependencies itself which seems really redundant to me. By the way, when declaring the dependencies in each submodule the maven-release-plugin behavior should be the same (promting repeately for the same artifact versions). So the question is whether this behavior of the plugin should be changed or exists a usecase where submodules uses different versions of the same artifact.
Regards Marcus "Maven Users List" <[email protected]> schreibt: >I would agree that having dependencies in a POM project is curious, >and cannot think of a good use case for them. Are you really looking >for <dependencyManagement> where you can declare what versions should >be used by inherited projects? > >On Thu, Sep 16, 2010 at 10:11 AM, Antonio Petrelli ><[email protected]> wrote: >> 2010/9/16 Marcus Linke <[email protected]>: >>> i 've the following problem releasing a multi-module project with the >>> maven-release-plugin (Version 2.0). The top (parent) pom-style project >>> defines a set of snapshot dependencies that are inherited to all of its >>> submodules. When using the release plugin in interactive mode, the >plugin >>> prompts for the new versions of these snapshot dependencies. So far, so >>> good. But when diving into the submodules this is repeated for each >module >>> again. This is really annoying me because i have 20 submodules in that >>> project. Is this is a know problem or a type of misconfiguration. >> >> Sincerely having dependencies in a pom project is curious, definitely >> I'd remove them. >> I suppose that your modules have a precedence, i.e. a module depends on >another. >> If you play with transitive dependencies I think you'll get a clean >> (and real) dependency tree. >> >> Antonio >> >> --------------------------------------------------------------------- >> 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] > > Mit freundlichen Grüßen Marcus Linke -- Softwareentwicklung, IT news aktuell GmbH - Ein Unternehmen der dpa-Gruppe Mittelweg 144, 20148 Hamburg Tel: +49 (0)40-4113-2588 Fax: +49 (0)40-4113-2595 www.newsaktuell.de www.presseportal.de www.newsaktuell.de/blog www.twitter.com/newsaktuell www.youtube.com/newsaktuell www.facebook.com/pages/newsaktuell/152372075544 www.friendfeed.com/newsaktuell -- Registergericht: Hamburg, Registernummer: HRB 42 738 Umsatzsteuer-Identifikationsnummer gemäß § 27 a Umsatzsteuergesetz: DE118617411 Vertretungsberechtigte Personen: Carl-Eduard Meyer (Geschäftsführer), Frank Stadthoewer (Geschäftsführer) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
