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

uniqueVersion not inherited in child projects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.4
    • None
    • None
    • Linux

    Description

      My parent project defines the following:

      <distributionManagement>
      <snapshotRepository>
      <id>Yo</id>
      <name>Yo Repository</name>
      <url>scp://yo/home/maven/www</url>
      <uniqueVersion>false</uniqueVersion>
      </snapshotRepository>
      </distributionManagement>

      When I run the following command in the child project:

      mvn help:effective-pom

      I get the following results:

      ...
      <distributionManagement>
      <snapshotRepository>
      <id>Yo</id>
      <name>Yo Repository</name>
      <url>scp://yo/home/maven/www</url>
      </snapshotRepository>
      </distributionManagement>
      ...

      It looks like inheritence is ignoring the <uniqueVersion> element.

      This is also verified, when I run "mvn deploy" – the parent project installs a non-timestamped version in the remote repository, but the child project installs a timestamped version.

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              korebantic korebantic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: