Question

how can maven using nested properties definition ?

<groupId>org.sonatype.mavenbook.simple</groupId>
  <artifactId>simple</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>pom</packaging>
  <name>simple</name>
  <url>http://maven.apache.org</url>
  <properties>
  **<TEST-1.0-SNAPSHOT>hello world</TEST-1.0-SNAPSHOT>
  <test>${TEST-${project.version}}</test>**
  </properties>

I defined a property TEST-1.0-SNAPSHOT which use the ${version} be part of the property name then I want to use the ${TEST-${project.version}} to refer to the property content。

who can help me ? thanks anyway !

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top