From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= Subject: Re: State of maven build system, gradle and Apache commens Date: Tue, 6 Sep 2016 00:15:53 +0200 Message-ID: <20160906001553.25365b2a@alma-ubu> References: <57C812CE.1000308@goebel-consult.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bh2BU-0003wY-JH for guix-devel@gnu.org; Mon, 05 Sep 2016 18:16:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bh2BQ-0004SF-7z for guix-devel@gnu.org; Mon, 05 Sep 2016 18:16:07 -0400 Received: from m4s11.vlinux.de ([83.151.27.109]:58883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bh2BP-0004SB-U4 for guix-devel@gnu.org; Mon, 05 Sep 2016 18:16:04 -0400 In-Reply-To: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ricardo Wurmus Cc: guix-devel , Hartmut Goebel Hi Hartmut and Ricardo, On Thu, 1 Sep 2016 14:03:10 +0200 Ricardo Wurmus wrote: >=20 > Hartmut Goebel writes: >=20 > > is anyone working on this? (I'm lacking knowledge to help with maven > > or gradle, but could help with commons.) >=20 > We are still a long way off before get to a working maven build > system. I have a few more Java packages sitting here, but it=E2=80=99s not > much. >=20 > We first need to recursively package all dependencies of Maven. The > next packages on my list are =E2=80=9Cjava-javax-mail=E2=80=9D (done) and > =E2=80=9Cjava-log4j-core=E2=80=9D, which needs the following packages: >=20 > javax-persistence > javax-jms > java-zeromq > kafka > apache-commons >=20 > These might have unpackaged dependencies of their own. If you took > over =E2=80=9Capache-commons=E2=80=9D that would be very helpful. You sh= ould be able > to use the =E2=80=9Cant-build-system=E2=80=9D to get started, even if it = doesn=E2=80=99t > result in the prettiest packages. >=20 > Once we actually have Maven packaged (completely from source without > cheating) we should take a look at the existing packages again and see > if we should install jars with a directory layout that Maven expects. > Until then I wouldn=E2=80=99t bother trying to anticipate all these issue= s. I'm interested in which version of maven do you start to create? Which version(s) of the dependencies/plugins are you rebuilding? Here is my experience so far: Last month I started looking at the maven build-process too. I know that it wouldn't be that easy, but it's harder than expected. First, I asked on maven-devel [0], but I had the feeling they don't understand the philosophy behind working with source dependencies instead of binary ones. Then I looked for myself at different versions of Maven and decided to go with version 1.1 and bootstrap me up. But even this has hard and funny dependencies: For example, dom4j-1.7-20060614.jar has in it's META-INF written: "*Note* that this is a custom-built version for the Maven project. It was built from dom4j cvs trunk as of 2006-06-08 with the branch DOM4J_1_X_BRANCH merged in." OK, the branch is still there on SourceForge, but can I really be sure to get the source code they used to build the jar-file? Or is that ultimately lost in Java/Apache history? Next, dom4j and others use forehead-1.0-beta-5.jar. The original project is no longer there. Luckily I found a copy on a Gentoo mirror [1]. Other dependencies, even relatively old ones need Maven in order to compile (at least they use Maven originally, maybe it's possible to build them with some Ant task too). That is the case for commons-jelly/1.0.1-20060717, which by the way is again a patched version ("*Note* that this is a custom-built version for the Maven project. It was built from svn trunk as of 2006-07-17 (r 422982) but with the fixes for JELLY-213 and JELLY-214 reverted"). How do you proceed? Do you have an issue raised where we can share knowledge/coordinate next steps? Bj=C3=B6rn [0] https://www.mail-archive.com/dev@maven.apache.org/msg110304.html (Post from Bj=C3=B6rn H=C3=B6fling at Mon, 22 Aug 2016 23:26:10 -0700 on de= v at maven dot apache dot org) [1] http://ftp.fi.debian.org/gentoo/distfiles/forehead-1.0_beta5.tbz2