晰雨

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

 

 

Jenkins install Maven plugin

After plugin installation completed, restart Jenkins and go to global setting to set Maven

 

 

Download Maven and unzip

Add Maven bin to current user bash_profile and verify 

tar xvf apache-maven-3.2.1-bin.tar.gz
vi ~/.bash_profile
source !/.bash_profile
mvn --help

 

Config Maven proxy setting 
{M2_HOME}/conf/settings.xml




And create Maven project using command line

mvn archetype:generate -DgroupId=com.jsoft.test -DartifactId=testproject -Dversion=1.0-SNAPSHOT -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false -DarchetypeVersion=RELEASE


 

 

Go to eclipse , select open existed project 

update maven proxy setting in eclipse, select maven setting.xml with proxy information existed.

 

 

Set Maven path setting in Jenkins global setting 

Maven setting.xml 

 

Maven install path

 

Create new item, select Maven project

update POM location

 

 done 

 

 

 

 


 






 

posted on 2018-08-27 14:50  晰雨  阅读(111)  评论(0编辑  收藏  举报