liquidus219
liquidus219

Reputation: 129

Maven - access properties file from dependency

Expanding upon this question, if using a properties file in the dependency is the original question possible?

Upvotes: 0

Views: 817

Answers (1)

Markus W Mahlberg
Markus W Mahlberg

Reputation: 20703

Usually you would do the following:

  1. Create a pom-packaged project, using it as a parent pom
  2. in this parent pom, read the property files you want to read using the Maven properties plugin by binding it's read-project-properties goal to the validate phase.
  3. Refer to this parent pom in all the poms that shall share the properties read.

Upvotes: 3

Related Questions