title: Is there a way to use maven property in Java class during compilation
body: <p>I just want to use maven placeholder in my Java class at compile time in order to reduce duplication.</p>
  
  <p>Something like that:</p>
  
  <p><strong>pom.xml</strong></p>
  
  <pre><code>&lt;properties&gt;
    &lt;some.version&gt;1.0&lt;/some.version&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p><strong>SomeVersion.java</strong></p>
  
  <pre><code>package some.company;
  
  public class SomeVersion {
  
      public static String getVersion() {
          return "${some.version}"
      }
  
  }
  </code></pre>