title: How to pass paramenters (cucumber tags) from maven/java runtime to cucumber-jvm-parallel-plugin, preferably using Maven Profiles
body: <p>For Java based mobile automation framework development using Cucumber-JVM.
  We use cucumber-jvm-parallel-plugin for Cucumber-runners &amp; passing cucumber tags.
  Snippet:</p>
  
  <pre><code>  &lt;plugin&gt;
              &lt;groupId&gt;com.github.temyers&lt;/groupId&gt;
              &lt;artifactId&gt;cucumber-jvm-parallel-plugin&lt;/artifactId&gt;
              &lt;version&gt;4.2.0&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;generateRunners&lt;/id&gt;
                      &lt;phase&gt;generate-test-sources&lt;/phase&gt;
                      &lt;!--&lt;phase&gt;validate&lt;/phase&gt;--&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generateRunners&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;!-- Mandatory --&gt;
                          &lt;!-- List of package names to scan for glue code. --&gt;
                          &lt;glue&gt;
                              &lt;package&gt;stepDefs&lt;/package&gt;
                              &lt;!--&lt;package&gt;com.example.other&lt;/package&gt;--&gt;
                          &lt;/glue&gt;
                          &lt;!-- These are optional, with the default values --&gt;
                          &lt;!-- Where to output the generated tests --&gt;
                          &lt;outputDirectory&gt;${project.build.directory}/cucumber-parallel/html&lt;/outputDirectory&gt;
                          &lt;!-- The directory, which must be in the root of the runtime classpath, containing your feature files.  --&gt;
                          &lt;featuresDirectory&gt;src/main/resources/features/&lt;/featuresDirectory&gt;
                          &lt;!-- Directory where the cucumber report files shall be written  --&gt;
                          &lt;!--&lt;cucumberOutputDir&gt;target/cucumber-parallel&lt;/cucumberOutputDir&gt;--&gt;
                          &lt;cucumberOutputDir&gt;target&lt;/cucumberOutputDir&gt;
                          &lt;!-- List of cucumber plugins. When none are provided the json formatter is used. For more
                               advanced usage see section about configuring cucumber plugins --&gt;
                          &lt;format&gt;json,html,rerun&lt;/format&gt;
  
                          &lt;!--&lt;plugins&gt;--&gt;
                              &lt;!--&lt;plugin&gt;--&gt;
                                  &lt;!--&lt;name&gt;json&lt;/name&gt;--&gt;
                              &lt;!--&lt;/plugin&gt;--&gt;
                              &lt;!--&lt;plugin&gt;--&gt;
                                  &lt;!--&lt;name&gt;com.example.CustomHtmlFormatter&lt;/name&gt;--&gt;
                                  &lt;!--&lt;extension&gt;html&lt;/extension&gt;--&gt;
                              &lt;!--&lt;/plugin&gt;--&gt;
                          &lt;!--&lt;/plugins&gt;--&gt;
                          &lt;!-- CucumberOptions.strict property --&gt;
                          &lt;strict&gt;true&lt;/strict&gt;
                          &lt;!-- CucumberOptions.monochrome property --&gt;
                          &lt;monochrome&gt;true&lt;/monochrome&gt;
                          &lt;!-- The tags to run, maps to CucumberOptions.tags property. Default is no tags. --&gt;
                              &lt;tag&gt;
                                  &lt;!--${test.tag},--&gt;
                                  @ios_e2e,
                                  @android,
                                  @cover2,
                                  @ios_cover1
                              &lt;/tag&gt;
                          &lt;/tags&gt;
                          &lt;!-- Generate TestNG runners instead of JUnit ones. --&gt;
                          &lt;useTestNG&gt;false&lt;/useTestNG&gt;
                          &lt;!-- The naming scheme to use for the generated test classes.  One of 'simple' or 'feature-title' --&gt;
                          &lt;namingScheme&gt;simple&lt;/namingScheme&gt;
                          &lt;!-- The class naming pattern to use.  Only required/used if naming scheme is 'pattern'.--&gt;
                          &lt;!--&lt;namingPattern&gt;**/Parallel*IT.class&lt;/namingPattern&gt;--&gt;
                          &lt;namingPattern&gt;Parallel{c}IT&lt;/namingPattern&gt;
  
                          &lt;!-- One of [SCENARIO, FEATURE]. SCENARIO generates one runner per scenario.  FEATURE generates a runner per feature. --&gt;
                          &lt;!--&lt;parallelScheme&gt;SCENARIO&lt;/parallelScheme&gt;--&gt;
                          &lt;parallelScheme&gt;FEATURE&lt;/parallelScheme&gt; &lt;!--Using Feature for accomodating Scenario Outline --&gt;
  
                          &lt;!-- Specify a custom template for the generated sources (this is a path relative to the project base directory) --&gt;
                          &lt;!--&lt;customVmTemplate&gt;src/test/resources/cucumber-custom-runner.vm&lt;/customVmTemplate&gt;--&gt;
                          &lt;!-- Specify a custom package name for generated sources. Default is no package.--&gt;
                          &lt;packageName&gt;com.example&lt;/packageName&gt;
  
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>
  
  <p>Now, in the tag section above, we would like to pass parameters dynamically.
  Like, run-time parameter /maven parameter / maven profile etc.
  i.e. I tried below, but its not working. </p>
  
  <pre><code>        &lt;profile&gt;
          &lt;id&gt;TestSuite1&lt;/id&gt;
          &lt;activation&gt;
              &lt;activeByDefault&gt;true&lt;/activeByDefault&gt;
          &lt;/activation&gt;
          &lt;properties&gt;
              &lt;app.config&gt;//src//test//java//envConfig//localGridConfig.properties&lt;/app.config&gt;
              &lt;test.tag&gt;@android&lt;/test.tag&gt;
          &lt;/properties&gt;
      &lt;/profile&gt;
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/15498486/maven-jenkins-how-to-build-project-to-different-test-environments">Reference to populating parameter to maven on Stackoverflow another discussion</a></p>
  
  <p>Kindly suggest how to achieve this
  Thanks a lot</p>