I like the regex idea but wildcard (*) does not work well due to common
shell expansion (or it already works but it is outside of maven scope to be
concrete).

My 2cts would be that, to be honest, I think we all lead to have aliases in
maven for potentially very long commands (there was some threads about it),
CLI then just needs to enable to activate/deactivate things, not to be
clever and it would enable all combination without any behavior change nor
new option IMHO. Concretely "mvn alias:bd" would run "mvn -pl foo/bar -pl
foo/dummy" for example. Thinking out loud it can be done with a plugin
already so can maybe give a try if it sounds like a good idea for others
too.

Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://rmannibucau.metawerx.net/> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book
<https://www.packtpub.com/application-development/java-ee-8-high-performance>


Le sam. 20 févr. 2021 à 14:40, Falko Modler <f.mod...@gmx.net> a écrit :

> Thanks for the quick reaction/answers!
>
> TBH, I haven't fully understood why -N cannot be used here. I do
> understand that -N reduces the reactor to one project (before project
> selection via -pl can kick in).
> But what if -N wouldn't be applied if -pl is present? It would then become
> a "secondary" option, only applying to the projects selected or deselected
> via -pl.
>
> However, the most flexible and fully backwards compatiple solution would
> indeed be something like -plr as suggested before. You could then also mix
> and match -pl and -plr.
>
> Btw, half offtopic: I proposed [1] to add ? to -pl and in that context I
> also thought about wildcard support for -pl, but Robert didn't like the
> idea.
> I'm just thinking whether -pl foo/* might be something that could help
> here as well, but it wouldn't be trivial to do, I suppose.
> PS: -help doesn't mention ! at all.
>
> [1] https://issues.apache.org/jira/browse/MNG-6511
>
> Cheers,
> Falko
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>
>

Reply via email to