Maven home: /usr/share/maven
安装jar包
mvn install:install-file -Dfile=kaptcha-2.3.jar -DgroupId=com.google.code -DartifactId=kaptcha -Dversion=2.3 -Dpackaging=jar
<dependency>
<groupId>com.google.code.kaptcha</groupId>
<artifactId>kaptcha</artifactId>
<version>2.3</version>
</dependency>
mvn install:install-file -Dfile=taobao-sdk-java-auto_1455552377940-20160607.jar -DgroupId=com.taobao.code -DartifactId=taobao-sdk-java-auto -Dversion=20160607 -Dpackaging=jar
更改.m2路径
sudo vim /usr/share/maven/conf/settings.xml
增加: <localRepository>/var/lib/jenkins/.m2/repository</localRepository>