maven怎样导入自己写的包

1 需要在pom.xml中,设置好自己的jar包信息。下面为例子:<dependency><groupId>com.arr</groupId><artifactId>xxxx</artifactId><version>0.1</version></dependency>2 把上面的信息填写好后,则需要使用命令进行安装操作mvn install:install-file -DgroupId=com.arr -DartifactId=arrow -Dversion=0.1 -Dfile=E:jichengxxxx-0.1.0.jar -Dpackaging=jarDgroupId:pom.xml中的groupidDartifactId:pom.xml中的artifactIdDversion:pom.xml中的versionDfile:jar包在本地中的路径Dpackaging:包类型3 上面的命令在cmd中操作完成后,就可以在repository中查看到jar了。
文章标签:

本文链接:https://www.u1e.cn/baike/a/f3fe3ea63bbfaf3361f0f039 [复制]

猜你喜欢

歇后语大全

还没有人回应过