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

来源:互联网 发布:电子商务网络推广 编辑:程序博客网 时间:2024/06/01 09:36



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>

0 0
原创粉丝点击