Class PomDependencies

java.lang.Object
eu.bandm.tools.util3.PomDependencies

public class PomDependencies extends Object
Two starting points: 1 find all pom.xml and analyse all relevant dependency entries.
2 -- find all .jar files currently installed locally. The output is to the current directory.

This code cannot process all kinds of pom files, but makes strict assumptions on the front-end represenation of the XML contents:

  • The first occurence "<version>...</version>" is the artifacts version.
  • The "artifact ids" are unique, without the "groupId".
  • The artifact ids correspond to the names of the jar files.
  • No linefeeds or other whitespace in artifact ids and version values.
  • Any "scope" entry in a "dependency" makes this dependency irrelevant.