How can we get Maven properties in source file at compile time
pom.xml
<artifactId>myApp</artifactId>
<version>1.0.0</version>
Main.java
public class Main {
private static final String artifactId = "project.artifactId";
private static final String version = "project.version";
}
is it possible to hard cod in class?