I'm configuring a maven project and I want to create alias for set of goals. example: mvn server - to execute mvn clean package tomcat:run
Grunt task runner do it very well, but I haven't found a way to do the same in maven.
You can define a <defaultGoal>...</defaultGoal>
in your pom if you like. So you can define something like this:
<project>
<build>
<defaultGoal>clean package tomcat:run</defaultGoal>
.
</build>
</project>
will be activated if you simply call mvn
...not really an alias, cause usually you don't need one...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With