title: Unable to pass java compiler parameters using maven
body: <p>As the title says I am unable to pass command line parameters to the java compiler using maven, I am using the <a href="http://maven.apache.org/components/plugins/maven-compiler-plugin/" rel="noreferrer">maven-compiler-plugin</a> to do it, and accordingly to <a href="http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#compilerArgs" rel="noreferrer">this</a> (specifically for the compilerArgs option of the pluging) I am using the <em>"latest way"</em> to speficy the arguments passed to the compiler. Well enough talk, more code, this is my maven configuration for the plug-in and I am not sure what am I doing wrong: </p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.3&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.8&lt;/source&gt;
                  &lt;target&gt;1.8&lt;/target&gt;
                  &lt;fork&gt;true&lt;/fork&gt;
                  &lt;compilerArgs&gt;
                      &lt;arg&gt;-parameters&lt;/arg&gt;
                  &lt;/compilerArgs&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>I am following the instructions for the usage of the tool which says that <code>&lt;fork&gt;</code> have to be set to true, and I do not know what am I missing... a little bit of help please? </p>
  
  <p>May or may not be helpful to mention that: I need the <code>parameters</code> argument as specified <a href="https://docs.oracle.com/javase/tutorial/reflect/member/methodparameterreflection.html" rel="noreferrer">here</a> because I want to get the name of the arguments in my methods in runtime using reflection; I use the -X argument when calling maven to see the debug and I shows me the "fork" call that it does and I cannot se ANYWHERE the arguments I am passing (maybe I need to enable the plug-in; but I think In this case is automatically enabled since it is not part of any profile, I am not a maven expert so please correct me if I am wrong).</p>
  
  <p><strong>EDIT:</strong> I have tried in several ways with and without the dash I have even tried the <em>"old way"</em> to do it:</p>
  
  <pre><code>&lt;compilerArguments&gt;
    &lt;parameters /&gt;
  &lt;/compilerArguments&gt;
  </code></pre>
  
  <p>And: </p>
  
  <pre><code>&lt;compilerArgument&gt;-parameters&lt;/compilerArgument&gt;
  </code></pre>