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 

     


     






  • 相关阅读:
    《JAVA高级程序设计》第四周作业
    《JAVA高级程序设计》第三周作业
    《Java高级程序设计》第二周作业
    《Java高级程序设计》第一周作业
    javar日志
    JAVA日志
    JAVA日志
    java日志
    JAVA日志
    JAVA日志
  • 原文地址:https://www.cnblogs.com/xiyu311/p/9542171.html
Copyright © 2011-2022 走看看