Could not find artifact com.sun:tools:jar:0

前端 未结 1 1977
有刺的猬
有刺的猬 2020-12-02 02:02

I\'m trying to use checkstyle and findbugs by doing mvn checkstyle:checkstyle but I have this error This error

[ERROR] Failed to execute goal o         


        
1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 02:52

    You're on JDK 11.
    The JEP 220 removed both tools.jar and rt.jar from the lib folder.

    Removed: rt.jar and tools.jar

    The class and resource files previously stored in lib/rt.jar, lib/tools.jar, lib/dt.jar, and various other internal JAR files are now stored in a more efficient format in implementation-specific files in the lib directory. The format of these files is not specified and is subject to change without notice.

    To upgrade Checkstyle use

    
       org.apache.maven.plugins
       maven-checkstyle-plugin
       3.0.0
       
         
            com.puppycrawl.tools
            checkstyle
            8.18
         
       
    
    

    See the inner dependency block.

    0 讨论(0)
提交回复
热议问题