Maven hits third-party jar packages to local

1. Enter the location of the jar package and execute the following command

mvn install:install-file -Dfile=helper.jar -DgroupId=com.ebay -DartifactId=helper -Dversion=1.0 -Dpackaging=jar

Prompt BUILD SUCCESS and other words, it means that the packaging is successful.

2. Reference jar

<dependency>
    <groupId>com.ebay</groupId>
    <artifactId>helper</artifactId>
    <version>1.0</version>
  </dependency>

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326987376&siteId=291194637