Skip to content

[MSOURCES-148] The plugin should respect the --update-snapshots for final versions #214

Open

Description

@jira-importer

Benjamin Muschko opened MSOURCES-148 and commented

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.


No further details from MSOURCES-148

Activity

  1. jira-importer commented on May 11, 2024

    @jira-importer
    Author

    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-dependencies for Maven ... where you use such argument?

  2. jira-importer commented on May 13, 2024

    @jira-importer
    Author

    Benjamin Muschko 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()) {
            ...
             }

    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions