In Ant, I can have a target named run to execute the jar with specified开发者_运维技巧 the classpath. I am wondering if maven has the similar phase?
There is no Maven standard phase to run code. This page lists the standard Maven lifecycle phases.
If you want to go down the road of doing this yourself, this section of the Maven book talks about adding custom phases.
精彩评论