• 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 

     


     






  • 相关阅读:
    Hadoop-CDH源码编译
    HBase框架基础(四)
    HBase框架基础(三)
    Scala基础简述
    HBase框架基础(一)
    NOI2015 软件包管理器
    可持久化数据结构入门
    树链剖分 入门
    NOIP2009 最优贸易
    高斯消元 模板
  • 原文地址:https://www.cnblogs.com/xiyu311/p/9542171.html
Copyright © 2020-2023  润新知