Maven PurgingLocalRepository 发表于 2019-05-20 更新于 2023-03-01 分类于 Maven 本文字数: 97 阅读时长 ≈ 1 分钟 Purging local repository dependenciesThe purpose of thedependency:purge-local-repositorygoal is to purge (delete and optionally re-resolve) artifacts from the local maven repository. This page describes some of the configuration options available to the plugin. 1mvn dependency:purge-local-repository Dependency includes/excludes12345678910111213141516171819202122232425262728<project> [...] <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>3.1.1</version> <executions> <execution> <id>purge-local-dependencies</id> <phase>process-sources</phase> <goals> <goal>purge-local-repository</goal> </goals> <configuration> <excludes> <exclude>[groupId1]:[artifactId1]</exclude> <exclude>[groupId2]:[artifactId2]</exclude> </excludes> </configuration> </execution> </executions> </plugin> </plugins> </build> [...]</project>