Question

I am using maven 3 for building my huge multi module project. I have nearly 80 projects and many dependencies are used by many project thus makes me to add the same dependency entry in all my projects. In case if i am updating/moving any of my dependency to its latter or earlier version I need to update in all other projects which uses that dependency which is quite impossible.More over it is not possible to create a parent pom for set of projects which has same dependency.

Is there any plugin just to map as below in a pom of parent project


<dependency>somegroup:somefact:anyV<dependency>
<projects>
 <project>somegroup:somefact:anyV</project>
</projects> 

or is it possible to implement a plugin on my own </br>
or whether maven provide any other way to do this in its style.
Was it helpful?

Solution

Maven has a concept of importing dependencies. The documentation says that this feature is for cases where extending a base POM is not possible. I have not used this feature so I'm not sure how it works, might be what you are looking for though.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top