Reputation: 12731
In my pom.xml file, I have a lot of references to the dependency version using the format {version.XXX}. For example:
<dependency>
<groupId>com.extjs</groupId>
<artifactId>gxt</artifactId>
<version>${version.gxt}</version>
</dependency>
I'm having a hard time finding information on this kind of format. My assumption is that this is used for handling scenarios where you have multiple dependencies that reference the same artifactId. This would allow us to only maintain the version information in one place. So ${version.XXX} would mean something like "find the version attribute for the XXX artificatId referenced somewhere else".
My questions:
Upvotes: 0
Views: 687
Reputation: 21184
This is just a property replacement, so somewhere in either this pom or in one of the parents you must list the version as a property, like this:
<properties>
<version.gxt>your version goes here</version.gxt>
</properties>
Upvotes: 2