This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch 3.x
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/3.x by this push:
new 8ed03dbbc [#2589] bugfix(deps): make Jakarta EE API dependencies
optional and non-trans… (#2590)
8ed03dbbc is described below
commit 8ed03dbbc2724bcf2483cf240b3f386f765d6423
Author: Lenny Primak <[email protected]>
AuthorDate: Sat Feb 28 11:56:59 2026 -0600
[#2589] bugfix(deps): make Jakarta EE API dependencies optional and
non-trans… (#2590)
* bugfix(deps): make Jakarta EE API dependencies optional and non-transitive
* removed no-longer-necessary exclusion
---
samples/web/pom.xml | 6 ------
support/cdi/pom.xml | 1 +
web/pom.xml | 2 ++
3 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/samples/web/pom.xml b/samples/web/pom.xml
index e35208a4a..bce4e5da2 100644
--- a/samples/web/pom.xml
+++ b/samples/web/pom.xml
@@ -118,12 +118,6 @@
<groupId>jakarta.servlet.jsp.jstl</groupId>
<artifactId>jakarta.servlet.jsp.jstl-api</artifactId>
<scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>jakarta.servlet</groupId>
- <artifactId>*</artifactId>
- </exclusion>
- </exclusions>
</dependency>
<dependency>
<groupId>org.apache.tomcat</groupId>
diff --git a/support/cdi/pom.xml b/support/cdi/pom.xml
index 279bc6abc..fe1eaf89b 100644
--- a/support/cdi/pom.xml
+++ b/support/cdi/pom.xml
@@ -44,6 +44,7 @@
<dependency>
<groupId>jakarta.ejb</groupId>
<artifactId>jakarta.ejb-api</artifactId>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
diff --git a/web/pom.xml b/web/pom.xml
index d15a1c417..2ab76e0aa 100644
--- a/web/pom.xml
+++ b/web/pom.xml
@@ -43,10 +43,12 @@
<dependency>
<groupId>jakarta.servlet.jsp</groupId>
<artifactId>jakarta.servlet.jsp-api</artifactId>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
+ <optional>true</optional>
</dependency>
<dependency>
<groupId>org.owasp.encoder</groupId>