[ https://issues.apache.org/jira/browse/MDEP-619?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16879746#comment-16879746 ]
Hervé Boutemy commented on MDEP-619: ------------------------------------ that will require an important change in the algorithm: when fuzziness is artifactId or groupId, currently the full artifact or group directories are deleted but in your case, a path transversal should be done to only select SNAPSHOT versions directories > snapshotsOnly is not always respected > ------------------------------------- > > Key: MDEP-619 > URL: https://issues.apache.org/jira/browse/MDEP-619 > Project: Maven Dependency Plugin > Issue Type: Bug > Components: purge-local-repository > Affects Versions: 3.1.1 > Environment: $ mvn -version > Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; > 2018-02-24T20:49:05+01:00) > Maven home: /usr/share/maven-bin-3.5 > Java version: 1.8.0_172, vendor: Oracle Corporation > Java home: /opt/oracle-jdk-bin-1.8.0.172/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "4.9.76-gentoo-r1", arch: "amd64", family: "unix" > Reporter: Joerg Schaible > Priority: Major > > 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: > {code:xml} > <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> > {code} > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)