Tuesday, October 4, 2011

Tiny: Extract all dependencies from Maven's POM recursively

A friend recently ask me: how can I extract all artifact dependencies from multiple POM files recursively into a single POM file?

Here is a simple answer using bash, libxml-xpath-perl and tidy.

What users can add?
- more XML processing instead of concatenating.
- extract properties values of non hardcoded dependencies.
- ensure uniqueness of dependencies.

No comments:

Post a Comment