Tuesday, May 18, 2010

maven dependency conflicts

One thing about maven can be really frustrating. And it does not have anything to do with maven itself but with the repository maintaince.
Broken poms, missing jars, unmaintained 3rd party repos etc - this can result in quite a dependency hell as in the end you will need to put everything together like you did without maven. (and manual mvn install of many deps can take quite some time ..)
One thing should actually be clear - for more sophisticated projects with many dependencies - a local custom repository with which a clear dependency structure is maintained is more than necessary. This also provides a clear separation between external and internal repositories and also allows you to easily publish custom project releases and snapshots. Artifactory for example provides exactly that functionality and is easily installed and maintained.

In the end even with dependency conflicts etc - maven still provides the tools to organize your projects in a standardized way with awesome extensibility. But it should be used with care as it is not always as easy as setting the dependencies and .. go ;)

No comments:

Post a Comment