Add external library .jar to Spring boot .jar internal /lib

前端 未结 7 1346
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-29 23:04

I have an external .jar that cannot be imported from public repositories using pom.xml, it\'s sqljdbc41.jar.

I can run the project locally from my IDE,

7条回答
  •  萌比男神i
    2020-11-29 23:32

    In my case, the fault was providing a version number without "dot" in tag:

            
            jdk.tools
            jdk.tools
            system
            1
            ${basedir}/src/main/resources/lib/tools.jar
        
    

    This one works:

            
            jdk.tools
            jdk.tools
            system
            1.8
            ${basedir}/src/main/resources/lib/tools.jar
        
    

提交回复
热议问题