title: Maven properties tag and version for dependency
body: <p>When I am using version for the dependencies from the keys which are defined in properties section of the pom file then the dependencies are not getting downloaded, but when I am hardcoding the version for dependency the dependency is getting downloaded.</p>
  
  <pre><code>&lt;properties&gt;
      &lt;cucumber-version&gt;1.2.4&lt;/cucumber-version&gt;
      &lt;junit-version&gt;1.2.4&lt;/junit-version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;info.cukes&lt;/groupId&gt;
          &lt;artifactId&gt;cucumber-java&lt;/artifactId&gt;
          &lt;version&gt;{cucumber-version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;info.cukes&lt;/groupId&gt;
          &lt;artifactId&gt;cucumber-junit&lt;/artifactId&gt;
          &lt;version&gt;{cucumber-version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
   &lt;dependencies&gt;
  </code></pre>
  
  <p>For the above block when I run <strong>mvn clean test</strong> then in the console the error is shown as :-</p>
  
  <pre><code>[ERROR] Failed to execute goal on project MavenCucumber: Could not resolve dependencies for project com.manish.cucumber:MavenCucumber:jar:1.0-SNAPSHOT: Failed to collect dependencies at info.cukes:cucumber-java:jar:{junit-version}: Failed to read artifact descriptor for info.cukes:cucumber-java:jar:{junit-version}: Could not transfer artifact info.cukes:cucumber-java:pom:{junit-version} from/to central (http://repo.maven.apache.org/maven2): Illegal character in path at index 61: http://repo.maven.apache.org/maven2/info/cukes/cucumber-java/{cucumber-version}/cucumber-java-{cucumber-version}.pom -&gt; [Help 1]
  </code></pre>
  
  <p>Complete pom.xml</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  </code></pre>
  
  <p>xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 <a href="http://maven.apache.org/maven-v4_0_0.xsd" rel="nofollow">http://maven.apache.org/maven-v4_0_0.xsd</a>">
      4.0.0
      com.manish.cucumber
      MavenCucumber
      jar
      1.0-SNAPSHOT
      MavenCucmber
      <a href="http://maven.apache.org" rel="nofollow">http://maven.apache.org</a></p>
  
  <pre><code>&lt;properties&gt;
      &lt;cucumber-version&gt;1.2.4&lt;/cucumber-version&gt;
      &lt;junit-version&gt;1.2.4&lt;/junit-version&gt;
  &lt;/properties&gt;
  
  &lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;info.cukes&lt;/groupId&gt;
          &lt;artifactId&gt;cucumber-java&lt;/artifactId&gt;
          &lt;version&gt;{junit-version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;info.cukes&lt;/groupId&gt;
          &lt;artifactId&gt;cucumber-junit&lt;/artifactId&gt;
          &lt;version&gt;{junit-version}&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  
  &lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.12.2&lt;/version&gt;
          &lt;configuration&gt;
              &lt;argLine&gt;-Duser.language=en&lt;/argLine&gt;
              &lt;argLine&gt;-Xmx1024m&lt;/argLine&gt;
              &lt;argLine&gt;-XX:MaxPermSize=256m&lt;/argLine&gt;
              &lt;argLine&gt;-Dfile.encoding=UTF-8&lt;/argLine&gt;
              &lt;useFile&gt;false&lt;/useFile&gt;
          &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p></p>
  
  <p>The Maven version which I am using is Maven-3</p>
  
  <p>why the maven is trying fetch dependency from url like below :-</p>
  
  <p>repo.maven.apache.org/maven2/info/cukes/cucumber-java/{cucumber-version}/cucumber-java-{cucumber-version}.pom</p>
  
  <p>why not it is replacing the {cucumber-version} with 1.2.4 which is defined in properties tag</p>