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:

This is the reason!



  1. <dependency>
  2. <groupId>org.apache.shiro</groupId>
  3. <artifactId>shiro-all</artifactId>
  4. <version>1.4.0</version>
  5. <exclusions>
  6. <exclusion>
  7. <groupId>org.opensymphony.quartz</groupId>
  8. <artifactId>quartz</artifactId>
  9. </exclusion>
  10. </exclusions>
  11. </dependency>


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

With this, project will use Quartz2 only.