Maven
  1. Maven
  2. MNG-4679

[regression] command line option "-update-snapshots" does not work for dependency:copy-dependencies

    Details

      Description

      The following snippet

      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.0</version>
        <executions>
          <execution>
            <id>copy</id>
            <phase>initialize</phase>
            <goals>
              <goal>copy</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>org.apache.maven</groupId>
                  <artifactId>maven-model</artifactId>
                  <version>3.0-SNAPSHOT</version>
                  <type>jar</type>
                  <overWrite>true</overWrite>
                </artifactItem>
              </artifactItems>
              <overWriteSnapshots>true</overWriteSnapshots>
            </configuration>
          </execution>
        </executions>
      </plugin>
      

      and the command "mvn initialize -U" does not cause a snapshot update check for the configured artifact in 3.x.

        Issue Links

          Activity

          Benjamin Bentmann created issue -
          Benjamin Bentmann made changes -
          Field Original Value New Value
          Link This issue is related to MNG-4412 [ MNG-4412 ]
          Benjamin Bentmann made changes -
          Link This issue is related to MNG-4361 [ MNG-4361 ]
          Benjamin Bentmann made changes -
          Resolution Fixed [ 1 ]
          Assignee Benjamin Bentmann [ bentmann ]
          Status Open [ 1 ] Closed [ 6 ]
          Fix Version/s 3.0-beta-2 [ 16090 ]
          Benjamin Bentmann made changes -
          Link This issue is duplicated by MDEP-276 [ MDEP-276 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 08:49:45 UTC 2015 [ 1428223785911 ]
          Mark Thomas made changes -
          Link This issue is duplicated by MDEP-276 [ MDEP-276 ]
          Mark Thomas made changes -
          Workflow jira [ 12714963 ] Default workflow, editable Closed status [ 12754590 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 21:45:26 UTC 2015 [ 1428270326204 ]
          Mark Thomas made changes -
          Link This issue is duplicated by MDEP-276 [ MDEP-276 ]
          Mark Thomas made changes -
          Workflow jira [ 12952483 ] Default workflow, editable Closed status [ 12989828 ]

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              Benjamin Bentmann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development