Adding Groovy Sources to Maven Build Path
Say you want to run a groovy class method from your Java project in Maven. You've placed the script file at src/main/groovy/script/MyGroovyScriptClass.groovy . In Java, you would load the class and execute its method like so: