Skip to content

Add an integration test for system scope dependencies with war packaging #22503

@m1stake

Description

@m1stake

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

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions