I use the maven-antrun-plugin (which are bound to a certain phase) to run ANT tasks. How should I run a certain task manually (e.g. something like mvn start-jb开发者_JAVA百科oss) which is not bound to a maven lifecycle phase.
Try mvn antrun:run
http://maven.apache.org/plugins/maven-antrun-plugin/run-mojo.html
you can also set parameter in the for a non default task in the project's pom.xml
精彩评论