maven怎么添加第三方jar包

2025-03-31 23:17:20
推荐回答(1个)
回答1:


        
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.1
                
                    1.8
                    1.8
                    -Xlint:all
                    true
                    true
                    
                    
                        lib
                    

                

            

        

        edu
    

以上为添加第三方本地包(可指定具体的包名,不指定则默认为配置的文件夹下所有jar包),若使用Maven库中的包,则类似如下:


            junit
            junit
            4.12
            test