Gentoo Archives: gentoo-java

From: Robert Burrell Donkin <robertburrelldonkin@×××××.com>
To: Gentoo Java <gentoo-java@l.g.o>
Subject: Re: [gentoo-java] Re: Maven from source - version 2.x or 3.x ?
Date: Thu, 26 May 2011 10:58:58
Message-Id: BANLkTi=-XmM7-6S8QiDnL5WEq6T3sAJkfA@mail.gmail.com
In Reply to: Re: [gentoo-java] Re: Maven from source - version 2.x or 3.x ? by Kasun Gajasinghe
1 On Thu, May 26, 2011 at 10:06 AM, Kasun Gajasinghe <kasunbg@×××××.com> wrote:
2 > Hi Jörg, and Robert,
3 >
4 >>> FWIW one unresolved challenge for linux distributions with the rise of
5 >>> bytecode languages (such as Java) is that compressed bytecodes are not
6 >>> binaries in the usual sense (platform dependent machine executable
7 >>> machine code). i know that it's a hard thing for the linux community
8 >>> to hear but it's about time that the community acknowledged that these
9 >>> languages are now mainstream and stop trying to force them into a
10 >>> inappropriate provisioning model.
11 >
12 > So... what exactly are you suggesting? Switch in to using binaries
13 > instead of building from source paradigm?
14
15 i love the "build-from-source" paradigm but dependencies for languages
16 such as Java are distributed as compressed intermediate bytecode
17 source not binaries. bytecode dependencies work quite differently from
18 the libraries used by directly compiled languages. building
19 applications in a reliable and reproducable way for bytecode languages
20 requires provisioning libraries in native source form (ie. bytecode).
21
22 it's time to start working with these new languages rather than try to
23 fight them by forcing them to fit into inappropriate structures.
24
25 >> To build Maven from source in Gentoo I wonder about the hen-and-egg problem.
26 >
27 > Yes. To Bootstrap maven, the work around for this is by: first
28 > generate ANT build.xml via `mvn ant:ant`. maven-bin will provide the
29 > mvn command in this case. Then patch that build.xml to the source.
30 > After that, ANT will take care of the building from source.
31
32 not very reliable :-/
33
34 - robert