The jar package into the local repository maven

https://blog.csdn.net/lvdaan/article/details/79760976

  • A first configuration environment variable

    Maven added in the path of the bin, for example, the path: D: \ soft \ apache-maven-3.2.5 \ bin;

    Open cmd, execute mvn -h View maven environment variable is configured correctly

  • Second, download the jar package you want to add, find the location of the jar package

  • Third, in cmd to the location of where the jar 

  • 四、输入  mvn install:install-file -DgroupId=com.alipay -DartifactId=trade-sdk -Dversion=1.0.0 -Dpackaging=jar -Dfile=alipay-trade-sdk-1.0.0.jar

        -DgroupId: indicates a corresponding jar groupId  

com.alipay
        -DartifactId: indicates a corresponding jar artifactId

trade-sdk
        -Dversion: represents the corresponding version jar

1.0.0

Guess you like

Origin www.cnblogs.com/GitHung-Zeng/p/11682128.html