[] How to use Maven pom.xml to introduce custom jar package

Here I am with this jar package, for example, aliyun-java-sdk-core-3.2.3.jar, which is what I was doing SMS service jar kits

① into the maven repository under the C drive C: \ Users \ user \ .m2 \ repository

   Create a folder aliyun-java-sdk-core, enter, and then create a folder with the same name

② enter, create a name for 3.2.3 (jar package version number) folder

③ The packet copy from the jar over the heads defined, a new file of the same name .pom 

目录:\Repository\aliyun-java-sdk-core\aliyun-java-sdk-core\3.2.3

 

 

   Wrote in the .pom

<project>   
  <modelVersion>1.0.0</modelVersion>   
  <groupId>aliyun-java-sdk-core</groupId>   
  <artifactId>aliyun-java-sdk-core</artifactId>   
  <version>3.2.3</version>   
</project>

④ Finally, this jar package introduced in pom.xml project on OK

<dependency>
    <groupId>aliyun-java-sdk-core</groupId>
    <artifactId>aliyun-java-sdk-core</artifactId>
    <version>3.2.3</version>
</dependency>

 

Guess you like

Origin www.cnblogs.com/wsy0202/p/11543564.html