把本地的jar包添加到Maven仓库

2018-08-07  本文已影响0人  朱穆朗玛

一、安装maven环境,配置环境变量。

二、准备要放入私库的jar包

springside-core-4.2.3-GA.jar

三、编写pom.xml文件对应的参数

<dependency>
    <groupId>io.springside</groupId>
    <artifactId>springside-core</artifactId>
    <version>4.2.3-GA</version>
</dependency>

四、命令行执行添加指令

mvn install:install-file -DgroupId=io.springside -DartifactId=springside-core -Dversion=4.2.3-GA -Dfile=E:\springside-core-4.2.3-GA.jar -Dpackaging=jar

五、查看本地Maven仓库

上一篇 下一篇

猜你喜欢

热点阅读