generating classpath file with maven

I'd like to generate a classpath file from pom.xml dependencies. I need it so during tests I have the classpath of all dependencies (that are later packaged into a bundle)

maven-dependency-plugin does not suit me for two reasons:

  • it generates paths to files in the repository, so to use other modules they first need to run install phase for them (I'd like to have paths like /some/root/othermodule/target/classes)
  • it doesn't include the artifact's own path (target/classes), which means I need to add it later in code, which is awkward

So I'm looking for another plugin (or how to properly run maven-dependency-plugin)

Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at