1.jar包
链接:https://pan.baidu.com/s/1jUw6aRhnUAnxnUOeZQpLrw
提取码:77j1
原文链接: https://www.cnblogs.com/zeng1994/p/7486330.html
2.由于中央仓库中没有这个jar包,所以需要安装到本地maven仓库
在Windows打开cmd,运行以下命令:
mvn install:install-file
-DgroupId=com.javastruct : 设置项目代码的包名
-DartifactId=javastruct : 设置项目名或模块名
-Dversion=0.1 : 版本号
-Dpackaging=jar : 什么类型的文件(jar包)
-Dfile=<myfile.jar> : 指定jar文件路径与文件名(同目录只需文件名)
安装命令实例:
mvn install:install-file -DgroupId=com.javastruct -DartifactId=javastruct -Dversion=0.1 -Dpackaging=jar -Dfile=javastruct-0.1.jar
执行完命令后,出现上面的提示,代表安装成功了。
3.pom中使用
<dependency>
<groupId>com.javastruct</groupId>
<artifactId>javastruct</artifactId>
<version>0.1</version>
</dependency>