没有/不用pom.xml文件下将jar包安装到本地maven仓库命令
2026/6/7 21:30:53 网站建设 项目流程

命令示例

mvn org.apache.maven.plugins:maven-install-plugin:3.1.4:install-file"-Dfile=E:\LZH\badu_face_demo\face_root\lib\opencv-320.jar""-DgroupId=org.opencv""-DartifactId=opencv-320""-Dversion=3.2.0""-Dpackaging=jar"

为什么不需要pom.xml?

完全限定名

org.apache.maven.plugins:maven-install-plugin:3.1.4:install-file

坐标分解

坐标属性命令中的值对应本地路径位置
groupIdorg.opencv…\org\opencv\
artifactIdopencv-320…\opencv-320\
version3.2.0…\3.2.0\
文件名(自动生成)opencv-320-3.2.0.jar

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询