执行命令mvn install:install-file -DgroupId=net.neoremind -DartifactId=fountain-common -Dversion=v1.0.0 -Dpackaging=jar -Dfile=E:\aspose-pdf-2.9.0-jdk16.jar
执行完,后续maven引用此包
net.neoremind
fountain-common
1.0.0
-DgroupId 指定groupId
-DartifactId 指定artifactId
-Dversion 指定版本
-Dpackaging 指定文件是jar的
-Dfile jar文件位置适用于去网上找的jar,但是又在线上mvn没有的,然后把这个jar放入自己maven仓库里
Original: https://www.cnblogs.com/gjths/p/16490209.html
Author: ExpectoPatronum—S
Title: 安装jar包到本地maven仓库命令
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/608492/
转载文章受原作者版权保护。转载请注明原作者出处!