标签:jar use end top file pen ffline nbsp offline
1、修改maven的setting中的标签<offline>true</offline>为true 使他支持引用;
2、cmd用管理员运行命令:
mvn install:install-file -Dfile=C:/Users/yuhuiqing/Desktop/yhqutil-1.0.jar -DgroupId=yhqutil -DartifactId=yhqutil -Dversion=1.0 -Dpackaging=jar
3、pom引用
<dependency> <groupId>yhqutil</groupId> <artifactId>yhqutil</artifactId> <version>1.0</version> </dependency>
标签:jar use end top file pen ffline nbsp offline
原文地址:https://www.cnblogs.com/yuhuiqing/p/10686855.html