maven依赖非maven库中jar的两种方法
2016-06-16 10:03
183 查看
1.利用
2.利用
maven-compiler-plugin
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.2</version> <configuration> <encoding>${maven.compiler.encoding}</encoding> <source>1.6</source> <target>1.6</target> <compilerArguments> <extdirs>src\main\webapp\WEB-INF\lib</extdirs> </compilerArguments> </configuration> <executions> <execution> <phase>compile</phase> </execution> </executions> </plugin>
2.利用
dependency (本人未测试)
<dependency> <groupId>org.apache</groupId> <artifactId>test</artifactId> <version>1.0</version> <scope>system</scope> <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/xx.jar</systemPath> </dependency>
相关文章推荐
- 经典SQL语句大全
- LOCAL_LDLIBS报错
- 根据文字计算label的高度
- SSL编程(2).NET最简单的客户端
- 浏览器端JS导出EXCEL
- <Sicily>Brackets Matching
- TCP Socket链接检测方法
- ASmack4.0.7详细讲解
- MVC和MVP在App中的对比分析以及实际应用
- javascript的replace方法结合正则使用实例总结
- 使用MyBatis(九)一对多的集合的嵌套查询
- linphone 编译
- [转]Statement和PreparedStatement批量更新
- LINUX常用命令 第一天总结
- Java基础--- 如何配置环境变量
- 微信URL Scheme
- PHPStorm显示代码行号设置
- Android Studio 代码多屏查看
- 解决 recvfrom的 阻塞
- 我们到底是不是产品经理