[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [eclipse.org-architecture-council] about_files and JPMS
- From: "Hudalla Kai (INST/ECS4)" <kai.hudalla@xxxxxxxxxxxx>
- Date: Wed, 28 Aug 2019 11:30:02 +0000
- Accept-language: en-US, de-DE
- Delivered-to: email@example.com
- Thread-index: AQHVXQ/r1Vbxufxi3keM7MxawR/ImKcQTDSA
- Thread-topic: [eclipse.org-architecture-council] about_files and JPMS
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0
On 27.08.19 21:44, Gunnar Wagenknecht wrote:
> Greetings AC Members,
> Please find an interesting issue below. It looks like out beloved
> "about_files" folder in jar files is causing issues in Java modules.
> As a workaround, there is a recommendation to rename it from
> "about_files" to "about-files". For a final solution, I wonder if we can
> get rid of this requirement for jar files altogether. Most other
> projects I work with include a license file in their final
> product/distribution but not in every single jar file.
The Hono (IoT) project indeed includes the legal docs in each jar file
that we distribute. I think it makes it easier for people and tooling to
determine the license that the jar can be consumed under. We put all the
legal docs into the META-INF folder ...
> Gunnar Wagenknecht
> gunnar@xxxxxxxxxxxxxxx <mailto:gunnar@xxxxxxxxxxxxxxx>, http://guw.io/
>> Begin forwarded message:
>> *From: *bugzilla-daemon@xxxxxxxxxxx <mailto:bugzilla-daemon@xxxxxxxxxxx>
>> *Subject: **[Bug 550376] [JUnit 5] Cannot run Jupiter tests in a
>> project with module-info.java after upgrade to JUnit 5.5.1*
>> *Date: *August 27, 2019 at 21:14:54 GMT+2
>> *To: *gunnar@xxxxxxxxxxxxxxx <mailto:gunnar@xxxxxxxxxxxxxxx>
>> Product/Component: JDT / UI
>> --- Comment #24 from Stephan Herrmann <stephan.herrmann@xxxxxxxxx> ---
>> We have something like a recommendation from Alan Bateman in 
>> Forging the list of packages to exclude a given folder doesn't seem to be
>> supported without hacking the jar tool, but:
>> "The top-level directory or a location such as META-INF/legal will work of
>> So, we have some kind of blessing also for "about-files". It solves the
>> problem, because this folder is not seen as a package, hence JPMS has
>> to check and hence the boot layer has no reason to blow up.
>> Conversely, by saying "about_files/EPL.html" we create an "encapsulated"
>> package "about_files", where "encapsulated" doesn't live up to its
>> promise in a
>> single-classloader runtime, which will and does blow up.
>> You are receiving this mail because:
>> You are on the CC list for the bug.
> eclipse.org-architecture-council mailing list
> IMPORTANT: Membership in this list is generated by processes internal to the Eclipse Foundation. To be permanently removed from this list, you must contact emo@xxxxxxxxxxx to request removal.
Mit freundlichen Grüßen / Best regards
Chief Software Architect
Bosch Software Innovations GmbH
Registered Office: Berlin, Registration Court: Amtsgericht
Charlottenburg; HRB 148411 B
Chairman of the Supervisory Board: Dr.-Ing. Thorsten Lücke;
Managing Directors: Dr. Stefan Ferber, Michael Hahn, Dr. Aleksandar Mitrovic