78767480
The Maven install command can be used when the required jar package is not found in the central repository or in the MAVEN repository where you want to put the jar package that you generated.
Here are the steps (provided that MAVEN is installed and environment variables are configured).
Example
① will need to install the jar pack into the D drive
② Open the command line and enter the following command
MVN Install:install-file-dfile=jar The position of the package-dgroupid= above the groupid-dartifactid= above the artifactid-dversion= above the version- Dpackaging=jar
Example
③ at this point, you can open the Maven repository and find the jar package you just installed, based on GroupID
Open the diagram Pom file
如下在项目POM文件中引用即可<dependency> <groupId>com.aliyun</groupId> <artifactId>aliyun-java-sdk-core</artifactId> <version>3.2.3</version></dependency>
MAVEN command installs JAR package to local repository