即使在我使用mvn eclipse:eclipse
在maven中生成eclipse项目之后,我总是要在Eclipse中配置groovy文件夹,如下所示。有没有办法告诉maven在生成eclipse项目时自动将这些文件夹视为源文件夹?
我的插件定义。我正在使用Groovy-Eclipse compiler plugin for Maven
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<verbose>true</verbose>
<fork>true</fork>
<executable>${javac.executable}</executable>
<compilerVersion>${javaComplianceLevel}</compilerVersion>
<source>${javaComplianceLevel}</source>
<target>${javaComplianceLevel}</target>
<meminitial>256</meminitial>
<maxmem>1024</maxmem>
<encoding>UTF-8</encoding>
<compilerId>groovy-eclipse-compiler</compilerId>
<extensions>true</extensions>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.7.0-01</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<!-- Groovy version -->
<version>2.0.7-03</version>
</dependency>
</dependencies>
</plugin>