mvn install:install-file
-DgroupId=包名
-DartifactId=项目名
-Dversion=版本号
-Dpackaging=jar
-Dfile=jar文件所在路径
以kettle-core.jar为例:
1、将kettle-core.jar文件放在“D:\JAR_LIB”目录下(该目录任意)
2、执行命令:
扫描二维码关注公众号,回复:
6568598 查看本文章
mvn install:install-file -Dfile=D:\JAR_LIB\kettle-core.jar -DgroupId=org.pentaho -DartifactId=kettle-core -Dversion=4.4.0 -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true
这样maven向本地仓库导入 kettle-core.jar 包就成功了。
3.在项目的pom.xml文件中增加如下配置:
<dependency>
<groupId>org.pentaho</groupId>
<artifactId>kettle-core</artifactId>
<version>4.4.0</version>
</dependency>
转载于:https://my.oschina.net/u/1986568/blog/498976