Is there a way to use maven property in java class during compilation
===

I just want to use maven placeholder in my java class at compile time in order to reduce duplication.

Something like that:

**pom.xml**

    <properties>
      <some.version>1.0</some.version>
    </properties>

**SomeVersion.java**

    package some.company;

    public class SomeVersion {

        public static String getVersion() {
            return "${some.version}"
        }
        
    }


Thanks in advance.