jar --verify operation mode checking mrjar validity
jaikiran at apache.org
Mon Dec 3 06:19:55 UTC 2018
On 02/12/18 3:43 PM, Alan Bateman wrote:
> On 01/12/2018 08:45, Christian Stein wrote:
>> jar --create (and --update) perform type API validation checks when
>> used in
>> combination with --release option. This detects invalid "version
>> at package time, where the API doesn't match a previous one.
>> Having a jar --verify mode that performs the same checks consuming an
>> already existing jar file would be useful as most "3rd-party packaging
>> tools" don't perform those checks.
>> A possible work-around could be to explode an existing jar and
>> re-create it
>> using jar --create...
> I think it would be useful to create a list of the popular tools and
> plugins in the eco system that create or update JAR files and see what
> their current capabilities are. The addition of modules and MR JARs
> have extended the JAR format quite a bit in recent years and it's not
> clear if the eco system has caught up,
FWIW - We (Apache Ant) haven't yet caught up with many of these
changes/enhancements, both in what the Java tools (like jar, jmod
etc...) have introduced, nor in runtime aspects like
multi-release jars. It's going to take us a while to catch up with
these current new enhancements.
More information about the core-libs-dev