Hi,
I'm trying to make a package for quartz[1], but I'm running into some
dependency troubles when I try to compile it with maven. It semms to
require a Java Message Service[2] implementation to build (though I
know, that jms is not a runtime requirement):
mvn-jpp
-Dmaven.repo.local=/home/makerpm/rpmbuild/BUILD/quartz-1.8.3/.m2/repository
-DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dpackaging=jar
-Dfile=/usr/share/java/jms.jar install javadoc:javadoc
[..]
Missing:
----------
[..]
2) javax.jms:jms:jar:1.1
[..]
Path to dependency:
1) org.quartz-scheduler:quartz:jar:1.8.3
2) javax.jms:jms:jar:1.1
One jms implementation is provided by the package geronimo-jms, but
obviously, maven can't find during the build process (yes, it's
definitely installed).
I guess, the culprit is the following entry in maven2-depmap:
<dependency>
<maven>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jms_1.1_spec</artifactId>
<version>1.1.1</version>
</maven>
<jpp>
<groupId>JPP</groupId>
<artifactId>geronimo-jms</artifactId>
<version>1.1.1</version>
</jpp>
</dependency>
So how can I bend this to find the classes in javax.jms? Is there a way
of telling maven during build that javax.jms is somewhere else? Or do I
have to ask the maintainer of geronimo-jms to change groupId and
artifactId? And what happens then, if someone else packages a different
jms implementation like openjms?
Regards, Chris
[1]
http://www.quartz-scheduler.org/
[2]
http://java.sun.com/products/jms/