zoukankan      html  css  js  c++  java
  • jenkins build maven project under redhat

    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 

     


     






  • 相关阅读:
    ng-if 下ng-model失效 ng-repeat循环输出单选框
    ng-repeat输出当前值,ng-class的使用
    SQL-select中使用条件判断语句
    JS-Ajax
    ASP.NET-缓存Cache
    MVC-Filter-脚本注入
    三层架构与MVC的区别
    MVC-Route
    cookie-session
    初衷
  • 原文地址:https://www.cnblogs.com/xiyu311/p/9542171.html
Copyright © 2011-2022 走看看