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

Reply via email to