Add your own private Mvn jar package to a local warehouse

 
  1. mvn install:install-file

  2. -DgroupId=包名

  3. -DartifactId=项目名

  4. -Dversion=版本号

  5. -Dpackaging=jar

  6. -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: 

 
  1. 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:

 
  1. <dependency>

  2.       <groupId>org.pentaho</groupId>

  3.       <artifactId>kettle-core</artifactId>

  4.       <version>4.4.0</version>

  5. </dependency>





Is known from notes (Wiz)



Reproduced in: https: //my.oschina.net/u/1986568/blog/498976

Guess you like

Origin blog.csdn.net/weixin_33722405/article/details/92164292