maven 导入外部依赖
比如导入 /libs/officetopdf/aspose.slides-15.9.0.jar
第一步
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-slides</artifactId>
<version>15.9.0</version>
<scope>system</scope>
<systemPath>/${pom.basedir}/libs/officetopdf/aspose.slides-15.9.0.jar</systemPath>
</dependency>
第二步
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
其他注意事项:
以下这样写导致插件声明重复,会报警告
[WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.springframework.boot:spring-boot-maven-plugin @ line 495, column 21
修改为