[MDEP-923] Exclude only specific artifacts from dependencies
diff --git a/pom.xml b/pom.xml
index 3cf62a9..23089e5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -184,7 +184,19 @@
</exclusion>
<exclusion>
<groupId>org.apache.maven</groupId>
- <artifactId>*</artifactId>
+ <artifactId>maven-artifact</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-core</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-model</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-api</artifactId>
</exclusion>
</exclusions>
</dependency>
@@ -244,10 +256,6 @@
<version>3.2.1</version>
<exclusions>
<exclusion>
- <groupId>org.apache.maven</groupId>
- <artifactId>*</artifactId>
- </exclusion>
- <exclusion>
<groupId>org.eclipse.aether</groupId>
<artifactId>aether-util</artifactId>
</exclusion>
@@ -265,7 +273,11 @@
<exclusions>
<exclusion>
<groupId>org.apache.maven</groupId>
- <artifactId>*</artifactId>
+ <artifactId>maven-artifact</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-core</artifactId>
</exclusion>
</exclusions>
</dependency>