IDEA pom中引用本地lib下的jar包
在将word文档转为图片时,使用的aspose-words,因为其转换完的图片带有水印,所以在网上找了一个破解版的jar包。现需要将其引入自己的maven项目。
-
添加依赖如下:
<dependency> <groupId>com.aspose</groupId> <artifactId>aspose-words</artifactId> <version>15.8.0-crack</version> <!--使用本地jar--> <scope>system</scope> <!--jar包地址--> <systemPath>${project.basedir}/lib/aspose-words-15.8.0-crack.jar</systemPath> </dependency>
对应的目录路径结构:
-
打包插件配置:
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <!--关键地方 包含本地jar--> <configuration> <includeSystemScope>true</includeSystemScope> </configuration> </plugin> </plugins> </build>
既要仰望星空,又要脚踏实地