You are here

quartz 2.3.0 compatible problem with Shiro 1.4,0

My project should work with 2 plugins: quartz2 and Shiro.
When I run the project, Quartz2 cannot find implementations or methods from Quartz2 and project cannot be built. Strange is that project always includes one quartz-1.6.1.jar from org.opensymphony.quartz lib in libs, besides the quartz-2.3.0.jar.

From this dependency list from Schiro, you can find org.opensymphony.quartz 1.6.1:
http://shiro.apache.org/static/1.3.0/shiro-quartz/dependency-management.html

This is the reason!

Solution:

Maven:

org.apache.shiro
shiro-all
1.4.0

org.opensymphony.quartz
quartz

Gradle:

compile (":shiro:1.4.0") {
excludes([name: 'quartz', group: 'org.opensymphony.quartz'])
}

With this, project will use Quartz2 only.