sorry, it is not a bug but something that is not intuitive interpolation happens in maven-model-builder[1], at the end of phase 1, with StringSearchModelInterpolator
interpolation uses model, where parent is not a project, but parent [2]: it only has fields related to the XML <parent> model Then what seemed reasonable is not :) Regards, Hervé [1] http://maven.apache.org/ref/3-LATEST/maven-model-builder/ [2] http://maven.apache.org/ref/3-LATEST/maven-model/apidocs/org/apache/maven/model/Parent.html Le jeudi 12 mars 2015 14:19:05 Pop Qvarnström a écrit : > Hi, > > In a multi module project, I want to reuse the project name from the parent > pom as part of the project name for each module. It seemed reasonable to > use ${project.parent.name}, but it seems that this property is never > substituted, i.e. anything that refers to the project name gets the literal > string '${project.parent.name} - Some Module'. > > ${project.parent.name} resolves just fine in other places and with mvn > help:evaluate. > > The only info I have managed to find says that property substitution is not > allowed in /project/(groupId|artifactId|version). To me, that says property > substitution should be allowed (and happening) for /project/name. > > Am I missing or misunderstanding something, or have I hit a bug? > > Maven version: 3.2.5 > > Kind regards, > Pop Qvarnström --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org