0
点赞
收藏
分享

微信扫一扫

pycharm 配置篇

村里搬砖的月野兔 2024-10-08 阅读 33
mavenjar

有时候我们需要把本地的 jar 包 install 到本地的 maven 仓库,这时就需要手动install依赖项。例如,把下面的 zhdx-license-1.0.jar 安装到本地 maven 仓库的操作如下:

<dependency>
    <groupId>com.zhdx</groupId>
    <artifactId>zhdx-license</artifactId>
    <version>1.0</version>
    <scope>system</scope>
    <systemPath>${project.basedir}/libs/zhdx-license-1.0.jar</systemPath>
</dependency>

在命令行窗口执行 mvn install 指令:

mvn install:install-file -DgroupId=com.zhdx -DartifactId=zhdx-license -Dversion=1.0 -Dpackaging=jar -Dfile=D:\zhdx-license-1.0.jar
举报

相关推荐

0 条评论