From: Kasun Gajasinghe <kasunbg@gmail.com>
To: gentoo-soc@lists.gentoo.org
Cc: gentoo-java@lists.gentoo.org
Subject: [gentoo-java] Gentoo Maven Integration - Weekly Report #6
Date: Thu, 7 Jul 2011 08:24:12 +0530 [thread overview]
Message-ID: <CADg9GQZ=apLfcUd1O++AjkgGvPsobC21MQ0=znoNO02Y0p20PQ@mail.gmail.com> (raw)
Hi all,
-----------------Goal-----------------
The goal of this project is to be easily able to write ebuilds for
upstream projects that use Apache Maven as the build system. The Maven
integration allows to natively use Apache Maven in Java packages in
the main tree. The current system work around the support for Maven
projects by transforming them to Ant. It generates build.xml via “mvn
ant:ant” command and sanitizes that. This conversion too has some
problems and needs to fixed. With this project, developers gains the
ability to use native Maven support for writing ebuilds and will get
full support for using maven-to-ant feature.
-----------------Progress-----------------
First of all, Good News. I was finally able to build maven and it's
hefty 50+ dependencies from source. Now, it emerges successfully, and
passed the few tests I did. I have waited a little while before
sending this report to ensure that I haven't missed something.
With this, the milestone for the mid-term is complete. In the next
days, I'll be testing the package, and fix the few glitches I find on
the way.
Here's a little description about what I was doing in the last week.
Basically, I have bumped apache-maven and it emerges without any
issue. At testing I have found two issues; one is dependency conflict,
and other is another dependency issue having wrong version.
First issue, the dependency conflict was due to the conflict of maven
deps with the dependencies of the project we are building. Basically,
Apache Maven is a build management tool which take of almost
everything including dependency downloading and handling. Maven uses a
mechanism called shading classes (using maven-shade-plugin) to avoid
these conflicts. Since maven-shade-plugin should be built from maven
itself, we had to find another alternative. Finally, Jarjar came for
the rescue! So, this issue is now fixed.
The full discussion that went with Maven upstream developers can be
found at http://maven.40175.n5.nabble.com/Gentoo-maven-intg-Intermediary-shaded-source-files-generated-by-maven-shade-plugin-td4546889.html
Second issue was due to some misconfiguration and wrong dep of
maven-remote-resources plugin. It failed with ClassNotFoundException
for the class org.codehaus.plexus.velocity.DefaultVelocityComponent
which was in the package plexus-velocity.
After some rigorous period, found that it was due to doxia version,
the which has no particular connection maven-remote-resources plugin!
Anyway, the issue is fixed now.
Full discussion that went with Maven upstream developers can be found at
http://maven.40175.n5.nabble.com/Gentoo-Maven-Intg-plexus-velocity-missing-maven-remote-resources-plugin-fails-with-a-ClassNotFoundExn-td4544174.html
It's been fun and exciting week!
Regards,
--Kasun
--
~~~*******'''''''''''''*******~~~
Kasun Gajasinghe,
University of Moratuwa,
Sri Lanka.
Blog: http://blog.kasunbg.org
Twitter: http://twitter.com/kasunbg
reply other threads:[~2011-07-07 3:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CADg9GQZ=apLfcUd1O++AjkgGvPsobC21MQ0=znoNO02Y0p20PQ@mail.gmail.com' \
--to=kasunbg@gmail.com \
--cc=gentoo-java@lists.gentoo.org \
--cc=gentoo-soc@lists.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