groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mr Andersson <mr.andersson....@gmail.com>
Subject Integrating Groovy with a Java EE application and Maven
Date Sat, 18 Jun 2016 11:40:18 GMT
Hi,

I can not find any info on this online that will actually work.

I've tried:

<dependency>
     <groupId>org.codehaus.groovy</groupId>
     <artifactId>groovy</artifactId>
     <version>2.4.7</version>
</dependency> as well as <plugin>
     <inherited>true</inherited>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-compiler-plugin</artifactId>
     <version>3.5.1</version>
     <configuration>
         <source>${java.version}</source>
         <target>${java.version}</target>

	<!--!!!!!!!!!!!!!!!! ALSO TRIED WITHOUT THESE TWO LINES !!!!!!!!!!!!!!!! -->
         <compilerId>groovy-eclipse-compiler</compilerId>
         <verbose>true</verbose>

         <!-- See: 
http://stackoverflow.com/questions/17944108/maven-compiler-plugin-always-detecting-a-set-of-sources-as-stale

--> <useIncrementalCompilation>false</useIncrementalCompilation>
     </configuration>

     <dependencies>
         <dependency>
             <groupId>org.codehaus.groovy</groupId>
             <artifactId>groovy-eclipse-compiler</artifactId>
             <version>2.9.2-01</version>
         </dependency>
     </dependencies>
</plugin> but this results in an error when a Java class is referencing 
a Groovy class in the project. I am not using eclipse. What are the 
neccesary steps to get Groovy to work *seamlessly in a Groovy project in 
2016* ? What are the limitations? Thanks!


Mime
View raw message