9.2. Maven Properties You can use Maven properties in a pom.xml file or in any resource that is being processed by the Maven Resource plugin’s filtering features. A property is always surrounded by ${ and }. For example, to reference the project.version property, one would write: 1.0 There are some implicit properties available in any Maven project, these implicit properties are: project.* Maven Project Object Model (POM). You can use the project.* prefix to reference values in a Maven POM.
project.groupId and project.version<build>
<finalName>${project.artifactId}</finalName>
</build>
env.JAVA_HOME
user.home
Read full article from Maven: The Complete Reference - 9.2. Maven Properties - Sonatype.com
No comments:
Post a Comment