title: Relative path for Maven pom versions
body: <p>Forgive my ignorance here, as I'm new to maven. I have a Remote Repository that my project pom is using to download dependencies from. A general structure of my pom.xml is like this:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;MVNProject&lt;/groupId&gt;
      &lt;artifactId&gt;MVNProject&lt;/artifactId&gt;
      &lt;version&gt;0.0.1&lt;/version&gt;
      &lt;packaging&gt;war&lt;/packaging&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.scala-lang.modules&lt;/groupId&gt;
              &lt;artifactId&gt;scala-parser-combinators_2.11&lt;/artifactId&gt;
              &lt;version&gt;1.0.1&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Now I know that if I have to get a new version of the dependency <code>scala-parser-combinators</code> I just have to specify the new version. Something like this:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.scala-lang.modules&lt;/groupId&gt;
      &lt;artifactId&gt;scala-parser-combinators_2.11&lt;/artifactId&gt;
      &lt;version&gt;1.0.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>But what I would like to do is, without making any change to <code>pom.xml</code> I'd like to replace my old jar with the upgraded jar in my remote repository(which I'm able to do).</p>
  
  <p>So what I'd like to know is whether there is a way to specify in <code>pom</code> to take whatever version is available in the remote repository for a particular artifact i.e., something like this(and this is just a guess):</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.scala-lang.modules&lt;/groupId&gt;
      &lt;artifactId&gt;scala-parser-combinators_2.11&lt;/artifactId&gt;
      &lt;version&gt;${CurrentVersion}&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Some guidance would be very much appreciated.</p>