Maven
  1. Maven
  2. MNG-2971

Variables are not replaced into installed pom file

    Details

      Description

      Variables are not replaced into installed pom file.
      Here is a sample pom file

      <project xmlns="http://maven.apache.org/POM/4.0.0"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      
      	<modelVersion>4.0.0</modelVersion>
      	<groupId>com.xxx.root</groupId>
      	<artifactId>root</artifactId>
      	<packaging>pom</packaging>
      	<version>${prop.version}</version>
      	<name>My Project</name>
              ...
      	<properties>
      		<prop.version>3.0.20</prop.version>
      	</properties>
      
      </project>
      

      The installed pom is into ${localRepository}/com/xxx/root/root/3.0.20/root-3.0.20.pom
      is the same as the project pom file but the version referenced into the installed pom file is ${prop.version} instead of 3.0.20
      which creates problem to artifacts depending of this one.

      Thanks in advance

      1. pom.xml
        0.4 kB
        Julian Atienza

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Ralph Goers
              Reporter:
              Laurent Dauvilaire
            • Votes:
              36 Vote for this issue
              Watchers:
              40 Start watching this issue

              Dates

              • Created:
                Updated:

                Development