From: EBo <ebo@sandien.com>
To: <gentoo-soc@lists.gentoo.org>
Subject: Re: [gentoo-soc] Re: Weekly Report: Big Data Infrastructure and Maven Overlay in Week 4
Date: Sun, 28 Jun 2020 20:53:22 -0600 [thread overview]
Message-ID: <cdc0bae2275392df532f111eb5967210@mail.swcp.com> (raw)
In-Reply-To: <CAMBJAAq5yd0LE-SkO_rZxttumRrLiWUu8kdP9rc+DSkPE+sb0g@mail.gmail.com>
On Jun 28 2020 6:56 PM, Zhang Zongyu wrote:
> Hello,
>
>> Are you _sure_ that's the case?
>
> I would say Yes. The circular dependency originates from pom files,
> but
> the problem is that I cannot find a portage equivalent of some maven
> features
> (that is "exclusion" exactly).
>
>> These projects are using Maven to build, test and upload artifacts
>> to Maven central, how can it not compile?
>
> This is weird. I encountered net.sf.kxml:kxml2:2.3.0, which does
> not declare any dependencies.
> But it turns out to depend on xmlpull:xmlpull, I need to manually
> add it and make net.sf.kxml:kxml2:2.3.0 able to compile.
Sorry if it is inappropriate to interject here, but there are 'use'
flags and dependencies defined in the profile. My guess it is in there
some place. On my system (with set to
default/linux/amd64/17.0/desktop/plasma) and it includes a lot of things
like X. Maybe this will help.
>> Did you check out a stable commit?
>
> I am sorry that I am not sure what the stable commit stands for.
> Does that mean Maven artifacts always have a stable commit?
> Could you please tell me where can I find it?
>
>> Did you set the proper Maven profile?
>
> I do not set a Maven profile, and I believe it should be the default
> one.
>
>> Are you invoking Maven the same way upstream is?
>
> No, I am trying to translate pom into ebuild, which is an important
> part of my GSoC.
>
>> Please elaborate.
>
> Here is a set of pom files leading to circular deps:
> org.codehaus.groovy:groovy-all:2.5.12 depends on
> org.codehaus.groovy:groovy:2.5.12,
> while org.codehaus.groovy:groovy:2.5.12 depends on
> org.codehaus.gpars:gpars:1.2.1,
> while org.codehaus.gpars:gpars:1.2.1 depends
> on org.codehaus.groovy:groovy-all:2.5.12.
>
> But in pom of groovy, it excludes groovy-all with the "exclusion"
> attribute.
> It means that the gpars that groovy depends on is not depending on
> groovy-all now.
> So the circular dep gets broken in Maven.
>
> The problem is that portage cannot deal with things like "exclusion",
> so we
> cannot avoid the circumstance of circular deps.
>
> Do you have any suggestions? And Thank you in advance.
>
> Regards,
> Zhang Zongyu
>
> [1] an Overlay of ebuild files from Maven artifacts, if you are
> interested
> in
> https://github.com/6-6-6/spark-overlay
> [2] java-ebuilder which translates pom files into ebuild files.
> https://github.com/6-6-6/java-ebuilder
next prev parent reply other threads:[~2020-06-29 2:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-28 15:23 [gentoo-soc] Weekly Report: Big Data Infrastructure and Maven Overlay in Week 4 Zhang Zongyu
2020-06-28 20:44 ` Ján Zahornadský
2020-06-29 0:56 ` [gentoo-soc] " Zhang Zongyu
2020-06-29 2:53 ` EBo [this message]
2020-07-01 7:42 ` [gentoo-soc] " Benda Xu
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=cdc0bae2275392df532f111eb5967210@mail.swcp.com \
--to=ebo@sandien.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