maven 安装jar包到本地库

maven 安装jar包到本地库
1.切换到maven软件安装目录的bin目录下
2.执行下面这句命令,-Dfile 代表jar 包放置目录,   -DgroupId 表示pom.xml 里面groupId,  -DartifactId表示pom.xml 里面artifactId, -Dversion表示pom.xml 里面version

./mvn install:install-file -Dfile="/home/peixp/文档/qzt2018缺少的lib/edtftpj-3.5.jar" -DgroupId=edtftpj -DartifactId=edtftpj -Dversion=1.0 -Dpackaging=jar

猜你喜欢

转载自blog.csdn.net/qq_32157851/article/details/79895792