<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-cad</artifactId>
<version>19.9</version>
<scope>system</scope>
<systemPath>${basedir}/lib/aspose-cad-19.9.jar</systemPath>
</dependency>
项目中引入了这个第三方jar包
maven打包时
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
<configuration>
<webResources>
<webResource>
<directory>${basedir}/lib</directory>
<targetPath>WEB-INF/lib/</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</webResource>
</webResources>
</configuration>
</plugin>
将第三方jar包路径 与targetpath 对应war包的lib目录
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
将第三包打入war包配置
本文详细介绍了如何在Maven项目中正确配置第三方jar包的引入,包括使用aspose-cad-19.9.jar的具体步骤。通过配置maven-war-plugin和spring-boot-maven-plugin,确保第三方库能够被正确包含在最终的war包中。
2251

被折叠的 条评论
为什么被折叠?



