The link tells us that -P
indicates under which profile Maven should work. Projects can define several profiles, which can depend on different dependencies, so this is necessary if you have a project that can do this.
I did not encounter the -P
flag in practice, and it does not seem to exist in modern versions of Maven.
source share