-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Closed
Description
Build a jar package would include mssql-jdbc.jar in the BOOT-INF/lib directory.
Build a war package would not include mssql-jdbc.jar in the WEB-INF/lib directory.
spring-boot version: 2.2.4.RELEASE
<groupId>com.test</groupId>
<artifactId>test</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>war</packaging>
<!-- <packaging>jar</packaging> -->
<dependencies>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>7.0.0</version>
<scope>system</scope>
<systemPath>lib/mssql-jdbc.jar</systemPath>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
<build>
Metadata
Metadata
Assignees
Labels
type: taskA general taskA general task