需要在项目打包时,引入aspose-cad.jar文件,与项目一起打包
1.在该项目的pom文件中添加:
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-cad</artifactId>
<scope>system</scope>
<systemPath>${project.basedir}/lib/aspose-cad-22.2.jar</systemPath>
<version>22.2</version>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.6.4</version>
<configuration>
<includeSystemScope>true</includeSystemScope>
<fork>true</fork>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
2. 将aspose-cad.jar放入/lib/文件夹下
3.在lib文件夹下右键aspose-cad.jar—>git—>Add可加入其子包
4.然后再进行clean和package操作,即可将外部包aspose-cad.jar打包到该项目中