Fine to remove it from my PoV

On Friday, 6 March 2026 at 10:07:37 UTC James Nord wrote:

> Hi all,
>
> Currently the maven-hpi-plugin has a way to override the scopes for 
> plugins to include when doing a `hpi:run`.
>
> However the only way to configure this is to edit the pom as the config is 
> not bound to a property.
>
> To that end I opened up 
> https://github.com/jenkinsci/maven-hpi-plugin/pull/877 however as stated 
> in this PR I am not convinced this is a good thing for the following 
> reasons:
>
> 1) its too coarse grained, what about when someone does or doesn't want 
> `optional` dependencies included (and optioanl transitive deps of 
> plugins..)? (this would be a future enhancement I am not proposing at this 
> time)
> 2) we have to maintain code that is exactly what maven would be using
> 3) I found very few users of this config in the jenkins github repo.  (may 
> are obsolete plugins, several just set the default anyway, and others set 
> it but had no need to as they had no test scoped dependencies.
>
> So, the alternative is to just remove this code.  This also would affect 
> the `custom-war` mojo, but I would say if you want a different dependency 
> set there then use a `profile` rather than scope for management.
>
> Would anyone see any reason not to remove being able to specify the scope 
> at all?
>
> /James
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/jenkinsci-dev/98915b1b-1e4b-4656-90b9-bd9dac26aa59n%40googlegroups.com.

Reply via email to