title: Passing "-parameters" option in Intellij
body: <p>I'm trying to make a Java 11 Project run in Intellij. When executing tests some of them crash with following error:</p>
  
  <blockquote>
    <p>org.springframework.dao.InvalidDataAccessApiUsageException: For
    queries with named parameters you need to use provide names for method
    parameters. Use @Param for query method parameters, or when on Java 8+
    use the javac flag -parameters.; nested exception is
    java.lang.IllegalStateException: For queries with named parameters you
    need to use provide names for method parameters. Use @Param for query
    method parameters, or when on Java 8+ use the javac flag -parameters.</p>
  </blockquote>
  
  <p>I added -parameters to JUnit default run configuration:
  <a href="https://i.stack.imgur.com/noqoM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/noqoM.png" alt="enter image description here"></a></p>
  
  <p>Which causes this error:</p>
  
  <blockquote>
    <p>Unrecognized option: -parameters
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.</p>
  </blockquote>
  
  <p>Same error (add javac flag -parameters) occurs when I try to start application (i.e. run tomcat on which it's deployed). I tried to add this option to compiler option here:
  <a href="https://i.stack.imgur.com/CUXRh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CUXRh.png" alt="enter image description here"></a>
  But this seems to have no effect at all.</p>
  
  <p>I'm confused: Where Am I supposed to add this argument to make tests and application run?</p>
  
  <p>I'm using: </p>
  
  <ul>
  <li>Intellij Ultimate 2018.3</li>
  <li>JDK 11.0.1</li>
  <li>Maven 3.6.0</li>
  <li>AspectJ 1.9.2</li>
  </ul>