命令行安装jar包到maven本地仓库

mvn install:install-file -Dfile=(参数一) -DgroupId=(参数二) -DartifactId=(参数三) -Dversion=(参数四) -Dpackaging=jar

参数一:jar包的位置
参数二:groupId
参数三:artifactId
参数四:version

<dependency>
    <groupId>org.jeecgframework.p3</groupId>
    <artifactId>jeecg-p3-biz-mail</artifactId>
    <version>1.0.0</version>
</dependency>
mvn install:install-file -Dfile=jeecg-p3-biz-mail-1.0.0.jar -DgroupId=org.jeecgframework.p3 -DartifactId=jeecg-p3-biz-mail -Dversion=1.0.0 -Dpackaging=jar

pom安装
mvn install:install-file -Dfile=xxx-1.1.1.pom -DgroupId=(参数二) -DartifactId=(参数三) -Dversion=(参数四) -Dpackaging=pom

pom下载:http://maven.jeecg.org/nexus/content/repositories/jeecg/org/jeecgframework/jeasypoi/2.2.0/jeasypoi-2.2.0.pom

<dependency>
    <groupId>org.jeecgframework</groupId>
    <artifactId>jeasypoi</artifactId>
    <version>2.2.0</version>
    <type>pom</type>
</dependency>
mvn install:install-file -Dfile=jeasypoi-2.2.0.pom -DgroupId=org.jeecgframework -DartifactId=jeasypoi -Dversion=2.2.0 -Dpackaging=pom 
posted @ 2020-10-06 20:38  jhai  阅读(387)  评论(0编辑  收藏  举报
……