在idea环境中引入本地下载的jar包


1. 在项目工程中新建lib

 

 

 2. 通过maven命令完成jar安装

 mvn install:install-file
 -Dfile=E:\idea\longyan\lib\poi-ooxml-4.1.2.jar
 -DgroupId=poi-ooxml
 -DartifactId=poi-ooxml
 -Dversion=4.1.2
 -Dpackaging=jar

 

 

 3. 配置pom

 
<!--poi-->
<dependency>
<groupId>poi</groupId>
<artifactId>poi</artifactId>
<version>4.1.2</version>
</dependency>
<dependency>
<groupId>poi-ooxml</groupId>
<artifactId>poi-ooxml</artifactId>
<version>4.1.2</version>
</dependency>

4. 打包上线需要增加配置
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>



免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM