public inbox for gentoo-soc@lists.gentoo.org
 help / color / mirror / Atom feed
From: Zhang Zongyu <zzy2529420793@gmail.com>
To: "gentoo-soc@lists.gentoo.org" <gentoo-soc@lists.gentoo.org>
Subject: [gentoo-soc] Re: Weekly Report: Big Data Infrastructure and Maven Overlay in Week 4
Date: Mon, 29 Jun 2020 08:56:17 +0800	[thread overview]
Message-ID: <CAMBJAAq5yd0LE-SkO_rZxttumRrLiWUu8kdP9rc+DSkPE+sb0g@mail.gmail.com> (raw)
In-Reply-To: <93a5dde5-ba31-89bd-544b-60d165669111@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1978 bytes --]

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.

> 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

[-- Attachment #2: Type: text/html, Size: 2823 bytes --]

  reply	other threads:[~2020-06-29  0:56 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   ` Zhang Zongyu [this message]
2020-06-29  2:53     ` [gentoo-soc] " EBo
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=CAMBJAAq5yd0LE-SkO_rZxttumRrLiWUu8kdP9rc+DSkPE+sb0g@mail.gmail.com \
    --to=zzy2529420793@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