[opensuse-factory] java libraries packaging - integrate maven repository to zypper?
I read http://en.opensuse.org/Java/Packaging/Cookbook and it states "the convient approach in Linux distribution is use of the system jars" for third party jars. I don't know if you are aware of the maven repository but packaging third party jars in rpm manually is currently a little redundant. The maven repository provides a lot of meta data including dependencies on java archive files and is kept quite up to date plus is mirrored. Wouldn't it make more sense to integrate somehow the maven repository to zipper and be able to retrieve dependencies from a java program from maven? Or another approach could be a gateway from maven to rpm. Erik. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Putrycz, Erik wrote:
I read http://en.opensuse.org/Java/Packaging/Cookbook and it states "the convient approach in Linux distribution is use of the system jars" for third party jars. I don't know if you are aware of the maven repository but packaging third party jars in rpm manually is currently a little redundant. The maven repository provides a lot of meta data including dependencies on java archive files and is kept quite up to date plus is mirrored. Wouldn't it make more sense to integrate somehow the maven repository to zipper and be able to retrieve dependencies from a java program from maven? Or another approach could be a gateway from maven to rpm.
There is idea* about plugins for zypper. Maybe this could be implemented as such plugin, which could use maven metadata and provide virtual packages like java-maven-{name} for installing and uninstalling. CCing Jano as the idea author. * http://idea.opensuse.org/content/ideas/plug-in-support-for-zypper
Erik.
-- Best Regards / S pozdravom, Pavol RUSNAK SUSE LINUX, s.r.o Package Maintainer Lihovarska 1060/12 PGP 0xA6917144 19000 Praha 9, CR prusnak[at]suse.cz http://www.suse.cz -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Pavol Rusnak wrote:
Putrycz, Erik wrote:
I read http://en.opensuse.org/Java/Packaging/Cookbook and it states "the convient approach in Linux distribution is use of the system jars" for third party jars.
For perl, mono and others, rpm can inject the dependencies almost automagically at build time if the right scripts (find-requires, etc) are there.
I wrote about adding dependencies to java packages a while ago, and actually Pascal did a prototype script: http://duncan.mac-vicar.com/blog/archives/290 Duncan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Pavol Rusnak wrote:
Putrycz, Erik wrote:
I read http://en.opensuse.org/Java/Packaging/Cookbook and it states "the convient approach in Linux distribution is use of the system jars" for third party jars.
For perl, mono and others, rpm can inject the dependencies almost automagically at build time if the right scripts (find-requires, etc) are there.
But are all the dependencies packaged as RPM as well? Otherwise, a script that goes from a maven jar file to a rpm would be nice.
I wrote about adding dependencies to java packages a while ago, and actually Pascal did a prototype script:
This part is probably not the most challenging; also applications built with maven will provide a descriptor of all the dependencies. Erik. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
Pavol Rusnak napsal(a):
Putrycz, Erik wrote:
I read http://en.opensuse.org/Java/Packaging/Cookbook and it states "the convient approach in Linux distribution is use of the system jars" for third party jars. I don't know if you are aware of the maven repository but packaging third party jars in rpm manually is currently a little redundant. The maven repository provides a lot of meta data including dependencies on java archive files and is kept quite up to date plus is mirrored. Wouldn't it make more sense to integrate somehow the maven repository to zipper and be able to retrieve dependencies from a java program from maven? Or another approach could be a gateway from maven to rpm.
There is idea* about plugins for zypper. Maybe this could be implemented as such plugin, which could use maven metadata and provide virtual packages like java-maven-{name} for installing and uninstalling.
I guess support for a new repository and package format is rather a libzypp/satsolver feature request than a task for a zypper plugin. Michal -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Wednesday 14 of January 2009 18:07:20 Putrycz, Erik wrote: Hi,
I read http://en.opensuse.org/Java/Packaging/Cookbook and it states "the convient approach in Linux distribution is use of the system jars" for third party jars.
those rules are derived from jpackage.org standards. The jpackage.org is something like upstream for Java rpm packages and almost every rpm distribution is compatible with it.
I don't know if you are aware of the maven repository but packaging third party jars in rpm manually is currently a little redundant.
Yes, we are. But not only we (as SUSE), but jpackage folks too. So there's a big discussion about how to integrate a maven to jpackage.org project and remove many of manual packaging and installing. If you are interested in that, please subscribe a jpackage-discuss (and read the archives [1]). I suggest to start with [2] [1] https://www.zarb.org/pipermail/jpackage-discuss/ [2] https://www.zarb.org/pipermail/jpackage-discuss/2008-November/013124.html
Wouldn't it make more sense to integrate somehow the maven repository to zipper and be able to retrieve dependencies from a java program from maven?
This sounds interesting and a first step should be a build a maven from jpackage.org in a BuildService and add the package(s) to SUSE ;). If you would like to participate, feel free contact me. Best regards Michal Vyskocil -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (5)
-
Duncan Mac-Vicar Prett
-
Michal Marek
-
Michal Vyskocil
-
Pavol Rusnak
-
Putrycz, Erik