mvn eclipse:eclipse
即使在 Maven 中使用如下所示生成了 Eclipse 项目后,我也总是必须在 Eclipse 中配置 groovy 文件夹。有没有办法告诉maven在生成eclipse项目时自动将这些文件夹视为源文件夹?
我的插件定义。我正在为 Maven 使用 Groovy-Eclipse 编译器插件
<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>