From: Karl Trygve Kalleberg <karltk@gentoo.org>
To: Joshua Nichols <nichoj@gentoo.org>
Cc: Gentoo Java <gentoo-java@lists.gentoo.org>
Subject: Re: [gentoo-java] ideas for packages which use maven to build
Date: Wed, 14 Dec 2005 19:39:06 +0100 [thread overview]
Message-ID: <43A066CA.9070708@gentoo.org> (raw)
In-Reply-To: <1134579920.4739.23.camel@francisco-repilado.nfic.com>
Joshua Nichols wrote:
> I have been thinking recently, and I think I came up with a viable
> solution for packaging this that use maven for building.
>
> The first problem is that maven will attempt to download jar
> dependencies from a remote repository. This can be avoided by calling
> maven with -o, for offline mode.
>
> This leads to the question of where, then, to get the jars from. I had
> first thought at build time, we could populate a local repository with
> symlinks to jars that we provide from packages. This would work, and
> could be automated to some extent, but I think it would be tedious to
> maintain a list of jars that each package needs.
Even in the face of such tedium, there is one thing this gives us that
your suggestion does not: the ability to actually check for hidden
dependencies.
If we create a local, minimal .jar environment for each maven-built
package, we know exactly which jars (and therefore which ebuilds) it
depends on.
In the case where maven itself goes into the system and looks around for
.jars that are there, we may quickly end up with it depending on stuff
we didn't see.
This happens with configure scripts and C/C++ applications all the time.
Most of the time, we can do ./configure --enable/disable, but sometimes
flipping this switch has no effect: it will still automatically
autodetect stuff.
Before abandoning the idea of ebuild-local maven repos, I think we
should be very certain that we're not opening up this Pandora's box of
bad mojo.
That being said, a system-wide maven repo that users can avail
themselves of would be great! And AFAICT, it would only need minor
tweaks to the java-*.eclasses.
Cheers,
-- Karl T
--
gentoo-java@gentoo.org mailing list
next prev parent reply other threads:[~2005-12-14 18:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-14 17:05 [gentoo-java] ideas for packages which use maven to build Joshua Nichols
2005-12-14 18:39 ` Karl Trygve Kalleberg [this message]
2005-12-14 19:54 ` Greg Tassone
2005-12-14 20:00 ` Petteri Räty
2005-12-15 1:14 ` Joshua Nichols
[not found] ` <306bf010512220039y6a1a0ba7q@mail.gmail.com>
2005-12-30 7:23 ` Joshua Nichols
2005-12-14 22:26 ` [gentoo-java] " Jörg Schaible
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=43A066CA.9070708@gentoo.org \
--to=karltk@gentoo.org \
--cc=gentoo-java@lists.gentoo.org \
--cc=nichoj@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox