<!-- https://mvnrepository.com/artifact/com.hortonworks/shc-core -->
<dependency>
<groupId>com.hortonworks</groupId>
<artifactId>shc-core</artifactId>
<version>1.1.1-2.1-s_2.11</version>
</dependency>
编写mvn命令导入,groupId,artifactId,version和上面的一一对应即可
C:\WINDOWS\system32>mvn install:install-file -Dfile=C:\Users\10959\Downloads\shc-core-1.1.0-2.1-s_2.11.jar -DgroupId=com.hortonworks -DartifactId=shc-core -Dversion=1.1.1-2.1-s_2.11 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing C:\Users\10959\Downloads\shc-core-1.1.0-2.1-s_2.11.jar to C:\Users\10959\.m2\repository\com\hortonworks\shc-core\1.1.1-2.1-s_2.11\shc-core-1.1.1-2.1-s_2.11.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.498 s
[INFO] Finished at: 2019-04-18T13:13:17+08:00
[INFO] Final Memory: 8M/245M
[INFO] ------------------------------------------------------------------------
然后结果如下: