Hello,
Is it possible to have a project where some Java files rely on Groovy code, and those groovy files rely on some more java code? I'm using the following maven snippet:
<plugin>
<groupId>org.codehaus.gmavenplus</groupId>
<artifactId>gmavenplus-plugin</artifactId>
<version>4.2.1</version>
<executions>
<execution>
<goals>
<goal>addSources</goal>
<goal>addTestSources</goal>
<goal>generateStubs</goal>
<goal>compile</goal>
<goal>generateTestStubs</goal>
<goal>compileTests</goal>
<goal>removeStubs</goal>
<goal>removeTestStubs</goal>
</goals>
</execution>
</executions>
</plugin>
This is the error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ssplot: Compilation failure: Compilation failure:
[ERROR] /home/ssarkar2/hd2/Documents/Projects/Java/Eclipse/SSPlot/target/generated-sources/groovy-stubs/main/com/babai/ssplot/ui/controls/GroovyUI.java:[16,63] cannot find symbol
[ERROR] symbol: variable UIButton
[ERROR] location: class com.babai.ssplot.ui.controls.GroovyUI
(and more like this, for everything inside that package)
these classes are defined in Java. I'm trying to access them from Groovy file under the same package. Files are in standard locations (src/main/java for java, src/main/groovy for groovy).
Thanks!