批量离线安装jar 包到maven本地仓库

//installer.bat
@echo off
set localdir=%~dp0
call mvn install:install-file -DgroupId=org.zhixun -DartifactId=IKAnalyzer -Dversion=3.2.3 -Dpackaging=jar -Dfile=%localdir%/libs/IKAnalyzer3.2.3Stable.jar

call mvn install:install-file -DgroupId=org.zhixun -DartifactId=IKAnalyzer -Dversion=3.2.3 -Dpackaging=jar -Dfile=%localdir%/libs/IKAnalyzer3.2.3Stable.jar
pause

		<dependency>
			<groupId>org.zhixun</groupId>
			<artifactId>IKAnalyzer</artifactId>
			<version>1.0</version>
			<scope>system</scope>
			<systemPath>${basedir}/../parent/libs/IKAnalyzer3.2.3Stable.jar</systemPath>
		</dependency>

  

posted @ 2019-08-04 01:49  不带R的墨菲特  阅读(1046)  评论(1编辑  收藏  举报