1、添加jar包

springboot 添加第三方jar包

 

 2、手动引入依赖

<dependency>
            <groupId>com.aaa</groupId>
            <artifactId>data_extract</artifactId>
            <scope>system</scope>
            <version>1.0.1</version>
            <systemPath>${project.basedir}/src/main/resources/libs/service-invoke-sdk-1.0.1-SNAPSHOT.jar</systemPath>
        </dependency>

3、添加打包插件

 

<build>
    <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <webResources>
                        <webResource>
                            <directory>${project.basedir}/src/main/java/healthcode/third/xxx</directory>
                            <targetPath>WEB-INF/lib/</targetPath>
                            <includes>
                                <include>**/*.jar</include>
                            </includes>
                        </webResource>
                    </webResources>
                </configuration>
            </plugin>
    </plugins> 
</build>

 

相关文章:

  • 2022-12-23
  • 2021-05-20
  • 2021-09-27
  • 2022-03-06
  • 2021-05-22
  • 2021-12-06
  • 2021-07-12
猜你喜欢
  • 2021-12-05
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2021-11-17
  • 2021-05-11
  • 2021-06-11
相关资源
相似解决方案