I have to maven projects client and server. The version of the server is always the version of the client. This "version" is not the version of the maven artifact of the client. Is more a property from client that I need it in the server. It is created from a property of the pom and the build number or "trunk-snapshot" (when the client is build on the developer machine).
The client version is created @build time (Jenkins build or locally mvn clean install). I need to read the client version on the server module using Java.
What would be the best approach?
I tried to create a text file as artifact of the client, but I couldn't find an easy way to read it in the server.