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?
Asked
Active
Viewed 1,361 times
0

Upen
- 1,388
- 1
- 22
- 49
-
Have you checked the docs of exec-maven-plugin ? – khmarbaise Aug 20 '14 at 06:58
-
I went through the docs. To skip the execution, I can only see the option to change the configuration in the pom.xml by adding
true . – Upen Aug 20 '14 at 07:00
1 Answers
0
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 ....

khmarbaise
- 92,914
- 28
- 189
- 235
-
clean package -Dmaven.test.skip=true -Dskip=true is not skipping the maven exec plugin execution. Am I doing it wrong? – Upen Aug 20 '14 at 07:17
-
-
Can put an test project which does not work as expected on github so i can take a look into it? – khmarbaise Aug 20 '14 at 09:26