You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by David Portabella <da...@gmail.com> on 2013/04/30 17:02:03 UTC

the property ${project.artifact.selectedVersion.majorVersion} does not get resolved after projectBuilder.build()?

When calling to this function,
List<ProjectBuildingResult> projectBuildingResults =
projectBuilder.build(Arrays.asList(new File(pomFile)), true,
projectBuildingRequest);

all the properties used in the pom file, such as ${spring.version} in here,
get resolved successfully.
      <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
        <version>${spring.version}</version>
      </dependency>

however, the property ${project.artifact.selectedVersion.majorVersion} does
not get resolved after the call to projectBuilder.build().

why is that?
how to get this resolved?


Regards,
David