Bug#685298: Impossible to simultaneously install libtomcat7-java and libtomcat6-java
Emmanuel Bourg
ebourg at apache.org
Fri Sep 13 11:19:16 UTC 2013
Hi,
I started working on the tomcat8 package and I'd like to avoid the same
conflict with tomcat7. What would be the best solution?
1. Change the name of the unversioned jars to tomcat8-xxx.jar. That
would give the following links in /usr/share/java:
tomcat8-catalina-ant.jar -> tomcat-catalina-ant-8.0.0.jar
tomcat8-catalina-tribes.jar -> tomcat-catalina-tribes-8.0.0.jar
tomcat8-annotations-api.jar -> tomcat-annotations-api-8.0.0.jar
tomcat8-api.jar -> tomcat-api-8.0.0.jar
tomcat8-catalina-ha.jar -> tomcat-catalina-ha-8.0.0.jar
tomcat8-catalina.jar -> tomcat-catalina-8.0.0.jar
tomcat8-coyote.jar -> tomcat-coyote-8.0.0.jar
tomcat8-i18n-es.jar -> tomcat-i18n-es-8.0.0.jar
tomcat8-i18n-fr.jar -> tomcat-i18n-fr-8.0.0.jar
tomcat8-i18n-ja.jar -> tomcat-i18n-ja-8.0.0.jar
tomcat8-jasper-el.jar -> tomcat-jasper-el-8.0.0.jar
tomcat8-jasper.jar -> tomcat-jasper-8.0.0.jar
tomcat8-juli.jar -> tomcat-juli-8.0.0.jar
tomcat8-util.jar -> tomcat-util-8.0.0.jar
2. Move the jars and links in a subdirectory of /usr/share/java.
/usr/share/java/tomcat8/tomcat-juli.jar -> ./tomcat-juli-8.0.0.jar
/usr/share/java/tomcat8/tomcat-util.jar -> ./tomcat-util-8.0.0.jar
3. Don't put the unversioned links in /usr/share/java. If a reverse
dependency requires a stable path for building it could use the Maven
repository in /usr/share/maven-repo. The Maven based packages wouldn't
be impacted, and the Ant based packages could use a path like:
/usr/share/maven-repo/org/apache/tomcat/tomcat-jasper/8.x/tomcat-jasper-8.x.jar
What do you think?
Emmanuel Bourg
More information about the pkg-java-maintainers
mailing list