From: Kasun Gajasinghe <kasunbg@gmail.com>
To: "gentoo-soc@lists.gentoo.org" <gentoo-soc@lists.gentoo.org>
Subject: Re: [gentoo-soc] [GSoC] Maven integration for Gentoo ebuilds
Date: Wed, 30 Mar 2011 10:41:54 +0530 [thread overview]
Message-ID: <AANLkTim_UDpSkSwLwJTSF7_qMCV-9kigWMj2UUfrDWOE@mail.gmail.com> (raw)
In-Reply-To: <1720E82E-2E96-4B08-BD53-EEF092200AE7@gmail.com>
On Tue, Mar 29, 2011 at 8:41 PM, Kasun Gajasinghe <kasunbg@gmail.com> wrote:
>
>
> On 29 Mar 2011, at 09:37, Serkan Kaba <serkan@gentoo.org> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 29-03-2011 06:47, Kasun Gajasinghe wrote:
>>>
>>> I'd like to know how the dependencies will be handled by maven based
>>> ebuilds. Can you let me know the difference between dependencies
>>> specified in Maven's POM file, and ebuild's dependencies? Are both
>>> should be same? Since, Maven's POM contains the unique artifacts IDs
>>> (with the combination of groupId, artifactId, version) which points to
>>> a _binary_ jar, how should the developers who write _ebuilds_ specify
>>> it? I got to know that dependencies are also ebuilds under gentoo i.e.
>>> no binaries.
>>
>> POM dependencies can be too restrictive sometimes, like depending on a
>> specific version. We should be depending on any version (or sometimes
>> with >=,<=) as long as the package compiles and runs fine with it.
>
> I've come across a package called JPackage which does the job of retrieving
> a jar from /usr/share/java and return it to use by maven. It neglects the
> version numbers as well.
>
>
>>> I've been going through the Ralph's (nick: sera ) suggested eclass
>>> [1]. It turned out to be very useful. (sera, I got your name from [1],
>>> hope it's correct! :) ). Because maven offline building is the biggest
>>> issue Gentoo is currently facing, As Petteri suggested, I've been
>>> going through to see how other distributions handle this. I see that
>>> both in sera's eclass and in Debian's MavenRepoSpec [2], that they
>>> specify a variable which points to a maven local-repository location.
>>> Ralph's eclass specified MAVEN_REPO_DIR="${T}/maven-repo/" while
>>> Debian has REPO=/usr/share/maven-repo. Since the file-system will be
>>> read-only for ebuilds, and ebuilds should be built offline, what's the
>>> purpose of this?
>>
>> We then still need to add symlinks to jars during build time in there
>> which is an "access violation" in sand box
>
> Ok. Then the viable option is to have to generate the maven directory
> structure inside a folder named ${T}/maven-repo. We can do the symlinking
> through that, and we won't face any access violation since the writing
> happens in the sandbox.
> Ubuntu too have proposed a similar solution. I'm away from my machine, I'll
> provide the links to it as well as for the JPackage soon if it you all may
> want to check it out!
For the JPackage see [1]. [1] doesn't give a formatted output though.
Properly formatted version is to [2]
Ubuntu's maven support specification is at [3].
I've started writing a proposal. I'll upload it to melange, when it
comes to a good state.
[1] http://www.jpackage.org/cgi-bin/viewvc.cgi/jpackage/src/jpackage-utils/doc/jpackage-1.5-policy.xhtml?revision=1.2&view=markup
[2] http://dl.dropbox.com/u/4783109/gentoo-maven-integration/read/%5Bjpackage%5D%20Contents%20of%20%20src%20jpackage-utils%20doc%20jpackage-1.5-policy.html
[3] https://wiki.ubuntu.com/JavaTeam/Specs/MavenSupportSpec
Thanks,
--Kasun
>
> Thanks,
> Kasun
>
>>
>> - --
>> Sincerely,
>> Serkan KABA
>> Gentoo Developer
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v2.0.17 (GNU/Linux)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAk2RWvIACgkQRh6X64ivZaLfkgCfVF99iZaa6Pa+dTlC4cjuLvZd
>> ILkAn34OooCvrNy6uu9yEg4bua/q7X6G
>> =staW
>> -----END PGP SIGNATURE-----
>>
>
>
--
~~~*******'''''''''''''*******~~~
Kasun Gajasinghe,
University of Moratuwa,
Sri Lanka.
Blog: http://kasunbg.blogspot.com
Twitter: http://twitter.com/kasunbg
next prev parent reply other threads:[~2011-03-30 6:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-29 15:11 [gentoo-soc] [GSoC] Maven integration for Gentoo ebuilds Kasun Gajasinghe
2011-03-30 5:11 ` Kasun Gajasinghe [this message]
2011-04-06 19:36 ` Kasun Gajasinghe
-- strict thread matches above, loose matches on Subject: below --
2011-03-29 15:32 Kasun Gajasinghe
2011-03-25 18:20 Kasun Gajasinghe
2011-03-26 20:35 ` Brian Dolbec
2011-03-26 20:54 ` Serkan Kaba
2011-03-27 5:09 ` Kasun Gajasinghe
2011-03-27 8:29 ` Petteri Räty
2011-03-29 3:47 ` Kasun Gajasinghe
2011-03-29 4:07 ` Serkan Kaba
2011-03-29 9:12 ` Petteri Räty
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=AANLkTim_UDpSkSwLwJTSF7_qMCV-9kigWMj2UUfrDWOE@mail.gmail.com \
--to=kasunbg@gmail.com \
--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