Maven
  1. Maven
  2. MNG-2470

uniqueVersion not inherited in child projects

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Linux
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      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.

        Issue Links

          Activity

          Hide
          korebantic added a comment -

          same issue as discussed here: http://jira.codehaus.org/browse/MNG-1094

          Show
          korebantic added a comment - same issue as discussed here: http://jira.codehaus.org/browse/MNG-1094
          Hide
          Brett Porter added a comment -

          while it is discussed in MNG-1094, that looks to be for the main repository element and not the snapshot repository element

          Show
          Brett Porter added a comment - while it is discussed in MNG-1094 , that looks to be for the main repository element and not the snapshot repository element
          Hide
          Max Bowsher added a comment -

          Works fine for me with Maven 2.0.4, 2.0.5, 2.0.6.

          korebantic: Can you re-test and check you can reproduce this?

          Show
          Max Bowsher added a comment - Works fine for me with Maven 2.0.4, 2.0.5, 2.0.6. korebantic: Can you re-test and check you can reproduce this?
          Hide
          Matthew McCullough added a comment - - edited

          Similar to my issue MDEPLOY-57 where uniqueVersion is not honored in a profile at all for any directory tree multiproject usages, though the effective-pom in my case shows the right >false< value

          Show
          Matthew McCullough added a comment - - edited Similar to my issue MDEPLOY-57 where uniqueVersion is not honored in a profile at all for any directory tree multiproject usages, though the effective-pom in my case shows the right >false< value

            People

            • Assignee:
              Brett Porter
              Reporter:
              korebantic
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: