安装:
1. 打开控制台,切换到maven安装的bin目录
2. 执行命令 mvn install:install-file -DgroupId=domain.group -DartifactId=ArtifactId -Dversion=1.0.0.1 -Dpackaging=jar -Dfile=c:\mypackage.jar
3. pom.xml 文件设置dependency
<dependency> <groupId>domain.group</groupId> <artifactId>ArtifactId</artifactId> <version>1.0.0.1</version> </dependency>
卸载:
1.mvn dependency:purge-local-repository -DmanualInclude="domain.group:ArtifactId"
2.mvn dependency:purge-local-repository -DreResolve=false
标签:domain,group,jar,idea,maven,dependency,ArtifactId From: https://www.cnblogs.com/nanfei/p/16266802.html