My app needs to know its version at runtime (so it can log it). I could just hardcode the version into one of the classes, but I'm concerned that the hardcoded version could get out of sync with the <version> tag in the pom file.

Is there a way for Maven to write the <version> in the pom into a class at build time? Or conversely, get the version out of a class at build time? (The latter would be better).

What's the most maven-ish way to handle this problem?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to