This article describes the idea of using GitHub as a MAVEN repository primarily:
Create Mvn-repo branch on GitHub project, use Mvn-repo branch as Maven repository
Configure Pom.xml to use Target/mvn-repo as a temporary MAVEN repository for on-premises deployment
Use GitHub Site-maven-plugin at deployment to push the local MAVEN repository to the
install
Input: sudo apt-Get install openjdk-6-jre-headless, installation is OK, and then view the version:
Wayne @ Ubuntu :~ $ Java-version
Java version "1.6.0 _ 22"
Openjdk Runtime Environment (icedtea6 1.10.2) (6b22-1.10.2-0ubuntu1 ~ 11.04.1)
Openjdk server VM (build 0-b11, mixed mode)
JDK is installed.
Ii. Download source code
Now we have prepared the environment required for Android source code development (no error). The process of downloading the source code is very huge
The previous Code has constructed an android source code library locally. Let's take a look at how the source code library is constructed.
All of this is based on the construction tool named repo. Go back to the initial command $ curl http://android.git.kernel.org/repo> ~ /Bin/RepoThis command downloads a script named repo from the website. It is actually a Pyth
Download Android source code
When downloading the android source code for the first time, you will inevitably encounter some small issues, such as so.
If the English is good, you can directly look at this: http://source.android.com/source/downloading.html1. Create a folder for your source code:
$ mkdir ~/bin$ PATH=~/bin:$PATH
Ii. Download tool repo
$ curl http://commondatastorage.googleapis.com/git-repo-
Repo Init-u ssh://[email protected]: 29419/manifest - m K86a.xmlUse the-m parameter to specify that the K86A.MXL file is used specificallyStep 1. Curl Http://gerrit.y/repo > RepoInstall repo to update the Android source code. Download the repo script, repo is an android-to-g
Divided into 4 processes
SOURCE download
Building a compilation environment
Compiling source code
Run
Source download install git and configure//安装gitsudo apt-get install git//配置git名称和邮箱git config --global user.name "your name"git config --global user.email "[emailprotected]"Create a repo bin directory and source directory
Create a bin directory for repomidir ~/bin
Create source Directorymidir ~/sou
folder (local directory name, optional, default current directory)//view index.html current version and version 3 of the difference SVN diff/di–revision/r 3 index.html//view index.html version 3 and version 4 difference svn diff/di–revision/r 3:4 index.html
Generally this time, there is no special situation, directly into the "submit" phase, and then end a working day or work cycle, but there will be some special circumstances.
Cancel Modification
When your code review and you find some chan
Deferred Helper (3132)When is a helper method for delaying object deferred. var DFD = $. Deferred (); Create a deferred object DFD. Done (); Dfd.fail (); Used: $.when (). done (); $.when (). fail ();The return value of when, is a lingering object.Source: Return Deferred.promise ();As an example: when you can wait for multiple lingering objects to succeed, the trigger succeeds.Example: (1)Success must be successful for more than one. function
Array API
Api:application programming Interface, application programming interface;
JS in the object provided by the method is called the API;
instanceof检测一个对象是否是数组;(用来对付复杂数据类型;)// 简单数据类型 typeof ;A instanceof B // A是不是B造出来的;例: var arr = [1,2,3]; console.log(arr instanceof Array); //arr属不属于Array类型;Array.isarray ()Array.isArray(参数); // 判断参数是不是数组,返回布尔值;例: var arr = [1,2,3]; var num = 123; console.log(Array.isArray(arr)); //true console.log(Array.isArray(num)); /
1. What is a function declaration, function expressionFunctions declaration: Function Function name () {}Functional expression: Function name () {}. The function name can be written without writing. Written, is named function expression, do not write is anonymous function expressionExample:function aaa () {};var a=function aaa () {}; named function expressionvar a=function () {}; anonymous function expressi
1. Topology diagramDescription: The configuration will eventually be able to log on to R4 via R5 with the Telnet protocol and rename R4 to R442. R4 Configurationsysenter system View, return user view with Ctrl+z.[huawei]sysname R4[r4]user-inch[R4]user-interface Vty [R4]user-interface vty0 4[R4-ui-vty0-4]au [R4-ui-vty0-4]authentication-mode AAA[R4-ui-vty0-4]Q[R4]AAA[R4-A
http://source.android.com Step 1. Configure the Android build environment according to Http://source.android.com/source/initializing.htmlhttp://source.android.com/source/downloading.html configuration good repo, approximate steps are as follows$ mkdir ~/bin$ Path=~/bin: $PATH$ curl Https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/
First, Ambari and HDP installation files:1. SystemOperating system: CentOS72. SoftwareThis installation uses the latest version:ambari-2.7.0.0hdp-3.0.0.0Detailed information is as follows:Ambari 2.7.0 Repositories
Base url:http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0Repo File:http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.0.0/ambari.repoTarball
My environments: Ubuntu 11.04Android source code: Android-4.1.1.1_r4How to download the Android source code?Referenced from: http://source.android.com/source/downloading.htmlBut maybe you will get internal error as below, you just need the constancy or re do the "repo sync" command !!=========== Get error: ========================================[Plain]Fatal: Not a git repository: '/home/yourname/android_source/.
少个进程同时工作,默认5个进程并行处理。具体需要设置多少个,可以根据控制端性能和被管理节点的数量来确定。sudo_user:设置默认执行命令的用户,也可以在playbook中重新设置这个参数。remote_port:指定连接被管理节点的管理端口,默认是22,除非设置了特殊的SSH端口,否则不需要修改此参数。host_key_checking:设置是否检查SSH主机的密钥。可以设置为True或False。即ssh的主机再次验证。timeout:设置SSH连接的超时间隔,单位是秒。log_path:Ansible默认不记录日志,如果想把Ansible系统的输出记录到日志文件中,需要设置log_path。需要注意,模块将会调用被管节点的(r)syslog来记录,执行Ansible的用户需要有写入日志的权限。Ansible InstallationConfiguring the source for installation 163 [[emailprotected] ~]# cd/etc/yum.repos.d///Creating a backup directory [[emailpro
components of other component libraries, make sure that you use the yum Priorities plug-in.
The RPMForge library now has more than 10000 CentOS software packages, which is considered by the CentOS community as the safest and most stable third-party software library.
The following describes how to use EPEL, RPMForge, and RPMFusion software repositories:
1. install the yum-priorities plugin.
This plug-in is used to set the order in which yum calls the software source. Because the official sof
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.