Manually add the jar package to the local MAVEN repository (tested) OK

Source: Internet
Author: User
Tags unique id aliyun

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.