Shell Function
To simplify the invocation of the SeedStack plugin you can define the following UNIX shell function in your profile:
function seedstack {
if [ -z "$1" ]; then
echo "Usage: seedstack GOAL [ARGS]..."
return 1
fi
GOAL=$1
shift
mvn -q -Dargs="$*" org.seedstack:seedstack-maven-plugin:$GOAL
}
This enables you to execute goals which use an args
system property with real arguments:
seedstack config application.basePackages
Which is the equivalent of:
mvn -q -Dargs="application.basePackages" org.seedstack:seedstack-maven-plugin:config