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

前端 未结 7 1318
爱一瞬间的悲伤
爱一瞬间的悲伤 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条回答
  • 2020-11-29 23:40

    another way, you can put it into the resources folder, such as resources/lib/xxx.jar, then config the pom.xml like this:

    <dependency>
    <groupId>com.microsoft.sqlserver</groupId>
    <artifactId>sqljdbc41</artifactId>
    <version>4.1</version>
    <scope>system</scope>
    <systemPath>${basedir}/src/main/resources/lib/sqljdbc41.jar</systemPath>
    

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