If you configure a constant value in your POM then that takes precedence over values from the command-line.
If you want to make the value configurable on the command-line and have a default value in your POM then the recommended approach is to introduce a property: <properties> <some-key>some-default-value</some-key> </properties> <plugin> <groupId>org.example</groupId> <artifactId>some-maven-plugin</artifactId> <configuration> <some-key>${some-key}</some-key> </configuration> </plugin> https://issues.apache.org/jira/browse/MNG-4979 On Thu, 10 Sep 2020 at 19:27, Oliver B. Fischer <o.b.fisc...@swe-blog.net> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > > Dear all, > > I always believed that the commandline parameters for a Maven plugin > have a higher priority then the values configured in the configuration > element of a plugin configuration. > > But now I have the problem, that we can't overwrite the plugin > configuration in the POM by commandline parameters. This behaviour is > reproducable and I have written tests for this. > > Am I wrong or did I misunderstand something and the current behavior is > correct? > > Oliver > > BTW, we currently use org.apache.maven:maven-core:jar:3.5.0 > > > - -- > N Oliver B. Fischer > A Schönhauser Allee 64, 10437 Berlin, Deutschland/Germany > P +49 30 44793251 > M +49 178 7903538 > E o.b.fisc...@swe-blog.net > S oliver.b.fischer > J oliver.b.fisc...@jabber.org > X http://xing.to/obf > -----BEGIN PGP SIGNATURE----- > > iQIzBAEBCAAdFiEEU7j685HGR9cAsMGwB88X6wLziPwFAl9ab/0ACgkQB88X6wLz > iPzpEw/9HnZRnvHHaT9Wkx9COlezKsucpoQIlqFb8b8LGO6OaS1Eo0BGGEO9qz+V > BeuPoBRUN0gPSufPehuM/X6yHPyczGIM/gUx8AahRqIVPysUBBVsTHIh9/RAH6fI > zS9ToTFissHfhzFshHafb39OD/EeZ/ftt8k20BfI5b7qkfIjytvYHsaFFY9ZVNhk > H3wKzbdvZ6EcG9hx3UjglLAQKWwyMDzVUDqp3P5Be/KDfSmmAPAqjwj0UKm8/E+6 > p9QhrCgHOHKcKPOtXeScYS3RykkDNFoKUbPtsfmPQxNHtfjO6VkBvDNUsoDcf/He > 3maEoJ7JxpUak0tU8Y87DJv8MLVsSkwhgIzmXpQR/MK8YJBkXpmNd2K4l1GVlro0 > nFkjhVwgya39pt6B0m8EEIPQZhErGVrwqMPkWKaFShiDIz/meav1BVVWuiClYpBn > +uMCwOYM+0AnR609EvUNEBcd5HtO7Su2CSnKQkGRuOlPZ1A0QhCTCEcrV69QVb4P > M6/vIyVo2R6ZZXWYX00bYwVED92XpdO9peRdrW92TjTGdWHK2j5FqKntiIB99QuY > ekHTnVTVif8bMZplts3S1pY8Qeo/NdxbJ1Bu97VMCo5x7NUi+5qUCwhGlmgN9u3c > B0hoyiJa0+2CES980J1XrmlcK+JUeHWnfiEfutvZCpmbUxnnIkg= > =VP64 > -----END PGP SIGNATURE----- > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >