mvn install:install-file
-DgroupId=包名
-DartifactId=项目名
-Dversion=版本号
-Dpackaging=jar
-Dfile=jar文件所在路径
To kettle-core.jar example:
1, the kettle-core.jar files in: Under "D \ JAR_LIB" directory (the directory is arbitrary)
2, execute the command:
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
Such imported to the local maven repository kettle-core.jar package will be successful.
3. Add the following configuration in the pom.xml file of the project:
<dependency>
<groupId>org.pentaho</groupId>
<artifactId>kettle-core</artifactId>
<version>4.4.0</version>
</dependency>
Reproduced in: https: //my.oschina.net/u/1986568/blog/498976