jenkins Git maven Nexcus 构建环境搭建

 1:搭建Git Maven Jenkins Nexcus 环境

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

    继续安装插件 ,如果还有这样的错误,则修改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 找不到,是因为资源没有上传到服务器

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值