Jar package imported into local Maven repository

Import Maven instructions:

mvn install:install-file -Dfile=E:\JAVA\jar\httpmime-4.5.2.jar -DgroupId=org.apache.http.entity.mime -DartifactId=httpmime -Dversion=4.5.2 -Dpackaging=jar

The parameters are as follows: 

mvn install:install-file -Dfile=E:\JAVA\jar\httpmime-4.5.2.jar 
                         -DgroupId=org.apache.http.entity.mime 
                         -DartifactId=httpmime 
                         -Dversion=4.5.2 
                         -Dpackaging=jar

Parameter Description:

(1) -Dfile : Specify the jar file path and file name (only the file name is required in the same directory)

(2) -DgroupId : Set the package name of the project code (usually the organization name is used)

(3) -DartifactId : Set the project name or module name

(4) -Dversion : version number

(5) -Dpackaging : What type of file ( jar package )

 Results of the: 

Introduced in project Pom.xml: 

<dependency>
    <groupId>org.apache.http</groupId>
    <artifactId>httpcore</artifactId>
    <version>4.4.4</version>
</dependency>

Guess you like

Origin blog.csdn.net/sssxlxwbwz/article/details/125662968