[jira] [Commented] (MSOURCES-148) The plugin should respect the --update-dependencies for final versions

2024-05-13 Thread Benjamin Muschko (Jira)


[ 
https://issues.apache.org/jira/browse/MSOURCES-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17845896#comment-17845896
 ] 

Benjamin Muschko commented on MSOURCES-148:
---

I can work on an example project and post it here. I am talking about this 
flag. Sorry, I misspelled the flag in my initial posting.

{{ -U,--update-snapshots                  Forces a check for missing}}
{{                                        releases and updated snapshots on}}
{{                                        remote repositories}}

 

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

> The plugin should respect the --update-dependencies for final versions
> --
>
> Key: MSOURCES-148
> URL: https://issues.apache.org/jira/browse/MSOURCES-148
> Project: Maven Source Plugin
>  Issue Type: New Feature
>Reporter: Benjamin Muschko
>Priority: Major
>
> Executing the build with the flag {{--update-dependencies}} 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (MSOURCES-148) The plugin should respect the --update-dependencies for final versions

2024-05-11 Thread Slawomir Jaranowski (Jira)


[ 
https://issues.apache.org/jira/browse/MSOURCES-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17845552#comment-17845552
 ] 

Slawomir Jaranowski commented on MSOURCES-148:
--

[~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?

> The plugin should respect the --update-dependencies for final versions
> --
>
> Key: MSOURCES-148
> URL: https://issues.apache.org/jira/browse/MSOURCES-148
> Project: Maven Source Plugin
>  Issue Type: New Feature
>Reporter: Benjamin Muschko
>Priority: Major
>
> Executing the build with the flag {{--update-dependencies}} 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)