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>