I\'ve a resource file, that is filtered by maven:
version=${project.version}
buildDate=${timestampFormatted}
buildBy=${user.name}
fileEncoding=${file.encoding
First extract desired dependencies' versions into a property (which is always a good idea):
3.1.0.RC2
And use it later in pom.xml
:
org.springframework
spring-context
${org.springframework.version}
Once this is done you can reference the property in filtered resource:
XX_LIB_VERSION=${org.springframework.version}