pom: 注意scope属性,最好另外去了解一下,根据项目需要更改
<dependency>
<groupId>excel</groupId>
<artifactId>excel</artifactId>
<version>1.1.1</version>
<scope>system</scope>
<systemPath>${project.basedir}\src\main\resources\lib\excel-0.5.8.3.2.jar</systemPath>
</dependency>
包路径
加入改配置,打包后该包才能在jar包里存在
<build>
<plugins>
<plugin>
<configuration>
<!--引入外部架包-->
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>