spring boot2 引用本地jar包开发和打包注意事项

1.在src下面建lib文件夹将第三方jar包放到里面;
2.在configure build path中添加jar;
3.开发时候,注销掉下面配置, 打包jar包的时候需要放开注释
4.打包命令:mvn clean package


xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0

com.test
taobao-ke-api
1.0.0
jar

taobao-ke-api



    org.springframework.boot
    spring-boot-starter-parent
    2.0.1.RELEASE
     



    UTF-8
    1.8



    
        org.springframework.boot
        spring-boot-starter
    

    
        org.springframework.boot
        spring-boot-starter-test
        test
    

    
        org.springframework.boot
        spring-boot-starter-web
    

    
        com.alibaba
        fastjson
        1.2.28
    
    
        org.apache.httpcomponents
        httpclient
        4.4.1
    
    
        org.apache.httpcomponents
        httpcore
        4.4.1
    
    
    



    
        
            org.springframework.boot
            spring-boot-maven-plugin
              
                1.8  
                    1.8  
                    UTF-8  
                      
                        ${basedir}/src/lib  
                      
                 
        
      
    
       

你可能感兴趣的:(spring boot2 引用本地jar包开发和打包注意事项)