jenkins Git maven Nexcus 构建环境搭建

 1:搭建Git Maven Jenkins Nexcus 环境

    首先创建Maven Project ,android 的project 是基于M2 插件,经常出现的错误就是,

jenkins Git maven Nexcus 构建环境搭建_第1张图片

    继续安装插件 ,如果还有这样的错误,则修改pom.xml 文件

    注意开放的过程中,自己手动的修改POM文件,


2:如何配置Git 和Jenkins 的配置,还有Nexcus 的配置,首先说明一下,我们开发是基于Git 的管理,Git管理代码,编译的代码需要在Git服务器上下载 ,下载到Jenkins, 然后再继续编译,如何配置Jenkins ?:

     

  Repositories
Repository URL

Branches to build
Branch Specifier (blank for 'any'

3:经常遇到的问题:找不到POM.首先确认POM 文件的位置

   

4:Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.9.0-rc.1:generate-sources (default-generate-sources) on project heavenPie: Execution default-generate-sources of goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.9.0-rc.1:generate-sources failed: Error reading /opt/android-sdks-linux/tools/source.properties -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Build step 'Invoke top-level Maven targets' marked build as failure


这个bug:是修改如下:


http://stackoverflow.com/questions/24423624/maven-android-error-reading-file-source-properties


5:修改jar 找不到,是因为资源没有上传到服务器

你可能感兴趣的:(Jenkins,编译Maven)