diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1d04d05b49..74d4a4f09a 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -54,6 +54,6 @@ jobs:
- name: Build project with self-check against Error Prone fork
run: mvn -T1C clean verify -Perror-prone-fork -Pnon-maven-central -Pself-check -s settings.xml
- name: Remove installed project artifacts
- run: mvn build-helper:remove-project-artifact
+ run: mvn dependency:purge-local-repository -DmanualInclude='${project.groupId}' -DresolutionFuzziness=groupId
# XXX: Enable Codecov once we "go public".
diff --git a/.github/workflows/run-integration-tests.yml b/.github/workflows/run-integration-tests.yml
index 013e45f71e..dd4b8b97a6 100644
--- a/.github/workflows/run-integration-tests.yml
+++ b/.github/workflows/run-integration-tests.yml
@@ -50,4 +50,4 @@ jobs:
name: integration-test-checkstyle
path: "${{ runner.temp }}/artifacts"
- name: Remove installed project artifacts
- run: mvn build-helper:remove-project-artifact
+ run: mvn dependency:purge-local-repository -DmanualInclude='${project.groupId}' -DresolutionFuzziness=groupId
diff --git a/pom.xml b/pom.xml
index 8d28abad64..c3d3e4d072 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1310,11 +1310,6 @@
true
-
- org.codehaus.mojo
- build-helper-maven-plugin
- 3.6.0
-
org.codehaus.mojo
license-maven-plugin