title: How to compile mixed (Java and Groovy) project?
body: <p>I have a project (Java Swing application), in which I want to mix Java and Groovy.</p>
  
  <p>I can compile and run the project without problems inside IntelliJ Idea.</p>
  
  <p>But I can't compile it with Maven:</p>
  
  <ol>
  <li>In <code>src/main/groovy</code> I define a Groovy class <code>GroovyClass</code>.</li>
  <li>In <code>src/main/java</code> there is a Java class, which uses <code>GroovyClass</code>.</li>
  <li>When compiling the project with Maven, I get the message <code>[ERROR] ...\JavaClass.java:[13,47] error: cannot find symbol</code>.</li>
  </ol>
  
  <p>How can I change the <code>pom.xml</code> file in order to be able to compile and package the application using Maven?</p>