Most of the time, the jar packages we need are not on the MAVEN repository.
We can find this jar package ourselves, but how to use it in the Pom file configuration.
We need to manually add the local jar package to the local Maven repository.
If you have already configured the MAVEN environment variable
Use the MVN command:
MVN Install:install-file-dfile=jar Package Location-dgroupid= is generally the company name reverse-dartifactid= unique id-dversion= version number-dpackaging=jar
For example: Add Fastdfs jar Pack
1, in the folder where the jar package is located, right-click-here to open the command window
MVN Install:install-file-dfile=fastdfs_client_v1.20.jar-dgroupid=com.hueason-dartifactid=fastdfs_client- Dversion=1.20-dpackaging=jar
3, enter, see Install success
4 can then be introduced in the project Pom file
= = = My case command: MVN install:install-file-dfile=fastdfs_client_v1.20.jar-dgroupid=com.hueason-dartifactid=fastdfs_ Client-dversion=1.20-dpackaging=jar
= = Template.
= = = Manual Configuration Ali is larger than SMS 2 dependent packages:
=====ok
MVN install:install-file-dfile=aliyun-java-sdk-core-3.3.1.jar-dgroupid=aliyun.java.sdk-dartifactid= Aliyun-java-sdk-core-dversion=3.3.1-dpackaging=jar
=====ok
MVN install:install-file-dfile=aliyun-java-sdk-dysmsapi-1.0.0.jar-dgroupid=aliyun.java.sdk-dartifactid= Aliyun-java-sdk-dysmsapi-dversion=1.0.0-dpackaging=jar
<dependency>
<groupId>com.hueason</groupId>
< Artifactid>fastdfs_client</artifactid>
<version>1.20</version >
</dependency>