导入

一个 Jar 包

<dependency>
<groupId>local</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<version>3.3.1</version>
<scope>system</scope>
<systemPath>${pom.basedir}/src/main/webapp/WEB-INF/lib/aliyun-java-sdk-core-3.3.1.jar</systemPath>
</dependency>

多个 Jar 包,配置 maven-compiler-plugin 插件

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
<compilerArgs>
<arg>-extdirs</arg>
<arg>${project.basedir}/src/main/webapp/WEB-INF/lib</arg>
</compilerArgs>
</configuration>
</plugin>

打包

war 包

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<webResources>
<resource>
<directory>${project.basedir}/src/main/resources/lib/</directory>
<targetPath>WEB-INF/lib</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</webResources>
</configuration>
</plugin>

jar 包

<resources>
<resource>
<directory>${project.basedir}/src/main/resources/lib/</directory>
<targetPath>BOOT-INF/lib/</targetPath>
<includes>
<include>**/*.jar</include>
</includes>
</resource>
</resources>

https://maven.apache.org/plugins/maven-compiler-plugin/examples/pass-compiler-arguments.html

https://blog.csdn.net/catoop/article/details/48489365

最新文章

  1. servlet定义
  2. Linux命令小结:fdisk
  3. alibaba的FastJson(高性能JSON开发包)
  4. 用css3实现闪烁效果
  5. 零基础学习云计算及大数据DBA集群架构师【Linux系统配置及网络配置2015年12月30日周三】
  6. IOS网络开发实战(一)
  7. mimi
  8. VIJOS P1647 不差钱 SBT
  9. 加密Web.Config配置文件
  10. 简单设置android启动画面
  11. 崩溃 golang入坑系列
  12. Linux指令--watch,at
  13. Asp.Net Core 2.1+的视图缓存(响应缓存)
  14. Python selenium webdriver设置js操作页面滚动条
  15. 统计硬币 HDU - 2566 (三种解法:线性代数解法,背包解法,奇思妙想解法 &gt;_&lt; )
  16. 分布式监控系统Zabbix-3.0.3-完整安装记录(0)
  17. React Native 组建之IOS和Android通用抽屉
  18. WinForm中DataGridView的使用(一) - 基本使用
  19. vSphere Web Client 6.5 如何上传ISO文件
  20. Hdu1050 Moving Tables 2016-05-19 16:08 87人阅读 评论(0) 收藏

热门文章

  1. 总结 String、StringBuffer与StringBuilder类中常用的方法
  2. MySQL备份--xtrabackup与mysqldump工具使用
  3. liunx加载JX2410标准配置文件
  4. Delphi 类成员的可见性
  5. (十四)Linux kernel mmc 框架说明,包括mmc_test使用方法
  6. C 字符串几点
  7. C# 安装WindowsService时弹出设置服务登录窗口的解决方案
  8. docker 搭建zookeeper集群和kafka集群
  9. BIO、NIO、AIO 有什么区别?(未完成)
  10. Is there a difference between `==` and `is` in Python?