experiments with exec-maven-plugin, exec:exec and exec:java, with arguments.
com.Main
-n ly -g F
mvn exec:exec -Dinput.name=mvnn
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<includePluginDependencies>true</includePluginDependencies>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>com.Main</argument>
<argument>-n</argument>
<argument>${input.name}</argument>
<argument>-g</argument>
<argument>${input.gener}</argument>
</arguments>
</configuration>
</plugin>
mvn exec:java -Dinput.name=mvnn
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<includePluginDependencies>true</includePluginDependencies>
<mainClass>com.Main</mainClass>
<arguments>
<argument>-n</argument>
<argument>${input.name}</argument>
<argument>-g</argument>
<argument>${input.gener}</argument>
</arguments>
</configuration>
</plugin>