Maven
  1. Maven
  2. MNG-4679

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

    Details

    • Complexity:
      Intermediate
    • Number of attachments :
      0

      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

          Hide
          Benjamin Bentmann added a comment -

          Fixed in r945715.

          Show
          Benjamin Bentmann added a comment - Fixed in r945715 .

            People

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

              Dates

              • Created:
                Updated:
                Resolved: