Springboot打war包处理本地jar

引用本地jar


    jodconverter
    jodconverter
    2.2.2
    system
    ${project.basedir}/src/main/resources/lib/jodconverter-2.2.2.jar

${project.basedir} 为项目的根路径

添加build插件



    org.apache.maven.plugins
    maven-dependency-plugin
    2.10
    
        
            copy-dependencies
            compile
            
                copy-dependencies
            
            
                ${project.build.directory}/${project.build.finalName}/WEB-INF/lib
                system
            
        
    

 

你可能感兴趣的:(SpringBoot)