findbugs-maven-plugin:2.5.2:findbugs失败 - java.io.EOFException:没有为项目提供输入

时间:2014-07-02 07:48:03

标签: maven-3 findbugs

我的应用程序是一个多模块项目。升级到maven 3.0.5后,发现错误插件在不同版本的不同模块上失败。以下是我们在构建日志中获得的异常:

org.codehaus.mojo:findbugs-maven-plugin:2.5.2:findbugs failed: java.lang.RuntimeException: java.io.EOFException: No input provided for project -> [Help 1]
[07:41:00]:  [Step 1/2] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:findbugs-maven-plugin:2.5.2:findbugs (default-cli) on project straw-strait: Execution default-cli of goal org.codehaus.mojo:findbugs-maven-plugin:2.5.2:findbugs failed: java.lang.RuntimeException: java.io.EOFException: No input provided for project

mvn -X和-e给出了以下日志:

[07:40:54]:      [com.dir.hay.straw:straw-prime] [DEBUG] Goal:          org.codehaus.mojo:findbugs-maven-plugin:2.5.2:findbugs (default-cli)
[07:40:54]:      [com.dir.hay.straw:straw-prime] [DEBUG] Style:         Regular
[07:40:54]:      [com.dir.hay.straw:straw-prime] [DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
[07:40:54]:      [com.dir.hay.straw:straw-prime] <configuration>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <classFilesDirectory default-value="${project.build.outputDirectory}"/>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <compileSourceRoots>${project.compileSourceRoots}</compileSourceRoots>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <debug default-value="false">${findbugs.debug}</debug>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <effort default-value="Default">Max</effort>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <failOnError default-value="true">${findbugs.failOnError}</failOnError>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <findbugsXmlOutput default-value="true"/>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <findbugsXmlOutputDirectory default-value="${project.build.directory}"/>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <fork default-value="true">false</fork>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <includeTests default-value="false">${findbugs.includeTests}</includeTests>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <localRepository>${localRepository}</localRepository>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <maxHeap default-value="512"/>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <maxRank>20</maxRank>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <nested default-value="false">${findbugs.nested}</nested>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <outputDirectory default-value="${project.reporting.outputDirectory}"/>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <outputEncoding default-value="${project.reporting.outputEncoding}">${outputEncoding}</outputEncoding>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <pluginArtifacts>${plugin.artifacts}</pluginArtifacts>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <project>${project}</project>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <relaxed default-value="false">${findbugs.relaxed}</relaxed>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <remoteArtifactRepositories>${project.remoteArtifactRepositories}</remoteArtifactRepositories>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <remoteRepositories>${project.remoteArtifactRepositories}</remoteRepositories>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <skip default-value="false">${findbugs.skip}</skip>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <sourceEncoding default-value="${project.build.sourceEncoding}">${encoding}</sourceEncoding>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <testClassFilesDirectory default-value="${project.build.testOutputDirectory}"/>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <testSourceRoots>${project.testCompileSourceRoots}</testSourceRoots>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <threshold default-value="Default">Default</threshold>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <timeout default-value="600000"/>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <trace default-value="false">${findbugs.trace}</trace>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <xmlEncoding default-value="UTF-8"/>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <xmlOutput default-value="false">true</xmlOutput>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <xmlOutputDirectory default-value="${project.build.directory}"/>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <xrefLocation default-value="${project.reporting.outputDirectory}/xref"/>
[07:40:54]:      [com.dir.hay.straw:straw-prime]   <xrefTestLocation default-value="${project.reporting.outputDirectory}/xref-test"/>
[07:40:54]:      [com.dir.hay.straw:straw-prime] </configuration>
[07:40:54]:      [com.dir.hay.straw:straw-prime] [DEBUG] =======================================================================

我的所有子模块都从父pom继承插件。我在maven命令下执行

mvn -T 1.5C clean install findbugs:findbugs

我看到有一个non reproduceable bug

1 个答案:

答案 0 :(得分:1)

不知何故,findbugs不喜欢并行构建执行。当我删除-T选项时,我的构建成功了。

在建设稻草项目的同时,我认为稻草海峡项目的报告我认为,但由于两者都是并行建设的,所以当时还没有。因此,在不同的时间,不同项目的构建失败