title: Problem running tests with enabled preview features in surefire and failsafe
body: <p>I'm trying to migrate a project to Java 12, with <code>--enable-preview</code>.</p>
  
  <p>I added <code>--enable-preview</code> in compiler settings:</p>
  
  <pre><code>        &lt;plugin&gt;                                                            
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;                  
              &lt;version&gt;3.8.0&lt;/version&gt;                                        
              &lt;configuration&gt;                                                 
                  &lt;release&gt;12&lt;/release&gt;                          
                  &lt;compilerArgs&gt;                                                                                  
                      &lt;arg&gt;--enable-preview&lt;/arg&gt;                             
                  &lt;/compilerArgs&gt;                                                                      
              &lt;/configuration&gt;                                                
          &lt;/plugin&gt;                                                                                                                                         
  </code></pre>
  
  <p>And also added it in argLine for surefire and failsafe:</p>
  
  <pre><code>&lt;properties&gt;                                                                                             
      &lt;argLine&gt;--enable-preview&lt;/argLine&gt;                        
  &lt;/properties&gt; 
  </code></pre>
  
  <p>And do a <code>mvn clean verify</code> results in:</p>
  
  <pre><code>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project lombok-jdk10: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test failed: java.lang.UnsupportedClassVersionError: Preview features are not enabled for com/kirela/lombok/BarTest (class file version 56.65535). Try running with '--enable-preview' -&gt; [Help 1]
  </code></pre>
  
  <p>I also tried adding argLine directly to surefire/failsafe configuration, but the result is same.</p>
  
  <p>What am I missing here?</p>
  
  <p>I this a bug in surefire/failsafe?</p>
  
  <p>EDIT2: Surefire and failsafe config:</p>
  
  <pre><code>        &lt;plugin&gt;                                                            
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;                     
              &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;                  
              &lt;version&gt;3.0.0-M3&lt;/version&gt;                                     
              &lt;configuration&gt;                                                 
                  &lt;forkCount&gt;2&lt;/forkCount&gt;                                    
              &lt;/configuration&gt;                                                
          &lt;/plugin&gt;                                                           
          &lt;plugin&gt;                                                            
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;                     
              &lt;artifactId&gt;maven-failsafe-plugin&lt;/artifactId&gt;                  
              &lt;version&gt;3.0.0-M3&lt;/version&gt;                                     
              &lt;executions&gt;                                                    
                  &lt;execution&gt;                                                 
                      &lt;goals&gt;                                                 
                          &lt;goal&gt;integration-test&lt;/goal&gt;                       
                          &lt;goal&gt;verify&lt;/goal&gt;                                 
                      &lt;/goals&gt;                                                
                  &lt;/execution&gt;                                                
              &lt;/executions&gt;                                                   
              &lt;configuration&gt;                                                 
                  &lt;forkCount&gt;2&lt;/forkCount&gt;                                    
              &lt;/configuration&gt;                                                                                                                              
          &lt;/plugin&gt; 
  </code></pre>
  
  <p>EDIT3:
  Minimal working example is here: <a href="https://github.com/krzyk/lombok-jdk10-example" rel="noreferrer">https://github.com/krzyk/lombok-jdk10-example</a></p>
  
  <p>The project fails with <code>--enable-preview</code>, but works when I remove it.</p>