Eclipse火星m2e& groovy eclipse编译器?:没有源文件夹

时间:2015-08-03 08:07:47

标签: eclipse m2eclipse m2e m2e-wtp groovy-eclipse

我尝试导入一个与eclipse luna合作的maven多模块项目进入日食火星。这个多模块maven项目在eclipse mars中没有源文件夹,依赖项也不存在:

Missing dependencies and source folder in eclipse mars

我无法将src / main / java文件夹添加为源文件夹:

No build path actions available

其他maven多模块项目确实有效。与这个项目的不同之处在于它使用了groovy-eclipse-compiler:

<plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.3</version>
        <dependencies>
          <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy-eclipse-compiler</artifactId>
            <version>2.9.2-01</version>
            <scope>compile</scope>
          </dependency>
          <dependency>
            <groupId>org.codehaus.groovy</groupId>
            <artifactId>groovy-eclipse-batch</artifactId>
            <version>2.4.3-01</version>
            <scope>compile</scope>
          </dependency>
        </dependencies>
        <configuration>
          <compilerId>groovy-eclipse-compiler</compilerId>
          <fork>true</fork>
          <verbose>false</verbose>
          <source>1.7</source>
          <target>1.7</target>
          <encoding>UTF-8</encoding>
          <showDeprecation>true</showDeprecation>
          <verbose />
        </configuration>
      </plugin>

要在eclipse中使用正确的groovy工具,我从更新站点安装了groovy-eclipse:

Groovy Eclipse 2.9.2 snapshot builds for Eclipse 4.5 are available, update site http://dist.springsource.org/snapshot/GRECLIPSE/e4.5/

我能做些什么让ersh火星正确识别这个maven项目?

1 个答案:

答案 0 :(得分:0)

这似乎是一个groovy-eclipse错误。 我在github页面上打开了一个问题:github.com/groovy/groovy-eclipse/issues/130,但我想该项目已经成为孤儿,这真是一种耻辱:(!

相关问题