desruisseaux commented on issue #586:
URL: 
https://github.com/apache/maven-jar-plugin/issues/586#issuecomment-5314486462

   With #508, one possible approach would be to use the new `toolId` field 
which has been added as a side effect of that work. If this field is set to a 
non-null value, the plugin searches for a `java.util.spi.ToolProvider` 
implementation of that name. Alternatively, Eclipse (for example) could also 
override the `AbstractJarMojo.getJarTool()` method and returns directly their 
own `ToolProvider` instance.
   
   The plugin invokes `ToolProvider.run(in, out, args)` where `args` is all 
arguments given to the tool. Therefore, a `ToolProvider` implementation could, 
for example, search for the `--manifest` option and do its own stuff with the 
`MANIFEST.MF` file instead of generating the JAR file.


-- 
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