将下载到本地的JAR包手动添加到Maven仓库

xiaoxiao2021-02-28  113

mvn install:install-file -Dfile=/home/james/桌面/lib/asm-all-5.0.3.jar -DgroupId=azhe.jvm -DartifactId=asm-all-5.0.3 -Dversion=99.0.0 -Dpackaging=jar

groupId artifactId version随便写

<dependency> <groupId>commons-dbcp</groupId> <artifactId>commons-dbcp</artifactId> <version>RELEASE</version> </dependency> <dependency> <groupId>azhe</groupId> <artifactId>jox</artifactId> <version>1.17b3</version> <scope>system</scope> <systemPath>/home/james/lib/other/jox-1.17b3.jar</systemPath> </dependency>

 

 

转载请注明原文地址: https://www.6miu.com/read-32620.html

最新回复(0)