btw: two commands that could be useful for you:
mvn dependency:tree (to see the dependencies explicitly) and mvn help:effective-pom (to see the effective pom) with best regards, harald -----Ursprüngliche Nachricht----- Von: Entner Harald [mailto:[email protected]] Gesendet: Montag, 12. April 2010 11:47 An: Maven Users List Betreff: AW: Dependencies and Aggregation hmm, i would rather say that m4.1 has already a dependency to m4 (via parent definition, if there is a parent definition, i could be wrong though). E.g. in order to build m4.1 m4 needs to be built first. So if you define a dependency to m4.1 in m4 that build cannot work (due to the cycle). -----Ursprüngliche Nachricht----- Von: Karl Heinz Marbaise [mailto:[email protected]] Gesendet: Montag, 12. April 2010 11:09 An: [email protected] Betreff: Re: Dependencies and Aggregation Hi Harald, first of all thanks for your help... Harald Entner-3 wrote: > > m4 does not have any dependencies to its submodules (it just aggregates > them). That seemed to be not the full truth...if i try to supplemental define a dependency in my m4 module to make the dependency to m4.1 explicit... <dependencies> <dependency> <groupId>${project.groupId}</groupId> <artifactId>m4.1</artifactId> <version>${project.version}</version> </dependency> <dependency> I will get the following message: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='com.xyz.test.build:m4.1'}' and 'Vertex{label='com.xyz.test.build:m4.1'}' introduces to cycle in the graph com.xyz.test.build:m4.1 --> com.xyz.test.build:m4.1 That's indicating that the dependency has been inserted already... Harald Entner-3 wrote: > > so in order to build 3.2, it is sufficient that m4 is built first > (e.g. maven includes modules and dependencies defined in m4). In my opinion the dependencies of m4 should be built first...(m4.1...m4.5)... Harald Entner-3 wrote: > Does it built correctly if you delete your repository (at least the m* > entries? If it does, i don't see a problem, as it is still working that > way. Doesn't change anything in the order of the build.... Kind regards Karl Heinz Marbaise -- View this message in context: http://old.nabble.com/Dependencies-and-Aggregation-tp28214892p28215393.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]
