MVN install: install-file-dgroupid = package name -dartifactid = project name -dversion = version number -dpackaging =jar -dfile =jar file path 1. There is a JAR in the local D disk, for example: D:\ qrcode. jar 2, CMD run MVN install command format:  mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id>-DartifactId=<artifact-id> -Dversion=<version> - Dpackaging = < packaging > such as: MVN install: install-file-dfile =D:\ qrcode. jar -dgroupid = qrcode-dartifactid = qrcode-dversion =3.0 -dpackaging =jar 3, Add the following statement to PAM.xml: <dependency> <groupId>QRCode</groupId> <artifactId>QRCode</artifactId> <version>3.0</version> </dependency>Copy the code