Instead of using multiple execution modes for the exec-osgi mojo we should provide an individual mojo for each mode or at least a configure and a start mojo.
Examples of this approach can be found in the Tomcat Maven Plugin https://github.com/apache/tomcat-maven-plugin/tree/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run
Instead of using multiple execution modes for the
exec-osgimojo we should provide an individual mojo for each mode or at least aconfigureand astartmojo.Examples of this approach can be found in the Tomcat Maven Plugin https://github.com/apache/tomcat-maven-plugin/tree/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run