无法在IntelliJ版本中运行Junit测试用例:community 2017.2,错误:信息:java:编译模块“XXXXX”时发生错误

时间:2017-10-18 09:13:30

标签: java maven intellij-idea junit

无法在IntelliJ版本中运行Junit测试用例:社区2017.2,同样适用于旧版本。

我找到了两个链接link1link2但无法解决问题。请帮忙。

我收到错误:

Information:java: Errors occurred while compiling module 'XXXXX'
Information:javac 7 was used to compile java sources
Information:18/10/17, 1:10 PM - Compilation completed with 1 error and 0 warnings in 2m 11s 343ms
Error:java: Compilation failed: internal java compiler error

pom.xml有,

<plugin>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>2.3.2</version>
    <configuration>
        <source>1.7</source>
        <target>1.7</target>
    </configuration>
</plugin>

Project gradle version

$ gradle -version

------------------------------------------------------------
Gradle 3.0
------------------------------------------------------------

Build time:   2016-08-15 13:15:01 UTC
Revision:     ad76ba00f59ecb287bd3c037bd25fc3df13ca558

Groovy:       2.4.7
Ant:          Apache Ant(TM) version 1.9.6 compiled on June 29 2015
JVM:          1.7.0_80-ea (Oracle Corporation 24.80-b07)
OS:           Mac OS X 10.12.6 x86_64

提前致谢。

0 个答案:

没有答案