Skip to content

Commit 93f9e85

Browse files
rmannibucaumichael-o
authored andcommitted
[MNG-7045] Drop CDI API from Maven
This closes #540
1 parent 98a9d08 commit 93f9e85

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

maven-core/src/main/resources/META-INF/maven/extension.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,11 @@ under the License.
9494

9595
<!-- javax.inject (JSR-330) -->
9696
<exportedPackage>javax.inject.*</exportedPackage>
97-
<!-- javax.enterprise.inject (JSR-299) -->
97+
<!-- javax.enterprise.inject (JSR-299): Must never be exported if needed at plugin level, plugin adds it
98+
there is no justification to get it at Maven level and leaking it will conflict.
9899
<exportedPackage>javax.enterprise.util.*</exportedPackage>
99100
<exportedPackage>javax.enterprise.inject.*</exportedPackage>
101+
-->
100102

101103
<!-- javax.annotation (JSR-250) -->
102104
<exportedPackage>javax.annotation.*</exportedPackage>

pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,12 @@ under the License.
249249
<groupId>org.eclipse.sisu</groupId>
250250
<artifactId>org.eclipse.sisu.plexus</artifactId>
251251
<version>${sisuVersion}</version>
252+
<exclusions>
253+
<exclusion> <!-- Way too easy to conflict with plugins to be in Maven and leak in plugins -->
254+
<groupId>javax.enterprise</groupId>
255+
<artifactId>cdi-api</artifactId>
256+
</exclusion>
257+
</exclusions>
252258
</dependency>
253259
<dependency>
254260
<groupId>org.eclipse.sisu</groupId>

0 commit comments

Comments
 (0)