Until now, I’m using the command mvn clean compile hibernate3:hbm2java to launch my program. Is there any way to combine those three goals within a single one, e.g. mvn run or mvn myapp:run?
Until now, I’m using the command mvn clean compile hibernate3:hbm2java to launch my program.
Share
Another solution that differs completely from my other answer would be to use the
exec-maven-pluginwith the goalexec:exec.And then you just run it like this:
By doing it this way you are not changing any of the other plugins and it is not bound to any phases either.