pycharm 配置篇

阅读 36

2024-10-08

有时候我们需要把本地的 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)

0 0 举报