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

时间:2021-08-20 09:06:49



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>