Re: [I] [MSOURCES-148] The plugin should respect the --update-snapshots for final versions [maven-source-plugin]

2025-06-10 Thread via GitHub


jira-importer commented on issue #214:
URL: 
https://github.com/apache/maven-source-plugin/issues/214#issuecomment-2959557878

   **[Slawomir 
Jaranowski](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=slawekjaranowski)**
 commented
   
   [Benjamin 
Muschko](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bmuschko) 
Can you show an example project?
   
   The Maven plugins does not support cli arguments ... it is recognized by 
Maven executing 
   
   But I don't see an argument `--update-dependencies` for Maven ... where you 
use such argument?
   


-- 
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: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [I] [MSOURCES-148] The plugin should respect the --update-snapshots for final versions [maven-source-plugin]

2025-06-10 Thread via GitHub


jira-importer commented on issue #214:
URL: 
https://github.com/apache/maven-source-plugin/issues/214#issuecomment-2959557894

   **[Benjamin 
Muschko](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bmuschko)**
 commented
   
   I can work on an example project and post it here. I am talking about the 
flag `-U` aka `{}\-\-update\-snapshots{`}. Sorry, I misspelled the flag in my 
initial posting.
   
   You can access Maven runtime configuration via the following code for 
example:
   
   `@Parameter(defaultValue = "${session}", readonly = true)`
   `private MavenSession session;`
   
   `public void execute() {`
   `    if (session.getRequest().isNoSnapshotUpdates()) {`
   `        ...`
            }
   
   }
   


-- 
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: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org