/srv/irclogs.ubuntu.com/2009/02/13/#ubuntu-java.txt

=== LucidFox_ is now known as LucidFox
=== Nicke_ is now known as Nicke
RiddellKoon: yeah I want to package, sesame16:08
RiddellI have it building ok on my machine, but in a chroot it insists on downloading files (which won't work for a buildd of course)16:09
Riddellhttp://paste.ubuntu.com:80/117702/16:09
Koonhm.16:09
Riddellso something seems to be different about my own system that it doesn't need to download stuff16:10
Riddellbut I've no idea what16:10
KoonFor simple things that happen to use maven, there is the possibility to use maven-ant-helper that basically wraps the buid into a simple ant build.xml16:10
Koonbut Sesame looks large16:10
Koon(looking at that reactor build order)16:11
Riddellit's a beast16:11
KoonFor medium-sized thing we expect to have support for Maven packaging at the start of jaunty+116:11
Koon(synced from twerver work in debian)16:11
Koontwerner, I mean16:11
Riddellbut it works, I just don't know how16:12
Koonhowever very large things would probably still fail, since we would provide a unique version of each artifact when the very large thing usually will ask for several versions of the same artifact and fail if you cheat it16:12
KoonI fear Sesame falls into the last category16:13
RiddellKoon: want to see if it builds for you?  http://www.kubuntu.org/~jriddell/tmp/sesame/16:13
Kooni'm pretty sure it builds. The problem is working around the online download of deps16:13
Riddellbut it doesn't do the download on my laptop16:13
Riddellonly in a chroot16:13
Riddellis the download cached somewhere?16:14
Koonyes. ~/.m216:14
Koonthe method we use is to provide to the build something that looks like the repository maven would have ended up downloading16:15
Koonbut that in reality would link to the system-installed JAR artifacts16:15
Riddellbah fooey16:15
KoonThere wrer two implementations of those, the one we speced i nUbuntu and the one Debian-java finally started16:16
KoonWe discussed that last week with twerner and decided that we should use Debian model since it's better for us to sync it from them16:16
Koonrather than go our own slightly-different route. Furthermore their design was done by someone that kinda knows maven. While our design was done by me ;)16:17
Riddellwhat an insane build system16:17
Koonso we expect to be able to build a helloworld maven project at the start of the Jaunty+1 cycle16:18
Koonbut something like Sesame or geronimo is still a very long way16:18
KoonYou /could/ rewrite the Sesame build system completely so that it does not use Maven, but that's a hell of a work.16:18
Koonso doko summarized our current advice very well :)16:19
KoonRiddell: yes, that's a quite insane build system. Makes (some) sense if you only build binaries once. Which is kinda the idea behind Java.16:21
KoonBut from a distro pov it's simply a walking nightmare16:21
Riddelland people wonder why java has a bad reputation in the free software world16:21
RiddellKoon: and there's no way to just include the files it would cache?16:23
Riddelli.e. fake the cache16:24
KoonRiddell: well, you could tar up the repository it caches, include it as part of the sources, and run mvn in offline mode to make sure it does no freshness check16:24
Koonbut that would be including binaries as part of the source16:24
Koonwhich is no-no for most repositories, if not all.16:25
Riddellmost of the files are there .pom  XML files16:26
Koonthere are quite a few JAR files normally.16:26
Riddellthere's a bunch of .jar files but they ought to be packagable I'd have thought16:26
Koonyou'll also miss "maven plugins"16:27
Koonyes, it's basically a packaging effort and some tools to help in the process16:27
Koonbut since we provide a single version of each artifact, slightly different from the one Maven requests, it /may/fail16:28
Riddellok, time to give up I think16:29
Koonsince JARs usually break API without warning16:29
Riddellthanks for the information Koon16:29
KoonRiddell: if that's an option, I'd recommend it.16:29
KoonRiddell: you're welcome. I always like to rant about it.16:30
RiddellKoon: is there an easy way to override where maven looks for that .m2 cache?  I guess I could package it for multiverse16:49
Koonyou have to provide a settings.xml file... hmm just a sec16:49
Koonmvn --settings debian/prepare-settings.xml --offline16:51
Koonwith something like http://pastebin.ubuntu.com/117731/ in the .xml feil16:51
Koonfile, even16:52
KoonRiddell: got to go. Good luck :)16:53
Riddellthanks16:54
rzrhttp://rzr.online.fr/q/now 1234567890day countdown started23:30

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!