Search code examples
mavenmaven-plugin

how to disable other maven phases like we do with maven.test.skip=true?


my first.

I am looking for a way to disable maven resource and jar plugin phases from command line specifically, something like -Dmaven.test.skip=true which seems to disable maven-surefire-plugin:version:test

-Dmaven.{jar,resource}.skip=true kind of.

Is this possible ?


Solution

  • For dependency plugin use maven.resources.skip property.

    Regarding maven jar plugin, it seems there is not a similar property, but in the links below you may find alternatives.

    Link1 and link2