Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-2971

Variables are not replaced into installed pom file

    XMLWordPrintableJSON

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

      Attachments

        1. pom.xml
          0.4 kB
          Julian Atienza

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ldauvilaire Laurent Dauvilaire
              Votes:
              43 Vote for this issue
              Watchers:
              49 Start watching this issue

              Dates

                Created:
                Updated: