From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: Need help from Java-developers Date: Sun, 23 Apr 2017 15:57:01 -0700 Message-ID: <87a876pwaq.fsf@gmail.com> References: <58EF611E.6060404@crazy-compilers.com> <8760hvms82.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2QRG-0008M3-IB for guix-devel@gnu.org; Sun, 23 Apr 2017 18:57:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2QRF-0007lE-EH for guix-devel@gnu.org; Sun, 23 Apr 2017 18:57:06 -0400 Received: from mail-it0-x234.google.com ([2607:f8b0:4001:c0b::234]:36372) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2QRF-0007lA-A2 for guix-devel@gnu.org; Sun, 23 Apr 2017 18:57:05 -0400 Received: by mail-it0-x234.google.com with SMTP id g66so37533978ite.1 for ; Sun, 23 Apr 2017 15:57:05 -0700 (PDT) In-Reply-To: <8760hvms82.fsf@gmail.com> (Chris Marusich's message of "Sun, 23 Apr 2017 01:41:01 -0700") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Hartmut Goebel Cc: guix-devel --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Chris Marusich writes: >> o How to make the maven-build-system to never ever include other >> jar? Perhaps we need to post-process the generated jars. > > Speaking of JAR files, shouldn't we try to avoid them entirely? My > understanding is that they are compressed files, which means the Guix > daemon won't be able to scan them for references. I don't know if it's > easy to use Maven to build a project without putting the build output > into a JAR file, though. For the record, I looked into this a little more. I was mistaken: JAR files are not necessarily compressed. In fact, it seems [1][2] that it should always be possible to make un-compressed JARs. So, perhaps the Guix daemon will not have trouble scanning JARs for references, after all. (Whether or not any references will actually be retained in the JARs produced by Maven is another question; I don't know the answer.) [1] "The special value 0 instructs the packer to copy through the original JAR file directly, with no compression. The JSR 200 standard requires any unpacker to understand this special case as a pass-through of the entire archive." https://docs.oracle.com/javase/8/docs/api/java/util/jar/Pack200.Packer.html= #EFFORT [2] "(Zero) Creates (c) or updates (u) the JAR file without using ZIP compression.": https://docs.oracle.com/javase/8/docs/technotes/tools/windows/jar.html =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlj9MT0ACgkQ3UCaFdgi Rp1gMRAAxyWiT/YjtEkUEQQWHTt2YCgNNZF8ACXXjUlgHz7cg0dDy8LDVNsk3CvQ VLfXwDuHE7nln5Yuf3C4PLFi1haMLToWsp+ov7PaYBeDSeF71Qfi21tnSV+KRJSi YzYNHqiCMZ++hOb2apiW1y6on1YVyMAvAAp+0AbeNlCOXvoEHvg6DJ3oX24Zu8PU V+TW6u2mrda2MzkTS+VYcRJZ2c266hhXIRHfSqU/mtUV73sO3Wkn4koT7QujtRoI jVZ644sGZYR+lnr0bvLbmvqvCWqaH+iKQXD2hMS8S8aSxS0JVFueIJgMUuLz3GG1 ONFQwEfBjkA1iImbM9iyY4LfhqCkKd3UW6hIs9b/Cn3NBxKPzNets+pBB59FlTZS g9cAAqVDwHnZk8+iacxjQlCUPwqQ+OkP/IaSNkRWrjHO8XRmbyxXT5lnt14hx3/T Xlgw8SNW1z7DktsOzY4D7S0caz+6bCBYRtrbwYBzfSO1zXf4HLda/PWeJK4oi4fU 7cjcJu6gIoYZuIqBpSDHXe/mSswVLbgoa2pXPRcOvtuLKpEzNcKQnRW5CL1MvEJP ktdArvGLI49Yb08XH3WApKH0sZvHye3cMod7WgdTm02elvZDLbXCAgOQyItUJ/fi TFiYHIGkmJLkagahZtUp0stoHHaI5pATHxJhKo0Ye04Xp5wWHRU= =xvrU -----END PGP SIGNATURE----- --=-=-=--