Gentoo Archives: gentoo-soc

From: Kasun Gajasinghe <kasunbg@×××××.com>
To: gentoo-soc@l.g.o
Cc: kiorky <kiorky@××××××××××.net>, Serkan Kaba <serkan@g.o>, Alistair Bush <ali_bush@g.o>
Subject: [gentoo-soc] Gentoo Maven Integration - Weekly Report #1
Date: Tue, 31 May 2011 07:06:52
Message-Id: BANLkTimjhmmq0OnMT3iSBE2o24kPSn800Q@mail.gmail.com
1 Hello everyone,
2
3 The goal of this project is to be easily able to write ebuilds for
4 upstream projects that use Apache Maven as the build system. The Maven
5 integration allows to natively use Apache Maven in Java packages in
6 the main tree. The current system work around the support for Maven
7 projects by transforming them to Ant. It generates build.xml via “mvn
8 ant:ant” command and sanitizes that. This conversion too has some
9 problems and needs to fixed. With this project, developers gains the
10 ability to use native Maven support for writing ebuilds and will get
11 full support for using maven-to-ant feature.
12
13 Progress:
14 * The development is carried out at the gsoc-maven-overlay at [0]
15 * The first step of this project is to bump all the maven related
16 ebuilds. Current ebuilds are around 3 years old. There are about 40
17 ebuilds to bump, so it'll be a little lengthy process.
18 * Decided to go ahead with Maven 2.x (the latest release is
19 2.2.1) see [1] for the discussion.
20 * All the ebuilds related to "maven || wagon || plexus || doxia"
21 needs to be bumped.
22 * I was trying to bump the plexus-server. It has been a quite a
23 process since some dependencies isn't available anymore.
24 * Then it turned out that plexus-server is only used by wagon-ftp
25 ebuild. Wagon-ftp needs plexus-ftp which is a sub-project of
26 plexus-server. So, I've been trying to write a new ebuild for the
27 plexus-ftp.
28 * I've wrote the ebuild, but still needs some work to get it into
29 work. There's some issues with pom rewriting. Either the pom file
30 contains some issues or javatoolkit/maven-helper.py-2.6, the script
31 for pom rewriting contains a bug.
32 * Fixed an issue in the java-maven-2.eclass which caused the
33 build maven-base-poms ebuild to fail.
34 * Got [3] setup to temporily host some source tarballs.
35
36 Next:
37 * Getting the plexus-ftp and wagon-ftp ebuilds to work. This
38 process goes through fixing all the DEPEND which will take some time.
39 Once the this got to work, bumping the rest of the ebuilds is just an
40 iterative (and exhausting ;) ) process.
41 * Need to fix the java-maven-2.eclass for the bugs and errors
42 during the course of the bumping process.
43 * The ultimate goal is to get building maven from source fully
44 working/bootstrapping maven.
45
46 Questions:
47 * Need to figure out what DEPENDs should be included for maven
48 based ebuilds. Does all the artifacts in the <dependencies> in the POM
49 needed to be included?
50 * In addition to patching build.xml generated from `mvn ant:ant`,
51 Is there any other changes needs to be done to the source?
52
53
54 [0] http://overlays.gentoo.org/proj/java/log/gsoc-maven-overlay
55 [1] http://comments.gmane.org/gmane.linux.gentoo.java/2161
56 [2] http://dev.gentooexperimental.org/~kasun/
57
58 Thanks,
59 --Kasun
60
61 --
62 ~~~*******'''''''''''''*******~~~
63 Kasun Gajasinghe,
64 University of Moratuwa,
65 Sri Lanka.
66 Blog: http://kasunbg.blogspot.com
67 Twitter: http://twitter.com/kasunbg