Closed dbclkclk closed 9 years ago
You mean tasks like npm
or grunt
? If yest, then:
mvn grunt:<taskName>
mvn grunt:npm
@adamdubiel thanks for the reply. I was thinking about specifying it to coincide with my maven build profile.
Sort of like this:
<gruntOptions>
<gruntOption>--verbose</gruntOption>
<gruntOption>qa</gruntOption>
</gruntOptions>
Where the grunt option qa specify the task. Would this work?
Ah, you mean grunt task - sure, you can do it by specifying target
parameter:
mvn grunt:grunt -Dtarget=myGruntTask
Or if you need it in build:
<configuration>
<target>myGruntTask</target>
</configuration>
Where configuration
is grunt-maven-plugin config of course.
@adamdubiel thanks again!
Happy to help :)
I have a number of registered task and I wanted a way of telling the grunt goal to run a specific task. How can I achieve this?