evgeny-goldin / maven-plugins

Maven plugins
http://evgeny-goldin.com/wiki/Maven_Plugins
Other
52 stars 62 forks source link

Unable to build parent POM due to a cyclic reference between two modules #1

Closed manandbytes closed 13 years ago

manandbytes commented 13 years ago

Running 'mvn clean verify' from evgeny-goldin/maven-plugins@1be1c493464efd0a2e22 fails:

 [INFO] ------------------------------------------------------------------------
 [ERROR] BUILD FAILURE
 [INFO] ------------------------------------------------------------------------
 [INFO] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='com.goldin.plugins:maven-about-plugin'}' and 'Vertex{label='com.goldin.plugins:duplicates-finder-plugin'}' introduces to cycle in the graph com.goldin.plugins:duplicates-finder-plugin --> com.goldin.plugins:maven-about-plugin --> com.goldin.plugins:duplicates-finder-plugin
evgeny-goldin commented 13 years ago

Thanks! Not any more, it was a temporal problem. You can always check project's TeamCity status.

manandbytes commented 13 years ago

Evgeny, what do you mean by 'not any more'? There is no new commits on top of the @1be1c493464efd0a2e22 that still fails. TeamCity requires me to log in either with existing account or as guest. For guest user it shows:

There are no projects to show, because you don't have permissions to view projects. Please contact your system administator.
evgeny-goldin commented 13 years ago

Oh, I see. TeamCity has configuration issue, probably caused by a an upgrade to EAP version. As for the build it works for me and TeamCity with Maven 3 but I'll check it again on both versions (2 and 3). Meanwhile, you can comment out invocations of "duplicates-finder-plugin" and "maven-about-plugin" in "mojo-parent/pom.xml".

evgeny-goldin commented 13 years ago

That's right, it fails with maven 2.2.1 but works Ok with 3.0.3. But it has to run with Maven 3 due to usage of "duplicates-finder-plugin" which only runs with Maven 3, it uses Aether library. So I'm about to add a Maven 3 enforcer to the build.

manandbytes commented 13 years ago

Yup, it fails with 2.1.0 and 2.2.1 but works in 3.0.2 and 3.0.4-SNAPSHOT. Thanks for clarification but I'm not sure if it will work, I don't have time right now to check but it seems to me M2.x will find the same conflict before running either Enforcer or checking for .

evgeny-goldin commented 13 years ago

You're right, Maven 2 fails before enforcer fails the build :) Funny, I'll just put a note this this project should be built with Maven 3 only or I can remove cyclic dependencies to let enforcer do its job. But I'd like to keep them since I invoke plugins while building them, kind of using IDEA when developing IDEA.

evgeny-goldin commented 13 years ago

Updated the README note and fixed TeamCity guest user role. Many thanks for noting those issues, Mykola! Спасибо :)