示例是shiro
<!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-web -->
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-web</artifactId>
<version>1.10.0</version>
</dependency>
mvn install:install-file -DgroupId=org.apache.shiro -DartifactId=shiro-web -Dversion=1.10.0 -Dpackaging=jar -Dfile=C:\Users\DELL\Downloads\shiro-web-1.10.0.jar
<!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-core -->
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-core</artifactId>
<version>1.10.0</version>
</dependency>
mvn install:install-file -DgroupId=org.apache.shiro -DartifactId=shiro-core -Dversion=1.10.0 -Dpackaging=jar -Dfile=C:\Users\DELL\Downloads\shiro-core-1.10.0.jar
<!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-spring -->
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>1.10.0</version>
</dependency>
mvn install:install-file -DgroupId=org.apache.shiro -DartifactId=shiro-spring -Dversion=1.10.0 -Dpackaging=jar -Dfile=C:\Users\DELL\Downloads\shiro-spring-1.10.0.jar
<!-- https://mvnrepository.com/artifact/org.apache.shiro/shiro-cas -->
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-cas</artifactId>
<version>1.10.0</version>
</dependency>
mvn install:install-file -DgroupId=org.apache.shiro -DartifactId=shiro-cas -Dversion=1.10.0 -Dpackaging=jar -Dfile=C:\Users\DELL\Downloads\shiro-cas-1.10.0.jar
mvn install:install-file -DgroupId=org.springframework.security -DartifactId=spring-security-crypto -Dversion=5.6.2 -Dpackaging=jar -Dfile=C:\Users\DELL\Desktop\spring-security-crypto-5.6.2.jar
记Maven命令打包到本地库*.pom文件打包不完整的解决思路
https://blog.csdn.net/qq_16291159/article/details/109576252
mvn install:install-file -DgroupId=gid -DartifactId=aid -Dversion=version -Dfile=xxx.jar -Dpackaging=jar -DpomFile=本地的pom.xml路径
https://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html
http://t.zoukankan.com/lixuwu-p-5855031.html