Classifiers are a maven construct and beyond the scope for Shiro. If you google how to use maven classifiers you will find what you are looking for. You need to use Jakarta classified for all Shiro artifacts. That probably means some exclusions. Mvn dependency:tree is your friend here. Thanks for the quick response! Apologies for my ignorance here but I i'm just using standard maven pom reference and haven't seen any documentation on Shiro website for jakarta classifier. is this a type of annotation? here's a snippet of the pom <properties> <java.version>17</java.version> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> <servlet.api.version>6.0.0</servlet.api.version> <org.springframework.version>6.0.4</org.springframework.version> <shiro.version>1.11.0</shiro.version> </properties> <dependencies> <!--Tomcat 10.x--> <dependency> <groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>${servlet.api.version}</version>
<scope>provided</scope>
</dependency> <!-- Authentication/Authorization --> <dependency> <groupId>org.apache.shiro</groupId>
<artifactId>shiro-core</artifactId>
<version>${shiro.version}</version>
<exclusions>
<exclusion>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
</exclusion>
</exclusions>
</dependency> <dependency> <groupId>org.apache.shiro</groupId>
<artifactId>shiro-web</artifactId>
<version>${shiro.version}</version>
</dependency> <dependency> <groupId>org.apache.shiro</groupId>
<artifactId>shiro-ehcache</artifactId>
<version>${shiro.version}</version>
<exclusions>
<exclusion>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache-core</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
Are you sure you are using Jakarta classifiers for both Shiro-core and Shiro-web? Do you have an exact error you are getting?
We're looking to migrate to Spring 6.x, which requires Tomcat 10 and thus Jakarta EE.
|