事件起因:公司需要兼容友盟UMeng推送,比较着急所以简单集成了一下,结果Jenkins打包的时候在私服中找不到友盟Demo的Jar包,如下图所示:
一般来说,公司的私服中取寻找一些常用的包是完全没有问题的,并且会随着你的项目使用版本的更迭而更新。偏偏现在这个包不常用,这时候就需要你将包手动添加到私服中。
添加方式一百度一大把,大概就是下面这样
mvn -X deploy:deploy-file
"-DgroupId=com.umeng.message"
"-DartifactId=push"
"-Dversion=0.1.0"
"-Dpackaging=jar"
"-Dfile=E:\maven-repository\com\umeng\message\push\0.1.0\push-0.1.0.jar"
"-Durl=http://nexus.**.com.cn/nexus/content/groups/public/"
"-DrepositoryId=***"
<!-- https://mvnrepository.com/artifact/com.umeng.message/push -->
<dependency>
<groupId>com.umeng.message</groupId>
<artifactId