From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0BE7F1382C5 for ; Mon, 29 Jun 2020 00:56:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BAFE8E09C2; Mon, 29 Jun 2020 00:56:56 +0000 (UTC) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 41766E09C2 for ; Mon, 29 Jun 2020 00:56:56 +0000 (UTC) Received: by mail-wr1-x42f.google.com with SMTP id g18so14891790wrm.2 for ; Sun, 28 Jun 2020 17:56:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=HL9y1ix7lF3qLcNodUhtYbULZzTrA7Zlu/lFQlJrkto=; b=AHQ6rhb3xFh1Kn6B892i25zzYfhfLSaa8dIo/hKUJxlxQ2Dx1Bfs1XsE1jYSZto8sr RsbzssLCCtPukCGDzegjdQVXV3D9bm6Y7B0t4rcW1F9VcqooM5vHMmL5lB81poI/NzSP owKVJ8hRsPZTI3YKhaI+WhwXEYRfo8Yq1mSqPh9R2JFZVj95Lssn7p5db6ntkPTx0irg 8mp8chhPXNFF/7cvJ0l8tkQgMDpqkw6JFeye41YlTB0FRc8BWUkHF4j5XJfkFAkd9BR9 ZJlG6CmiMqeSwQTZTHuTusMz03JxGCCu7E/UC9nxpDl7f1NE8/fxdVeC6+1qCzZRTigj Fxbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=HL9y1ix7lF3qLcNodUhtYbULZzTrA7Zlu/lFQlJrkto=; b=d369XctLRVLlmkgCai5bjV96I0Ak6DdRD9RboceAiwVvQrt0+jwfCpscT2IfQuH/4I oVTT4lh1e1ZW32JRGWW+1BHAR31QHH/55iTmNobsSRTxhFF2v/U5opfWVAMXFujPH+2Q Nn9mxzZXRliTriJ3iWwFnzzW9AForzwbnBwk+oL2Pzhh1ta2YYv4lt1t/ff1kR+MXsR8 TW9P/9JVnPmMmuub2zF78bxp65vejI9ylo0V4aZc+WDl3yDpHjSpBg5/2aJyJFsE9WjQ RDPuZUUxigHtEhR7JsReBkZL0Us+IGXRPwiA3INOXOBP2fQANkhYKABN7Ztg/8WPvJAP d3lQ== X-Gm-Message-State: AOAM530n2VbI2z2XAtzHZPYLPIQL24Xk0w5ny62ORM8m0SXveiIkA7+S lSdbx1sLBQuoypQe8bx+cGcIwMS09c/5Hxh5pDcA5FDWbTcN1g== X-Google-Smtp-Source: ABdhPJy6INFj6IHmGo5HNg3fyIH22y1FfDE6TcAQJoewtawVt9005w4WXVGdZbjUqUbY6MLlDFoQS92XS3/EEbZbShs= X-Received: by 2002:adf:e948:: with SMTP id m8mr15029688wrn.398.1593392214634; Sun, 28 Jun 2020 17:56:54 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-soc@lists.gentoo.org Reply-to: gentoo-soc@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <93a5dde5-ba31-89bd-544b-60d165669111@gmail.com> In-Reply-To: <93a5dde5-ba31-89bd-544b-60d165669111@gmail.com> From: Zhang Zongyu Date: Mon, 29 Jun 2020 08:56:17 +0800 Message-ID: Subject: [gentoo-soc] Re: Weekly Report: Big Data Infrastructure and Maven Overlay in Week 4 To: "gentoo-soc@lists.gentoo.org" Content-Type: multipart/alternative; boundary="000000000000f0f62705a92e88ee" X-Archives-Salt: 0dce93c9-9acb-4ec4-b0e0-7bdd9aa4de7e X-Archives-Hash: 6351f5565632b3a44b79d53f3484b816 --000000000000f0f62705a92e88ee Content-Type: text/plain; charset="UTF-8" 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 --000000000000f0f62705a92e88ee Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

> Are you _sure_ that= 9;s the case?

I would say Yes. The circular de= pendency originates from pom files, but
the problem is that I can= not find a portage equivalent of some maven features
(that is &qu= ot;exclusion" exactly).

> These proje= cts are using Maven to build, test and upload artifacts
> to M= aven central, how can it not compile?

This is weir= d. I encountered net.sf.kxml:kxml2:2.3.0, which does
not declare = any dependencies.
But it turns out to depend on=C2=A0xmlpull:xmlp= ull, I need to manually
add it and make=C2=A0net.sf.kxml:kxml2:2.= 3.0 able to compile.

> Did you chec= k out a stable commit?

I am sorry that I am not su= re what the stable commit stands for.
Does that mean Maven artifa= cts always have a stable commit?
Could you please tell me where c= an I find it?

> Did you set the proper Maven pr= ofile?

I do not set a Maven profile, and I believe= it should be the default one.

> Are you invoki= ng Maven the same way upstream is?

No, I am trying= to translate pom into ebuild, which is an important
part of my G= SoC.

> Please elaborate.

Here is a set of pom files leading to circular deps:
= org.codehaus.groovy:groovy-all:2.5.12=C2=A0depends on org.codehaus.groovy:g= roovy:2.5.12,
while=C2=A0org.codehaus.groovy:groovy:2.5.12 depend= s on org.codehaus.gpars:gpars:1.2.1,
while=C2=A0org.codehaus.gpar= s:gpars:1.2.1=C2=A0depends on=C2=A0org.codehaus.groovy:groovy-all:2.5.12.

But in pom of groovy, it excludes groovy-all with t= he "exclusion" attribute.
It means that the gpars that = groovy depends on is not depending on groovy-all now.
So the circ= ular dep gets broken in Maven.

The problem is that= portage cannot deal with things like "exclusion", so we cannot a= void the circumstance of circular deps.

Do y= ou 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
[2] java-ebuilder which tran= slates pom files into ebuild files.
--000000000000f0f62705a92e88ee--