Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-619

snapshotsOnly is not respected when fuzziness is artifactId or groupId

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.1
    • None
    • purge-local-repository
    • None

    Description

      The configuration parameter snapshotsOnly is not always repected. We use a profile that can be activated in the root of a multi-project with following settings:

      <profile>
      	<activation>
      		<property>
      			<name>purge</name>
      		</property>
      	</activation>
      	<id>purge-group</id>
      	<build>
      		<plugins>
      			<plugin>
      				<groupId>org.apache.maven.plugins</groupId>
      				<artifactId>maven-dependency-plugin</artifactId>
      				<executions>
      					<execution>
      						<id>purge-local-repository</id>
      						<phase>clean</phase>
      						<goals>
      							<goal>purge-local-repository</goal>
      						</goals>
      						<configuration>
      							<manualInclude>${project.groupId}</manualInclude>
      							<resolutionFuzziness>groupId</resolutionFuzziness>
      							<snapshotsOnly>${purge}</snapshotsOnly>
      						</configuration>
      					</execution>
      				</executions>
      			</plugin>
      		</plugins>
      	</build>
      </profile>
      

      We'd like to handle all artifacts with the same groupId. The purge parameter should be used to purge only the snapshots or anything. However, the snapshotOnly parameter is not respected. The goal will wipe always all artifacts with the same groupId.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joehni Joerg Schaible
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: