Skip to content

Commit

Permalink
[MNG-7045] Drop CDI API from Maven
Browse files Browse the repository at this point in the history
This closes #540
  • Loading branch information
rmannibucau authored and michael-o committed Sep 15, 2021
1 parent 98a9d08 commit 93f9e85
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion maven-core/src/main/resources/META-INF/maven/extension.xml
Expand Up @@ -94,9 +94,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>
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Expand Up @@ -249,6 +249,12 @@ under the License.
<groupId>org.eclipse.sisu</groupId>
<artifactId>org.eclipse.sisu.plexus</artifactId>
<version>${sisuVersion}</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>
Expand Down

0 comments on commit 93f9e85

Please sign in to comment.