gnodet opened a new pull request, #13603:
URL: https://github.com/apache/maven/pull/13603

   Port of #11948 to `maven-4.0.x`.
   
   ## Changes
   
   - Add `--UA` / `--update-artifacts` CLI flag to force artifacts update 
(always policy)
   - Add `--UM` / `--update-metadata` CLI flag to force metadata update (always 
policy)
   - Add `--artifacts-update-policy <value>` option for fine-grained artifact 
update control
   - Add `--metadata-update-policy <value>` option for fine-grained metadata 
update control
   - New `MavenExecutionRequest.setArtifactsUpdatePolicy()` / 
`setMetadataUpdatePolicy()` API
   - `DefaultRepositorySystemSessionFactory` uses the new policies when set, 
falling back to the existing `-U` / `-nsu` behavior when not
   
   ### Files modified
   
   - `api/maven-api-cli/.../MavenOptions.java` — new `artifactsUpdatePolicy()` 
/ `metadataUpdatePolicy()` methods
   - `impl/maven-cli/.../CommonsCliMavenOptions.java` — CLI option registration 
and implementation
   - `impl/maven-cli/.../LayeredMavenOptions.java` — delegation
   - `impl/maven-cli/.../MavenInvoker.java` — wiring to `MavenExecutionRequest`
   - `impl/maven-core/.../MavenExecutionRequest.java` — interface additions
   - `impl/maven-core/.../DefaultMavenExecutionRequest.java` — implementation
   - `impl/maven-core/.../DefaultRepositorySystemSessionFactory.java` — old/new 
policy dispatch
   - `compat/maven-embedder/.../CLIManager.java` — compat layer constants and 
options
   - `compat/maven-embedder/.../MavenCli.java` — compat layer wiring
   
   Cherry-picked from cf4ec757a8aecba721f427d9ab1964d8b0e3f5ae.
   


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