idea maven项目如何使用lib下得jar包

在项目开发中,一般使用maven来管理项目,但有时还需要引用本地lib下的jar包

比如,中央仓库没有jar包。这时我们就需要引入lib下的jar包了。

 

1.首先在dependencies里加入本地jar包。如图1.1所示
在点击红色方框处加号,选择添加JARs or directories

添加项目lib下的jar包,如图1.2   1.3所示。

                                                                                                      图1.1

 

                                                                                                                图1.2

                                                                                                                图1.3

2.如图1.4,进入Artifacts,右击将新添加的lib下的包,put into /WEB-LIF/lib

                                                                                                             图1.4

                                                                                                                 图1.5

                                                                                                                图1.6

3.重新打包

                                                                                                   

版权声明:本文为博主原创文章,未经博主允许不得转载。 http://blog.csdn.net/StartGala/article/details/70313229
posted @ 2018-03-13 10:42  javaobject  阅读(19839)  评论(0编辑  收藏  举报