On upgrading our project to JDK 7 and JEE7 I'm hurt with Verification Error, but without any usable information in the log, even with the debug flag turned on. I'm using the latest maven version available, i.e. V3.2.5 with all plugins having the latest version of today! Eclipse Luna and jdk1.7.0_76 64 bit from Oracle on win7. The VM argument -XX:-UseSplitVerifier suggested in other answers doesn't change any thing! But what I can say for sure is: With the maven goals: package, install or deploy given no Verification Error happens and every Junit test comes out green. The Verification Error shows up with the goal „site“ given! Then not a single JUnit test passes! Useless to say that the problem never appeared with JDK 6 on the same project which started more than 3 years ago and which runs successfully in production at many sites! Who has an Idea what could go wrong on generating the reports for the site goal?
在将我们的项目升级到JDK 7和JEE7时,我受到了验证错误的影响,但是在日志中没有任何可用的信息,即使调试标志打开了。我正在使用最新的maven版本,即V3.2.5,所有插件都有最新版本!在win7上,Eclipse Luna和jdk1.7.0_76 64位来自Oracle。VM参数-XX:-UseSplitVerifier在其他答案中建议不会改变任何东西!但是我可以肯定的是:在maven的目标中:没有发生验证错误的包、安装或部署,每个Junit测试都是绿色的。验证错误显示的目标„网站”了!然后没有一个JUnit测试通过!毫无疑问,JDK 6的问题从来没有出现在同一个项目上,这个项目始于3年前,并且在许多站点的生产中成功运行!谁知道为网站的目标生成报告会有什么问题?
1 个解决方案
#1
1
I was facing the same issue, used following configurations and it worked okay.
我面临着同样的问题,使用了以下配置,它运行良好。
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<propertyName>jacoco.agent.argLine</propertyName>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<argLine>-XX:-UseSplitVerifier ${jacoco.agent.argLine}</argLine>
</configuration>
</plugin>
java maven jacoco noverify
#1
1
I was facing the same issue, used following configurations and it worked okay.
我面临着同样的问题,使用了以下配置,它运行良好。
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<configuration>
<propertyName>jacoco.agent.argLine</propertyName>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.10</version>
<configuration>
<argLine>-XX:-UseSplitVerifier ${jacoco.agent.argLine}</argLine>
</configuration>
</plugin>
java maven jacoco noverify