In npm we can define scripts such as:
"start": "npm-run-all --parallet test lint ..."
and run it using the short command npm start
.
Can we do the same using a Maven project?
The idea is from using npm and Node.js for a while. Current I use maven profile to config all relevant configuration and use -D profile
to run command. But sometimes I need to disable tests using -Dmaven.test.skip=true
, it's and even worse when I update project version.
mvn build-helper:parse-version versions:set \
-DnewVersion=\${parsedVersion.majorVersion}.\${parsedVersion.nextMinorVersion}.0 \
versions:commit
If possible I want to shorten the command to mvn build-nextMinor
.