[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need help from Java-developers
From: |
Chris Marusich |
Subject: |
Re: Need help from Java-developers |
Date: |
Sun, 23 Apr 2017 15:57:01 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Chris Marusich <address@hidden> 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
--
Chris
signature.asc
Description: PGP signature
- Need help from Java-developers, Hartmut Goebel, 2017/04/13
- Re: Need help from Java-developers, Chris Marusich, 2017/04/23
- Re: Need help from Java-developers,
Chris Marusich <=
- JARs and reference scanning (was: Need help from Java-developers), Hartmut Goebel, 2017/04/25
- Re: JARs and reference scanning, Chris Marusich, 2017/04/26
- store reference detection (was Re: JARs and reference scanning), Thomas Danckaert, 2017/04/26
- Re: store reference detection (was Re: JARs and reference scanning), Maxim Cournoyer, 2017/04/26
- Re: store reference detection (was Re: JARs and reference scanning), Ludovic Courtès, 2017/04/27
- Re: store reference detection, Thomas Danckaert, 2017/04/27
- Re: store reference detection (was Re: JARs and reference scanning), Hartmut Goebel, 2017/04/27
Re: Need help from Java-developers, Ricardo Wurmus, 2017/04/25