[MNG-7045] Drop CDI API from Maven

This closes #408
This commit is contained in:
Romain Manni-Bucau 2020-12-03 20:07:03 +01:00 committed by Michael Osipov
parent 2ef0e5bacc
commit 2609cdcbc0
2 changed files with 9 additions and 1 deletions

View File

@ -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>

View File

@ -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>