Maven findbugs缺少JRE课程

时间:2018-02-21 01:20:58

标签: java maven findbugs

我在构建maven项目时得到了一个奇怪的消息。它似乎没有破坏查找报告,但看起来很烦人。

[INFO] Fork Value is true    
[java] The following classes needed for analysis were missing:    
[java]   java.lang.Object    
[java]   java.util.HashSet    
[java]   java.util.HashMap    
[java]   java.io.InputStream    
[java]   java.util.TreeSet    
[java]   java.io.InputStreamReader    
[java]   java.io.BufferedReader    
[java]   java.io.OutputStreamWriter    
[java]   java.io.BufferedWriter    
[java]   java.lang.String    
[java]   java.lang.Character    
[java]   java.lang.StringBuffer    
[java]   java.util.zip.ZipEntry    
[java]   java.util.zip.ZipInputStream    
[java]   java.util.zip.ZipOutputStream    
[java]   java.util.zip.GZIPInputStream    
[java]   java.util.zip.GZIPOutputStream    
[java]   java.lang.Throwable    
[java]   java.lang.AutoCloseable    
[java]   java.io.PrintStream    
[java]   java.lang.System    
[java]   java.util.Arrays    
[java]   java.io.FileInputStream    
[java]   java.io.FileOutputStream    
[java]   java.io.IOException    
[java]   java.nio.file.Paths    
[java]   java.lang.StringBuilder    
[java]   java.nio.file.Path    
[java]   java.net.URI    
[java]   java.nio.file.FileSystems    
[java]   java.nio.file.FileSystem    
[java]   java.nio.file.Files    
[java]   java.util.Iterator    
[java]   java.io.OutputStream    
[java]   java.lang.NoSuchFieldError    
[java]   java.io.Serializable    
[java]   java.lang.UnsatisfiedLinkError    
[java]   java.lang.NullPointerException    
[java]   java.lang.Error    
[java]   java.lang.IllegalAccessError    
[java]   java.lang.NoSuchMethodError    
[java]   java.lang.IncompatibleClassChangeError    
[java]   java.lang.AbstractMethodError    
[java]   java.lang.Exception    
[java]   java.lang.RuntimeException    
[java]   java.nio.file.OpenOption    
[java]   java.lang.NegativeArraySizeException    
[java] Missing classes: 38    
[INFO] Done FindBugs Analysis....    

findbugs插件怎么能错过jre类?这是一个错误吗?我使用IntelliJ Idea和默认的maven设置。在我的pom.xml中,findbugs插件在<build>标签中配置如下:

<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>findbugs-maven-plugin</artifactId>
    <version>3.0.1</version>
    <configuration>
         <onlyAnalyze>com.package.my.*</onlyAnalyze>
         <xmlOutput>true</xmlOutput>
         <findbugsXmlOutputDirectory>${project.build.directory}/findbugs-report</findbugsXmlOutputDirectory>
         <failOnError>false</failOnError>
     </configuration>
     <executions>
         <execution>
             <id>analyze-on-compile</id>
             <phase>compile</phase>
             <goals>
                 <goal>check</goal>
             </goals>
      </execution>
    </executions>
</plugin>

0 个答案:

没有答案