Maven plugins (maven-compiler-plugin:3.8.1 and maven-surefire-plugin:3.0.0-M3) seem to be downloading multiple versions of the same dependency (plexus-utils) when running mvn clean package, even if I specify the latest version of plexus-utils in the dependencies. This doesn't cause any errors, but any version of plexus-utils prior to 3.0.16 is vulnerable to command injection. Is there a way that I can stop this from happening?
EDIT: As per the suggestion below I tried including an exclusion, but I think this is only supported for dependencies and not plugins.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
</exclusion>
</exclusions>
</plugin>