Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] GMaven automagically creates /src/main/groovy

Ken DeLong

2010-09-01


Author LoginPost Reply

We are using GMaven in our project.  We have it set up so that we can freely mix Groovy and Java files in the same source tree, /src/main/java.  This works fine.  However, in Eclipse, we find that GMaven keeps on adding /src/main/groovy and /src/test/groovy to the .classpath file, which then causes the project to not compile.  If we remove those directories from .classpath, Eclipse builds the project, and apparently the Maven builder invokes GMaven and it adds the directories back to .classpath within a second of us deleting them.

 

We’re about to give up and create the directories permanently, and leave a DONTLEAVECODEHERE.txt file there.  But before we capitulate, I was wondering if anyone knew how to disable that behavior.

 

<plugin>

     <groupId>org.codehaus.gmaven</groupId>

     <artifactId>gmaven-plugin</artifactId>

     <version>1.3</version>

     <executions>

           <execution>

                <goals>

                     <goal>generateStubs</goal>

                     <goal>compile</goal>

                     <goal>generateTestStubs</goal>

                     <goal>testCompile</goal>

                </goals>

                <configuration>

                     <providerSelection>1.7</providerSelection>

                     <sources>

                        <fileset>

                            <directory>${pom.basedir}/src/main/java</directory>

                            <includes>

                                <include>**/*.groovy</include>

                            </includes>

                        </fileset>

                     </sources>

                </configuration>

           </execution>

     </executions>

     <dependencies>

           <dependency>

                <groupId>org.codehaus.gmaven.runtime</groupId>

                <artifactId>gmaven-runtime-1.7</artifactId>

                <version>1.3</version>

                <exclusions>

                     <exclusion>

                           <groupId>org.codehaus.groovy</groupId>

                           <artifactId>groovy-all</artifactId>

                     </exclusion>

                </exclusions>

           </dependency>

           <dependency>

                <groupId>org.codehaus.groovy</groupId>

                <artifactId>groovy-all</artifactId>

                <version>1.7.3</version>

           </dependency>

     </dependencies>

</plugin>



This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's Email System Administrator.

©2008 gg3721.com - Jax Systems, LLC, U.S.A.