Search code examples
mavengruntjsmaven-pluginpom.xmlexec-maven-plugin

Maven exec plugin skip parameter


I have maven exec plugin in my pom for executing grunt. Is there a way to skip the plugin execution when I call mvn clean install. I cant put the <skip>true</skip in configuration. I am looking for an option like mvn clean install -Dexec.skip=true. Any clue?


Solution

  • Than you didn't read the docs well, cause there are the following information:

    Excerpt from the docs:

    skip:

    Skip the execution.

    • Type: boolean
    • Since: 1.0.1
    • Required: No
    • User Property: skip
    • Default: false

    The entry User Property: skip will guide you to use the following:

    mvn -Dskip=true ....