Make com.here.platform sdk version in pom.xml generic

235 Views Asked by At

How can I mention the version in pom.xml generic ? . Can I make it to download the latest version of dependency automatically ?

<dependency>
    <groupId>com.here.platform</groupId>
    <artifactId>sdk-bom</artifactId>
    <version>1.5.55</version>
    <type>pom</type>
    <scope>import</scope>
  </dependency>
1

There are 1 best solutions below

2
On

I'm not quite sure what you mean here, if you want to have multiple declarations of this dependency within a single project use dependencyManagement at the projects top level pom. If you simply want to use a variable define a property like so:

<properties>
    <com.here.platform.version>1.5.55</com.here.platform.version>
</properties>

and then:

<dependency>
    <groupId>com.here.platform</groupId>
    <artifactId>sdk-bom</artifactId>
    <version>${com.here.platform.version}</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>

Please add more details so we know what you are asking.