1. 程式人生 > >maven專案對於maven遠端倉庫沒有資源的解決辦法

maven專案對於maven遠端倉庫沒有資源的解決辦法

下載資源到本地

方法一:dependency scope 是system 型別

 <dependency>
            <groupId>edu.ucar</groupId>
            <artifactId>netcdfAll</artifactId>
            <version>4.6.6</version>
            <scope>system</scope>
            <systemPath>D:/workspace/gitlab/dezhou-task-addins-cimiss/20181205/lib/netcdfAll-4.6.6.jar</
systemPath> </dependency>

 

方法二:mvn install:install-file -Dfile=D:\迅雷下載\netcdfAll-4.6.6.jar -DgroupId=edu.ucar -DartifactId=netcdfAll -Dversion=4.6.6 -Dpackaging=jar 把一個本地jar 安裝到本地倉庫中