此方法仅供本地使用(适用于从别的地方拷贝来一个jar 但需要在本地maven项目中引用的情况)
例如 修改了ueditor 打包 -> ueditor-edit-1.0.jar 放到本地maven仓库的以下位置 repository\aaa\ueditor\ueditor-edit\1.0
那么引用方式为:
<dependency>
<groupId>aaa.ueditor</groupId>
<artifactId>ueditor-edit</artifactId>
<version>1.0</version>
</dependency>
推荐方式 发布第三方Jar到本地库中:
mvn install:install-file -DgroupId=com -DartifactId=client -Dversion=0.1.0 -Dpackaging=jar -Dfile=d:\client-0.1.0.jar
更优解决方案: src同级lib
<!-- 阿里云短信 -->
<dependency>
<groupId>aliyun</groupId>
<artifactId>sms-core</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/aliyun-java-sdk-core-3.3.1.jar</systemPath>
</dependency>
<dependency>
<groupId>aliyun</groupId>
<artifactId>sms-dysmsapi</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/aliyun-java-sdk-dysmsapi-1.0.0.jar</systemPath>
</dependency>
<!-- qq login -->
<dependency>
<groupId>qq</groupId>
<artifactId>qqsdk4j</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/qqSdk4J.jar</systemPath>
</dependency>
<dependency>
<groupId>qrcode</groupId>
<artifactId>Qrcode_swetake</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/Qrcode_swetake.jar</systemPath>
</dependency>