Maven
  1. Maven
  2. MNG-2971

Variables are not replaced into installed pom file

    Details

    • Complexity:
      Intermediate
    • Number of attachments :
      1

      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

          Stéphane Nicoll made changes -
          Field Original Value New Value
          Project Maven 2.x Install Plugin [ 11136 ] Maven 2 [ 10500 ]
          Complexity Intermediate
          Affects Version/s 2.0 [ 12224 ]
          Key MINSTALL-20 MNG-2971
          Jason van Zyl made changes -
          Fix Version/s Reviewed [ 13555 ]
          Brett Porter made changes -
          Fix Version/s Reviewed Pending Version Assignment [ 13555 ]
          Fix Version/s 2.0.x [ 13141 ]
          Component/s Deployment [ 12029 ]
          Component/s Inheritance and Interpolation [ 11570 ]
          Samuel Vetsch made changes -
          Link This issue depends upon MINSTALL-50 [ MINSTALL-50 ]
          Jörg Hohwiller made changes -
          Link This issue is related to MNG-3267 [ MNG-3267 ]
          Ralph Goers made changes -
          Assignee Ralph Goers [ ralphgoers ]
          Ralph Goers made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Ralph Goers made changes -
          Resolution Duplicate [ 3 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          Ralph Goers made changes -
          Status Closed [ 6 ] Reopened [ 4 ]
          Resolution Duplicate [ 3 ]
          Ralph Goers made changes -
          Link This issue relates to MNG-624 [ MNG-624 ]
          Ralph Goers made changes -
          Link This issue is related to MNG-624 [ MNG-624 ]
          Ralph Goers made changes -
          Link This issue relates to MNG-624 [ MNG-624 ]
          Brett Porter made changes -
          Link This issue duplicates MARTIFACT-32 [ MARTIFACT-32 ]
          Benjamin Bentmann made changes -
          Link This issue is related to MNG-3057 [ MNG-3057 ]
          Jörg Hohwiller made changes -
          Link This issue relates to MNG-4161 [ MNG-4161 ]
          Jason van Zyl made changes -
          Fix Version/s 3.0-alpha-7 [ 16087 ]
          Fix Version/s 2.2.x [ 13141 ]
          Brett Porter made changes -
          Link This issue relates to MNG-4223 [ MNG-4223 ]
          Benjamin Bentmann made changes -
          Fix Version/s 3.0-alpha-7 [ 16087 ]
          Fix Version/s 3.x (to be reviewed) [ 13145 ]
          Julian Atienza made changes -
          Attachment pom.xml [ 58761 ]

            People

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

              Dates

              • Created:
                Updated: