如何在maven中添加本地jar包时间:2023-03-08 21:00:36 mvn install:install-file -DgroupId=mytest-DartifactId=test-Dversion=1.1 -Dpackaging=jar -Dfile=d:\test-1.1.jar 相当与在pom.xml中添加了 <dependency> <groupId>mytest</groupId> <artifactId>test</artifactId> <version>1.1</version> </dependency>