laeubi opened a new issue, #586:
URL: https://github.com/apache/maven-jar-plugin/issues/586

   ### New feature, improvement proposal
   
   Currently the jar goal mixes effectively two things:
   
   1. Generation of descriptors (controlled by `addMavenDescriptor`) and a 
Manifest (with possibly customization like `manifestEntries` and `manifestFile`)
   2. the actual packaging of things into a physical jar file (e.g `compress` 
option)
   
   This has some limitations that surface at different levels:
   
   - Tools like bnd / felix-bundle-plugin / Tycho can't intercept without 
special configurations
   - There is no way to generate the metadata files to be used elsewhere (e.g. 
in an IDE - m2e uses reflection to only call the generation part of the mojo 
and not package a full jar) or further processed
   
   If there where split into different mojos (e.g. one `generate` and one `jar` 
mojo) it would be possible to bind the first to the `prepare-package` and the 
later to the `package` phase allowing other plugins to further customize/use 
the data before it is being packed.
   
   Since Maven 4 even allows interleaving phases this could then even be more 
flexible, e.g. another plugin that only needs the manifest data but not 
necessarily the full packaged physical jar could use this before the heavy 
weight jar packaging happens. It would also be a good time to do a major 
release with that change tailored to Maven 4.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to