本地jar使用Maven坐标

此方法仅供本地使用(适用于从别的地方拷贝来一个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>

转载于:https://my.oschina.net/isharecn/blog/1839877

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值