mvn 添加本地jar - 简书

1、jar包安装:

切换到jar所在目录;
安装:
mvn install:install-file -Dfile=fabric-sdk-java-1.1.0.jar -DgroupId=org.hyperledger.fabric -DartifactId=fabric-sdk-java -Dversion=1.1.0 -Dpackaging=jar

出现:
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.635 s
[INFO] Finished at: 2018-05-04T09:53:06+08:00
[INFO] Final Memory: 6M/157M
[INFO] ------------------------------------------------------------------------
成功!

2、jar包引入:

        <dependency>
            <groupId>org.hyperledger.fabric</groupId>
            <artifactId>fabric-sdk-java</artifactId>
            <version>1.1.0</version>
        </dependency>

推荐阅读更多精彩内容