You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[MSOURCES-148] The plugin should respect the --update-snapshots for final versions #214
Executing the build with the flag --update-snapshots should only update SNAPSHOT dependencies. The plugin doesn't seem to evaluate this flag. Running the build with the flag will update SNAPSHOT and final dependencies leading to a much longer build time.
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:
Activity
jira-importer commentedon May 11, 2024
Slawomir Jaranowski commented
Benjamin Muschko 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-dependenciesfor Maven ... where you use such argument?jira-importer commentedon May 13, 2024
Benjamin Muschko commented
I can work on an example project and post it here. I am talking about the flag
-Uaka{}\-\-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()) {...}
}