Quartz 1.6.0 Maven2 pom.xml
March 28, 2008
Here’s a quick post for those who a) use Maven 2 and b) need to use Quartz 1.6.0 in their projects.
See now Quartz 1.6.0 has (run-time) dependencies on JTA (if you’re using it stand-alone, outside of a J2EE container) and Commons Collections – unfortunately, the Quartz pom.xml doesn’t specify these as dependencies.
So here’s a pom.xml you can use to base your project’s POM off from.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>foo</groupId>
<artifactId>quartz-project</artifactId>
<version>1.0</version>
<name>Quartz Project</name>
<dependencies>
<!--
Quartz framework and dependencies
-->
<dependency>
<groupId>opensymphony</groupId>
<artifactId>quartz</artifactId>
<version>1.6.0</version>
<scope>compile</scope>
</dependency>
<!-- Quartz 1.6.0 depends on commons collections -->
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.1</version>
<scope>runtime</scope>
</dependency>
<!-- Quartz 1.6.0 requires JTA in non J2EE environments -->
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
<version>1.0.1b</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>
Enjoy!
June 27, 2008 at 8:29 am
Er, looking at the full distro of quartz 1.6.0, it depends on commons-collections 3.1 not 3.2, it will simply not work with 3.2.
-Chris
July 1, 2008 at 4:08 pm
shouldn’t this be declared in the poms of those dependent on quartz instead?
July 18, 2008 at 2:05 am
I CANNOT UNDERSTAND GREEK! hehehe!
droppin you a note, Hi Ali! Happy Birthday!
October 20, 2008 at 2:35 pm
Thanks for the advice.
I have found that this is also needed:
commons-logging
commons-logging
1.1
October 20, 2008 at 5:36 pm
Thanks, Albert!
I guess I almost always use commons-logging now in my projects so I didn’t catch that dependency.
June 12, 2011 at 1:52 pm
[...] Here is a good tutorial show you about Quartz Maven2 pom.xml: Here’s a quick post for those who a) use Maven 2 and b) need to use Quartz 1.6.0 in their projects. [...]