Is there a way to automatically get selenium-java version to update to the latest, in the POM file without having to manually change it?

I tried creating a `selenium.version` variable that can fetch a new update of selenium but my POM refuses to index the variable and it displays in red

```
<dependency>
  <groupId>org.seleniumhq.selenium</groupId>
  <artifactId>selenium-java</artifactId>
  <version>${selenium.version}</version>
</dependency>

```

Any workaround?