Load local maven jar package

2019-08-15

Use maven jar package is loaded situation will not match the version number, maven repository no corresponding version of the jar, then you can find the corresponding jar package saved locally from the Internet, use the following command and then packed into a local warehouse

  • mvn install:install-file -Dfile=xxx-2.2.2.jar -DgroupId=xxx.xxx -DartifactId=xxx -Dversion=2.2.2 -Dpackaging=jar
  • The groupid jar package, artifactid, the corresponding modified version number xxx

Reference to the pom file

<dependency>
<groupId>com.artofsolving</groupId>
<artifactId>jodconverter</artifactId>
<version>2.2.2</version>
</dependency>

Guess you like

Origin www.cnblogs.com/lozz/p/11356186.html