gnodet opened a new pull request, #611:
URL: https://github.com/apache/maven-jar-plugin/pull/611

   ## Summary
   
   Fixes [MJAR-267](https://issues.apache.org/jira/browse/MJAR-267): allow 
`addDefaultImplementationEntries` and `addDefaultSpecificationEntries` to be 
toggled via command-line properties without requiring `<archive><manifest>` XML 
configuration.
   
   ## Changes
   
   Adds two new `@Parameter` fields to `AbstractJarMojo` backed by system 
properties:
   
   - `maven.jar.manifest.addDefaultImplementationEntries` → adds 
`Implementation-Title`, `Implementation-Version`, `Implementation-Vendor`
   - `maven.jar.manifest.addDefaultSpecificationEntries` → adds 
`Specification-Title`, `Specification-Version`, `Specification-Vendor`
   
   ### Usage
   
   ```
   mvn package -Dmaven.jar.manifest.addDefaultImplementationEntries=true
   mvn package -Dmaven.jar.manifest.addDefaultSpecificationEntries=true
   ```
   
   The CLI property **overrides** any value in `<archive><manifest>` XML 
configuration. When not set on the CLI, the XML configuration (or its default 
of `false`) applies unchanged — fully backward-compatible.
   
   ## Testing
   
   Added `src/it/MJAR-267` integration test that verifies both manifest entry 
sets appear in the built JAR when the properties are passed via `invoker.goals` 
— no XML configuration in the IT pom.
   


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