From nobody Fri Dec 10 20:09:52 2021 X-Original-To: freebsd-ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 09EFF18E4B66 for ; Fri, 10 Dec 2021 20:10:03 +0000 (UTC) (envelope-from 1983-01-06@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J9hpL0ctMz4ckJ for ; Fri, 10 Dec 2021 20:10:01 +0000 (UTC) (envelope-from 1983-01-06@gmx.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1639166993; bh=z8md3hFC6SRwho8tTKq6E7hpp3ebQtI9Ahdd996DmAU=; h=X-UI-Sender-Class:Date:To:From:Subject; b=BXnJpXp83HhmwKPjqwvk5K6z6Hsc8jHBzffTTG8vRpNkKawdpo/ABc8a22bth9ZoS eR+qhlWTcsmwrkIKqFA3+CGVf5ny+Lh3HzICkbbPrANrQnBIEvqZQ8h/C8hAQazany R1jVOce3gdeOYXbDMv/oCk4U/yLT23L3xnhSODHg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.52] ([84.143.150.76]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MybGX-1mcitQ30nN-00z0vH for ; Fri, 10 Dec 2021 21:09:53 +0100 Message-ID: <0d3735bd-b3ea-c211-cbbe-1654eb253760@gmx.net> Date: Fri, 10 Dec 2021 21:09:52 +0100 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 To: freebsd-ports@FreeBSD.org Content-Language: en-US From: Michael Osipov <1983-01-06@gmx.net> Subject: Re: Building JAVA-applications with maven Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:iT1+u4PthifKaRr4FfwZbjwnM+zujCjEe5NlL94+lufni3+Howo C8hOAxnc8RMcT7AOW2ZA/ourgoIbCkXTpJq4ORFknBv5NG2lPmbJfoa7JbRnJwzECoJaOcW F9roEDnE0baO8m3Iq5I5JRnTHckVkg7ABkPEYScShGa1GS6LlpGSVdlEOLn0Nmz5hwhKBG8 sbo2HKcVuxp0vYEipIEJg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Tz6bzFS1Ppo=:i/UOnBMQZh9XxQiVOWMA/z 8Y1yZFS50yTqXncc27P+D8541y2tT3DVe7P847S9MiRMFbvbuCSIdpcON00aC9s6LVpD1arET 70UwX5pNagcLsG+vl2XkdKdfnEW/9NZhJkkm6npJKyazAu+m6PWgKtQkHhQsxhUbd6fun/Op6 dQuMlhrcmWRSA4ZBfruTQC59I3ByDH990dLW77CUyXM6HYshGn+MhA7WNe8XKRVSUTMEhhTM3 s5Qv91V2vybzUY8bedvgXMtQVjPzPs4w7U/OSzutdSNd7aM0YJmj0GiAHnyf9GXDIugYNi5tG ue5M3t0Op8hYqNWYIOJC63JD94rpYfq9kfjHpKp68zGPJyw2n2L7sZb8Xtai2YvgmsNhEtgzN Ykkj/BR383OZ14vBRBt2HNA5YC+XLBWzYsDAdS/R73q/sVv5oSKwgfuySmFtpL+6V4i7Ycr7G 4UzAihNZUOE3EIpuMHp01T1foQeRD4U8xIXZiJP9E3f+YgI4soyU0TgGhKN7oZ1glnUIFIMnc w8LtXIE17xttjMp4ZqVOx0PcDJ7L21oXckQw2tLGVNdh8Y6l6jyuAk8+K1HoBVrcZlmjvOx50 kFDdOFk4hsnGPuesKHvFuVaplAb9d1W9md3svHSF6hnqeqv9gazFNu+X0y2GMLZMlU8a4tMzK DFevmvQ8kJaz0k6gA0wpRtREpe1JJQhPX8ODbaelFQ6B7FRCww7x47NoHmFgCYeN6tXVRFsCZ +3QIu6OOzQULyV2wGS+jsu4J1isdjyDVsvqIfbsg+EHzqUeT1/XQagqtXkGLoG7jw2YcLRBF2 MyKDSNY51bELP014MxTB8mUCahSTXO2V4/yTm5GLXnL3qQYzLpz+gPicWigZMAbXPFSG7DTDl NejFiC53ZyF1ScXLwWVqBvEneP9QW9FuHdSBRq8YZ9m1osarcz1S+45zrkBkrGmTZJbkx+hyr IiZkdPv4ho94IEYCQV024p7mdpZeF1A7nxswRU1B//fkGvuz/pLLalfMotQD6ypdf2i8RLnqE oO0PbPkVJb1bg2aS56Koz43sPNSpRhPkwVKuNfyAnNXVlXRiYCLhGXlyW7STD4GLZxahkvffI fd00uUkRu7FRDE= X-Rspamd-Queue-Id: 4J9hpL0ctMz4ckJ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.b=BXnJpXp8; dmarc=pass (policy=none) header.from=gmx.net; spf=pass (mx1.freebsd.org: domain of 1983-01-06@gmx.net designates 212.227.17.21 as permitted sender) smtp.mailfrom=1983-01-06@gmx.net X-Spamd-Result: default: False [-2.88 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmx.net]; R_SPF_ALLOW(-0.20)[+ip4:212.227.17.0/27]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmx.net:+]; DMARC_POLICY_ALLOW(-0.50)[gmx.net,none]; RECEIVED_SPAMHAUS_PBL(0.00)[84.143.150.76:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmx.net]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; FAKE_REPLY(1.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmx.net:s=badeba3b8450]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[gmx.net:dkim]; NEURAL_SPAM_SHORT(0.12)[0.116]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.17.21:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N > On 07.06.16 20:46, Kurt Jaeger wrote: >> A Uses/maven.mk sounds non-trivial, but very, very useful, if >> it covers the generic use-case of maven-built ports. > > 4 years later, has anyone done anything on this matter? I may have some > free time later this month, if not... > > I think, creating devel/log4j2 will be a good "test-bed"... Maven PMC here. I highly recommend not doing and I will explain why: The approach to dependencies of Maven, npm, composer, pip goes against an offline build required by the ports system. All py-packages are repackaged to what pip does, this is work. Caching libs and POMs from Maven Central absolutely does not make sense. Both Maven Central and ASF dist use a fully distributed CDN by now. There is no compelling reason to recompile the software at all. All dependencies are available cryptographically signed in Maven Central. If your application uses Maven, it will *not* use the port from the ports system. Repackaging what is in Central is a waste of time, IMHO. Another issue comes with custom build: Many Linux distro dissect or modify blessed packages like Maven or Tomcat beyond recognition and the first thing we ask is: Where did you get Tomcat or Maven? Not from us? GO AWAY. I am currently the maintainer of the Nexus 2 OSS and use the bundle tarball only, I do not even try to compile myself since it gives from a Java PoV no benefit compared to native langs like C/C++/Rust/Go/YOU_NAME_I= T. There are situations where a port makes sense, not necessary recompiled Java code, e.g., a JDBC driver which is loaded into Tomcat and not part of the application or the library requires native code which I would want to compile, e.g., https://github.com/xerial/sqlite-jdbc/issues/495. Looking at https://www.freshports.org/java I am certain that most of those ports can go away. I am happy to step into a discussion if you are interested in. This is me, BTW: http://home.apache.org/phonebook.html?uid=3Dmichaelo Michael