You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2020/12/20 19:37:56 UTC

[maven] branch MNG-7045 updated (9d64fe6 -> 6ec7586)

This is an automated email from the ASF dual-hosted git repository.

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


    omit 9d64fe6  drop useless and outdated cdi-api from maven
     new 6ec7586  [MNG-7045] Drop CDI API from Maven

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (9d64fe6)
            \
             N -- N -- N   refs/heads/MNG-7045 (6ec7586)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 maven-core/src/main/resources/META-INF/maven/extension.xml | 4 ++--
 pom.xml                                                    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)


[maven] 01/01: [MNG-7045] Drop CDI API from Maven

Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 6ec7586544679db3d7a8dff996e747d8e21de37d
Author: Romain Manni-Bucau <rm...@gmail.com>
AuthorDate: Thu Dec 3 20:07:03 2020 +0100

    [MNG-7045] Drop CDI API from Maven
    
    This closes #408
---
 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..9007dc7 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..23f976f 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 plugins -->
+            <groupId>javax.enterprise</groupId>
+            <artifactId>cdi-api</artifactId>
+          </exclusion>
+        </exclusions>
       </dependency>
       <dependency>
         <groupId>org.eclipse.sisu</groupId>