maven加载本地lib下的jar包(pom.xml)
时间:2016-03-23 18:29:19
收藏:0
阅读:471
1.将本地jar放置到仓储库
在jar包目录下
mvn install:install-file -Dfile=sqljdbc4.jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0 -Dpackaging=jar
在pom.xml中加入
<dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>sqljdbc4</artifactId> <version>4.0</version> </dependency>
原文:http://www.cnblogs.com/zrui-xyu/p/5312275.html
评论(0)