maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject [maven] 01/01: drop useless and outdated cdi-api from maven
Date Thu, 03 Dec 2020 19:07:23 GMT
This is an automated email from the ASF dual-hosted git repository.

rmannibucau pushed a commit to branch MNG-7045
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 9d64fe633c9991058e5f3b69820eb2654ad7c1e0
Author: Romain Manni-Bucau <rmannibucau@gmail.com>
AuthorDate: Thu Dec 3 20:07:03 2020 +0100

    drop useless and outdated cdi-api from maven
---
 maven-core/src/main/resources/META-INF/maven/extension.xml | 4 +++-
 pom.xml                                                    | 6 ++++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/maven-core/src/main/resources/META-INF/maven/extension.xml b/maven-core/src/main/resources/META-INF/maven/extension.xml
index 0eceb2b..4abc7d9 100644
--- a/maven-core/src/main/resources/META-INF/maven/extension.xml
+++ b/maven-core/src/main/resources/META-INF/maven/extension.xml
@@ -96,9 +96,11 @@ under the License.
 
     <!-- javax.inject (JSR-330) -->
     <exportedPackage>javax.inject.*</exportedPackage>
-    <!-- javax.enterprise.inject (JSR-299) -->
+    <!-- javax.enterprise.inject (JSR-299): must never be exported, if needed at plugin
level, plugin adds it
+         there is no justification to get it at maven level and leaking it will conflict
     <exportedPackage>javax.enterprise.util.*</exportedPackage>
     <exportedPackage>javax.enterprise.inject.*</exportedPackage>
+    -->
 
     <!-- javax.annotation (JSR-250) -->
     <exportedPackage>javax.annotation.*</exportedPackage>
diff --git a/pom.xml b/pom.xml
index d8e39bf..c3d3392 100644
--- a/pom.xml
+++ b/pom.xml
@@ -273,6 +273,12 @@ under the License.
         <groupId>org.eclipse.sisu</groupId>
         <artifactId>org.eclipse.sisu.plexus</artifactId>
         <version>${sisuInjectVersion}</version>
+        <exclusions>
+          <exclusion> <!-- way too easy to conflict with plugins to be in maven
and leak in plugin -->
+            <groupId>javax.enterprise</groupId>
+            <artifactId>cdi-api</artifactId>
+          </exclusion>
+        </exclusions>
       </dependency>
       <dependency>
         <groupId>org.eclipse.sisu</groupId>


Mime
View raw message