maven编译 apache falcon0.9源码_RedHat6.4

背景

最近一直在调查数据分析以及集群的软件,接下来,又开始了BI的调查了,今天就收到邮件,让调查apache falcon。各种环境折腾又开始了。


事前准备

  1. apache falcon源码  (本次使用的是最新的apache-falcon-0.9-sources.tar.gz)
  2. jdk(1.7/1.8)
  3. maven(3.X)  apache-maven-3.0.3-bin.tar.gz 【后续提示出错,换成maven3.1.0】


安装

JDK

  1. JDK的安装,此处就不再说明了,很简单,装完后记得配置/etc/profile里JAVA_HOME,完后source一下就OK了,确认如下:

[root@sv004 project]# java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)


maven

  1. maven的安装,本人第一次,也很简单,解压,配置MAVEN_BIN,然后使用mvn -v确认是否安装。效果如下所示:

[root@sv004 apache-maven-3.0.3]# ./bin/mvn -v
Apache Maven 3.0.3 (r1075438; 2011-03-01 02:31:09+0900)
Maven home: /home/project/apache-maven-3.0.3
Java version: 1.7.0_67, vendor: Oracle Corporation
Java home: /usr/java/jdk1.7.0_67/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-431.el6.x86_64", arch: "amd64", family: "unix"

本次的重点来了

使用maven编译falcon源码

1.解压falcon源码

tar -xzvf apache-falcon-${project.version}-source.tar.gz
cd falcon-sources-${project.version}

2.编译falcon

export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m -noverify" && mvn clean install

但此时报错了

[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/org/apache/apache/17/apache-17.pom
Downloading: https://raw.github.com/InMobi/mvn-repo/master/releases/org/apache/apache/17/apache-17.pom
Downloading: http://repo.hortonworks.com/content/repositories/releases/org/apache/apache/17/apache-17.pom
Downloading: https://repository.apache.org/content/groups/snapshots/org/apache/apache/17/apache-17.pom
Downloading: https://repository.apache.org/content/groups/public/org/apache/apache/17/apache-17.pom
Downloading: https://maven.java.net/content/groups/public/org/apache/apache/17/apache-17.pom
Downloading: https://repository.jboss.org/nexus/content/groups/public/org/apache/apache/17/apache-17.pom
Downloading: https://repository.cloudera.com/artifactory/cloudera-repos/org/apache/apache/17/apache-17.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.apache.falcon:falcon-main:0.9 (/home/project/apache-maven-3.0.3/falcon-sources-0.9/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Could not transfer artifact org.apache:apache:pom:17 from/to central (http://repo1.maven.org/maven2): Error transferring file: repo1.maven.org and 'parent.relativePath' points at wrong local POM @ line 21, column 13: Unknown host repo1.maven.org -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException


原因

根据Unkown host信息调查了一下,应该是代理设置的有问题,我的maven使用的是默认的,没有设置,坑就被我踩到了。

参考URL:http://stackoverflow.com/questions/15334394/could-not-transfer-artifact-org-apache-maven-pluginsmaven-surefire-pluginpom2/15334627#15334627


解决策

修改我的maven/conf/setting.xml,如下所示:

  <proxies>
     <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>***.***.***.***</host>  ⇒代理的IP地址
      <port>8080</port>
      <nonProxyHosts>maven</nonProxyHosts>
    </proxy>
  </proxies>

完后重新执行

export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m -noverify" && mvn clean install
第一次时间比较长,取决你的网速,因为要下载好多依赖包文件。


好事多磨呀.....

Exception while executing SCM command.
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.5:process (default) @ falcon-ui ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Falcon ..................................... SUCCESS [18:56.122s]
[INFO] Apache Falcon UI .................................. FAILURE [3.810s]
[INFO] Checkstyle ........................................ SKIPPED
[INFO] Build Tools ....................................... SKIPPED
[INFO] Apache Falcon Java client ......................... SKIPPED
[INFO] Apache Falcon CLI client .......................... SKIPPED
[INFO] Apache Falcon Metrics ............................. SKIPPED
[INFO] Apache Falcon Hadoop Dependencies ................. SKIPPED
[INFO] Apache Falcon Test Utility ........................ SKIPPED
[INFO] Apache Falcon Commons ............................. SKIPPED
[INFO] Apache Falcon Oozie EL Extension .................. SKIPPED
[INFO] Apache Falcon Embedded Hadoop - Test Cluster ...... SKIPPED
[INFO] Apache Falcon Sharelib Hive - Test Cluster ........ SKIPPED
[INFO] Apache Falcon Sharelib Pig - Test Cluster ......... SKIPPED
[INFO] Apache Falcon Sharelib Hcatalog - Test Cluster .... SKIPPED
[INFO] Apache Falcon Sharelib Oozie - Test Cluster ....... SKIPPED
[INFO] Apache Falcon Test Tools - Test Cluster ........... SKIPPED
[INFO] Apache Falcon Messaging ........................... SKIPPED
[INFO] Apache Falcon LIfecycle Module .................... SKIPPED
[INFO] Apache Falcon Oozie Adaptor ....................... SKIPPED
[INFO] Apache Falcon Scheduler ........................... SKIPPED
[INFO] Apache Falcon Acquisition ......................... SKIPPED
[INFO] Apache Falcon Distcp Replication .................. SKIPPED
[INFO] Apache Falcon Retention ........................... SKIPPED
[INFO] Apache Falcon Archival ............................ SKIPPED
[INFO] Apache Falcon Rerun ............................... SKIPPED
[INFO] Apache Falcon Prism ............................... SKIPPED
[INFO] falcon-unit ....................................... SKIPPED
[INFO] Apache Falcon Web Application ..................... SKIPPED
[INFO] Apache Falcon Documentation ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19:04.642s
[INFO] Finished at: Thu Apr 14 02:38:36 JST 2016
[INFO] Final Memory: 18M/237M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:install-node-and-npm (install node and npm) on project falcon-ui: The plugin com.github.eirslett:frontend-maven-plugin:0.0.23 requires Maven version 3.1.0 -> [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/PluginIncompatibleException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :falcon-ui

根据报错信息来看,maven的版本与下载的插件的版本不一致导致的,根据提示信息,遂决定使用maven3.1.0。

构建好Maven3.1.0的环境后,重新再次编译falcon源码,结果悲剧了,install-node-and-npm无法下载.......

[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Falcon ..................................... SUCCESS [2.380s]
[INFO] Apache Falcon UI .................................. FAILURE [1:02.489s]
[INFO] Checkstyle ........................................ SKIPPED
[INFO] Build Tools ....................................... SKIPPED
[INFO] Apache Falcon Java client ......................... SKIPPED
[INFO] Apache Falcon CLI client .......................... SKIPPED
[INFO] Apache Falcon Metrics ............................. SKIPPED
[INFO] Apache Falcon Hadoop Dependencies ................. SKIPPED
[INFO] Apache Falcon Test Utility ........................ SKIPPED
[INFO] Apache Falcon Commons ............................. SKIPPED
[INFO] Apache Falcon Oozie EL Extension .................. SKIPPED
[INFO] Apache Falcon Embedded Hadoop - Test Cluster ...... SKIPPED
[INFO] Apache Falcon Sharelib Hive - Test Cluster ........ SKIPPED
[INFO] Apache Falcon Sharelib Pig - Test Cluster ......... SKIPPED
[INFO] Apache Falcon Sharelib Hcatalog - Test Cluster .... SKIPPED
[INFO] Apache Falcon Sharelib Oozie - Test Cluster ....... SKIPPED
[INFO] Apache Falcon Test Tools - Test Cluster ........... SKIPPED
[INFO] Apache Falcon Messaging ........................... SKIPPED
[INFO] Apache Falcon LIfecycle Module .................... SKIPPED
[INFO] Apache Falcon Oozie Adaptor ....................... SKIPPED
[INFO] Apache Falcon Scheduler ........................... SKIPPED
[INFO] Apache Falcon Acquisition ......................... SKIPPED
[INFO] Apache Falcon Distcp Replication .................. SKIPPED
[INFO] Apache Falcon Retention ........................... SKIPPED
[INFO] Apache Falcon Archival ............................ SKIPPED
[INFO] Apache Falcon Rerun ............................... SKIPPED
[INFO] Apache Falcon Prism ............................... SKIPPED
[INFO] falcon-unit ....................................... SKIPPED
[INFO] Apache Falcon Web Application ..................... SKIPPED
[INFO] Apache Falcon Documentation ....................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:05.883s
[INFO] Finished at: Thu Apr 14 20:57:47 JST 2016
[INFO] Final Memory: 30M/303M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:install-node-and-npm (install node and npm) on project falcon-ui: Could not extract the Node archive: Could not extract archive: '/home/project/apache-maven-3.1.0/falcon-sources-0.9/falcon-ui/node_tmp/node.tar.gz': EOFException -> [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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :falcon-ui

调查了好久,最终来发现,原来是磁盘没有空间了,刚开始还以为是公司的网速的问题【PS:我们公司的网太烂了,刷个页面要好久】


清空一部分空间出来后,又出幺蛾子了.....

[ERROR] npm WARN package.json [email protected] No repository field.
[ERROR] npm http GET https://registry.npmjs.org/phantomjs
[ERROR] npm http GET https://registry.npmjs.org/protractor
[ERROR] npm http 304 https://registry.npmjs.org/protractor
[ERROR] npm http 304 https://registry.npmjs.org/phantomjs
[ERROR] npm http GET https://registry.npmjs.org/hasha
[ERROR] npm http GET https://registry.npmjs.org/kew
[ERROR] npm http GET https://registry.npmjs.org/progress
[ERROR] npm http GET https://registry.npmjs.org/request
[ERROR] npm http GET https://registry.npmjs.org/request-progress
[ERROR] npm http GET https://registry.npmjs.org/which
[ERROR] npm http GET https://registry.npmjs.org/extract-zip
[ERROR] npm http GET https://registry.npmjs.org/fs-extra
[ERROR] npm http GET https://registry.npmjs.org/request
[ERROR] npm http GET https://registry.npmjs.org/selenium-webdriver/2.44.0
[ERROR] npm http GET https://registry.npmjs.org/minijasminenode/1.1.1
[ERROR] npm http GET https://registry.npmjs.org/jasminewd/1.1.0
[ERROR] npm http GET https://registry.npmjs.org/jasminewd2/0.0.2
[ERROR] npm http GET https://registry.npmjs.org/jasmine/2.1.1
[ERROR] npm http GET https://registry.npmjs.org/saucelabs
[ERROR] npm http GET https://registry.npmjs.org/glob
[ERROR] npm http GET https://registry.npmjs.org/adm-zip/0.4.4
[ERROR] npm http GET https://registry.npmjs.org/optimist
[ERROR] npm http GET https://registry.npmjs.org/q/1.0.0
[ERROR] npm http GET https://registry.npmjs.org/lodash
[ERROR] npm http GET https://registry.npmjs.org/source-map-support
[ERROR] npm http GET https://registry.npmjs.org/html-entities
[ERROR] npm http GET https://registry.npmjs.org/accessibility-developer-tools
[ERROR] npm http 304 https://registry.npmjs.org/request-progress
[ERROR] npm http 304 https://registry.npmjs.org/request
[ERROR] npm http 304 https://registry.npmjs.org/hasha
[ERROR] npm http 304 https://registry.npmjs.org/fs-extra
[ERROR] npm http 304 https://registry.npmjs.org/html-entities
[ERROR] npm http 304 https://registry.npmjs.org/adm-zip/0.4.4
[ERROR] npm http 304 https://registry.npmjs.org/q/1.0.0
[ERROR] npm http 304 https://registry.npmjs.org/selenium-webdriver/2.44.0
[ERROR] npm http GET https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-2.44.0.tgz
[ERROR] npm http 304 https://registry.npmjs.org/accessibility-developer-tools
[ERROR] npm http 304 https://registry.npmjs.org/progress
[ERROR] npm http 304 https://registry.npmjs.org/jasminewd/1.1.0
[ERROR] npm http 304 https://registry.npmjs.org/request
[ERROR] npm http 304 https://registry.npmjs.org/jasmine/2.1.1
[ERROR] npm http 304 https://registry.npmjs.org/extract-zip
[ERROR] npm http 304 https://registry.npmjs.org/which
[ERROR] npm http 304 https://registry.npmjs.org/source-map-support
[ERROR] npm http 304 https://registry.npmjs.org/jasminewd2/0.0.2
[ERROR] npm http 200 https://registry.npmjs.org/selenium-webdriver/-/selenium-webdriver-2.44.0.tgz
[ERROR] npm http 304 https://registry.npmjs.org/kew
[ERROR] npm http GET https://registry.npmjs.org/is-stream
[ERROR] npm http GET https://registry.npmjs.org/pinkie-promise
[ERROR] npm http GET https://registry.npmjs.org/mkdirp/0.5.0
[ERROR] npm http GET https://registry.npmjs.org/yauzl/2.4.1
[ERROR] npm http GET https://registry.npmjs.org/concat-stream/1.5.0
[ERROR] npm http GET https://registry.npmjs.org/debug/0.7.4
[ERROR] npm http GET https://registry.npmjs.org/is-absolute
[ERROR] npm http GET https://registry.npmjs.org/isexe
[ERROR] npm http GET https://registry.npmjs.org/throttleit
[ERROR] npm http GET https://registry.npmjs.org/graceful-fs
[ERROR] npm http GET https://registry.npmjs.org/jsonfile
[ERROR] npm http GET https://registry.npmjs.org/klaw
[ERROR] npm http GET https://registry.npmjs.org/path-is-absolute
[ERROR] npm http GET https://registry.npmjs.org/rimraf
[ERROR] npm http GET https://registry.npmjs.org/bl
[ERROR] npm http GET https://registry.npmjs.org/caseless
[ERROR] npm http GET https://registry.npmjs.org/extend
[ERROR] npm http GET https://registry.npmjs.org/forever-agent
[ERROR] npm http GET https://registry.npmjs.org/form-data
[ERROR] npm http GET https://registry.npmjs.org/json-stringify-safe
[ERROR] npm http GET https://registry.npmjs.org/mime-types
[ERROR] npm http GET https://registry.npmjs.org/node-uuid
[ERROR] npm http GET https://registry.npmjs.org/qs
[ERROR] npm http GET https://registry.npmjs.org/tunnel-agent
[ERROR] npm http GET https://registry.npmjs.org/tough-cookie
[ERROR] npm http GET https://registry.npmjs.org/http-signature
[ERROR] npm http GET https://registry.npmjs.org/oauth-sign
[ERROR] npm http GET https://registry.npmjs.org/aws-sign2
[ERROR] npm http GET https://registry.npmjs.org/hawk
[ERROR] npm http GET https://registry.npmjs.org/stringstream
[ERROR] npm http GET https://registry.npmjs.org/combined-stream
[ERROR] npm http GET https://registry.npmjs.org/isstream
[ERROR] npm http GET https://registry.npmjs.org/is-typedarray
[ERROR] npm http GET https://registry.npmjs.org/har-validator
[ERROR] npm http 304 https://registry.npmjs.org/saucelabs
[ERROR] npm http 304 https://registry.npmjs.org/mkdirp/0.5.0
[ERROR] npm http 304 https://registry.npmjs.org/pinkie-promise
[ERROR] npm http 304 https://registry.npmjs.org/is-stream
[ERROR] npm http 304 https://registry.npmjs.org/path-is-absolute
[ERROR] npm http GET https://registry.npmjs.org/pinkie
[ERROR] npm http 304 https://registry.npmjs.org/rimraf
[ERROR] npm http 304 https://registry.npmjs.org/concat-stream/1.5.0
[ERROR] npm http 304 https://registry.npmjs.org/isexe
[ERROR] npm http 304 https://registry.npmjs.org/graceful-fs
[ERROR] npm http 304 https://registry.npmjs.org/klaw
[ERROR] npm http 304 https://registry.npmjs.org/json-stringify-safe
[ERROR] npm http 304 https://registry.npmjs.org/qs
[ERROR] npm http 304 https://registry.npmjs.org/tough-cookie
[ERROR] npm http 304 https://registry.npmjs.org/http-signature
[ERROR] npm http 304 https://registry.npmjs.org/stringstream
[ERROR] npm http 304 https://registry.npmjs.org/isstream
[ERROR] npm http 304 https://registry.npmjs.org/har-validator
[ERROR] npm http 304 https://registry.npmjs.org/yauzl/2.4.1
[ERROR] npm http 304 https://registry.npmjs.org/tunnel-agent
[ERROR] npm http 304 https://registry.npmjs.org/form-data
[ERROR] npm http 304 https://registry.npmjs.org/combined-stream
[ERROR] npm http 304 https://registry.npmjs.org/mime-types
[ERROR] npm http 304 https://registry.npmjs.org/optimist
[ERROR] npm http 304 https://registry.npmjs.org/lodash
[ERROR] npm http 304 https://registry.npmjs.org/is-absolute
[ERROR] npm http GET https://registry.npmjs.org/is-relative
[ERROR] npm http 304 https://registry.npmjs.org/extend
[ERROR] npm http 304 https://registry.npmjs.org/caseless
[ERROR] npm http 304 https://registry.npmjs.org/is-typedarray
[ERROR] npm http 304 https://registry.npmjs.org/node-uuid
[ERROR] npm http 304 https://registry.npmjs.org/debug/0.7.4
[ERROR] npm http GET https://registry.npmjs.org/inherits
[ERROR] npm http GET https://registry.npmjs.org/typedarray
[ERROR] npm http GET https://registry.npmjs.org/readable-stream
[ERROR] npm http GET https://registry.npmjs.org/fd-slicer
[ERROR] npm http GET https://registry.npmjs.org/minimist/0.0.8
[ERROR] npm http 304 https://registry.npmjs.org/forever-agent
[ERROR] npm http 304 https://registry.npmjs.org/oauth-sign
[ERROR] npm http 304 https://registry.npmjs.org/is-relative
[ERROR] npm http 304 https://registry.npmjs.org/inherits
[ERROR] npm http 304 https://registry.npmjs.org/readable-stream
[ERROR] npm http 304 https://registry.npmjs.org/pinkie
[ERROR] npm http 304 https://registry.npmjs.org/glob
[ERROR] npm http 304 https://registry.npmjs.org/bl
[ERROR] npm http 304 https://registry.npmjs.org/hawk
[ERROR] npm http 304 https://registry.npmjs.org/minimist/0.0.8
[ERROR] npm http 304 https://registry.npmjs.org/throttleit
[ERROR] npm http 304 https://registry.npmjs.org/fd-slicer
[ERROR] npm http GET https://registry.npmjs.org/pend
[ERROR] npm http 304 https://registry.npmjs.org/pend
[ERROR] npm http 304 https://registry.npmjs.org/aws-sign2
[ERROR] npm WARN engine [email protected]: wanted: {"node":">=0.10.32"} (current: {"node":"v0.10.30","npm":"1.4.3"})
[ERROR] npm http GET https://registry.npmjs.org/delayed-stream
[ERROR] npm http GET https://registry.npmjs.org/mime-db
[ERROR] npm http GET https://registry.npmjs.org/async
[ERROR] npm http GET https://registry.npmjs.org/assert-plus
[ERROR] npm http GET https://registry.npmjs.org/jsprim
[ERROR] npm http GET https://registry.npmjs.org/sshpk
[ERROR] npm http GET https://registry.npmjs.org/chalk
[ERROR] npm http GET https://registry.npmjs.org/commander
[ERROR] npm http GET https://registry.npmjs.org/is-my-json-valid
[ERROR] npm http GET https://registry.npmjs.org/core-util-is
[ERROR] npm http GET https://registry.npmjs.org/isarray
[ERROR] npm http GET https://registry.npmjs.org/process-nextick-args
[ERROR] npm http GET https://registry.npmjs.org/string_decoder
[ERROR] npm http GET https://registry.npmjs.org/util-deprecate
[ERROR] npm http GET https://registry.npmjs.org/hoek
[ERROR] npm http GET https://registry.npmjs.org/boom
[ERROR] npm http GET https://registry.npmjs.org/cryptiles
[ERROR] npm http GET https://registry.npmjs.org/sntp
[ERROR] npm http 304 https://registry.npmjs.org/mime-db
[ERROR] npm http 304 https://registry.npmjs.org/delayed-stream
[ERROR] npm http 304 https://registry.npmjs.org/process-nextick-args
[ERROR] npm http 304 https://registry.npmjs.org/util-deprecate
[ERROR] npm http 304 https://registry.npmjs.org/assert-plus
[ERROR] npm http 304 https://registry.npmjs.org/hoek
[ERROR] npm http 304 https://registry.npmjs.org/is-my-json-valid
[ERROR] npm http 304 https://registry.npmjs.org/sshpk
[ERROR] npm http 304 https://registry.npmjs.org/core-util-is
[ERROR] npm http 200 https://registry.npmjs.org/isarray
[ERROR] npm http 304 https://registry.npmjs.org/chalk
[ERROR] npm http 304 https://registry.npmjs.org/cryptiles
[ERROR] npm http 304 https://registry.npmjs.org/boom
[ERROR] npm http 304 https://registry.npmjs.org/typedarray
[ERROR] npm http 304 https://registry.npmjs.org/sntp
[ERROR] npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"v0.10.30","npm":"1.4.3"})
[ERROR] npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"v0.10.30","npm":"1.4.3"})
[ERROR] npm WARN engine [email protected]: wanted: {"node":">=0.10.40"} (current: {"node":"v0.10.30","npm":"1.4.3"})
[ERROR] npm http 304 https://registry.npmjs.org/jsprim
[ERROR] npm http GET https://registry.npmjs.org/extsprintf/1.0.2
[ERROR] npm http GET https://registry.npmjs.org/json-schema/0.2.2
[ERROR] npm http GET https://registry.npmjs.org/verror/1.3.6
[ERROR] npm http 200 https://registry.npmjs.org/commander
[ERROR] npm http 200 https://registry.npmjs.org/async
[ERROR] npm http GET https://registry.npmjs.org/ansi-styles
[ERROR] npm http GET https://registry.npmjs.org/escape-string-regexp
[ERROR] npm http GET https://registry.npmjs.org/has-ansi
[ERROR] npm http GET https://registry.npmjs.org/strip-ansi
[ERROR] npm http GET https://registry.npmjs.org/supports-color
[ERROR] npm http GET https://registry.npmjs.org/graceful-readlink
[ERROR] npm http GET https://registry.npmjs.org/asn1
[ERROR] npm http GET https://registry.npmjs.org/dashdash
[ERROR] npm http GET https://registry.npmjs.org/jsbn
[ERROR] npm http GET https://registry.npmjs.org/tweetnacl
[ERROR] npm http GET https://registry.npmjs.org/jodid25519
[ERROR] npm http GET https://registry.npmjs.org/ecc-jsbn
[ERROR] npm http GET https://registry.npmjs.org/generate-function
[ERROR] npm http GET https://registry.npmjs.org/generate-object-property
[ERROR] npm http GET https://registry.npmjs.org/jsonpointer/2.0.0
[ERROR] npm http GET https://registry.npmjs.org/xtend
[ERROR] npm http 200 https://registry.npmjs.org/string_decoder
[ERROR] npm http 304 https://registry.npmjs.org/jsonfile
[ERROR] npm http GET https://registry.npmjs.org/glob
[ERROR] npm http 304 https://registry.npmjs.org/json-schema/0.2.2
[ERROR] npm http 304 https://registry.npmjs.org/supports-color
[ERROR] npm http 304 https://registry.npmjs.org/jodid25519
[ERROR] npm http 304 https://registry.npmjs.org/tweetnacl
[ERROR] npm http 304 https://registry.npmjs.org/jsbn
[ERROR] npm http 304 https://registry.npmjs.org/ansi-styles
[ERROR] npm http 304 https://registry.npmjs.org/asn1
[ERROR] npm http 304 https://registry.npmjs.org/dashdash
[ERROR] npm http 304 https://registry.npmjs.org/generate-object-property
[ERROR] npm http 304 https://registry.npmjs.org/strip-ansi
[ERROR] npm http 304 https://registry.npmjs.org/verror/1.3.6
[ERROR] npm http 304 https://registry.npmjs.org/ecc-jsbn
[ERROR] npm http 304 https://registry.npmjs.org/jsonpointer/2.0.0
[ERROR] npm http 304 https://registry.npmjs.org/graceful-readlink
[ERROR] npm http 304 https://registry.npmjs.org/generate-function
[ERROR] npm http 304 https://registry.npmjs.org/glob
[ERROR] npm http GET https://registry.npmjs.org/inflight
[ERROR] npm http GET https://registry.npmjs.org/inherits
[ERROR] npm http GET https://registry.npmjs.org/minimatch
[ERROR] npm http GET https://registry.npmjs.org/once
[ERROR] npm http 304 https://registry.npmjs.org/once
[ERROR] npm http 304 https://registry.npmjs.org/inherits
[ERROR] npm http 304 https://registry.npmjs.org/minimatch
[ERROR] npm http 304 https://registry.npmjs.org/has-ansi
[ERROR] npm http 304 https://registry.npmjs.org/xtend
[ERROR] npm http GET https://registry.npmjs.org/is-property
[ERROR] npm http 200 https://registry.npmjs.org/inflight
[ERROR] npm http GET https://registry.npmjs.org/wrappy
[ERROR] npm http GET https://registry.npmjs.org/brace-expansion
[ERROR] npm http 304 https://registry.npmjs.org/escape-string-regexp
[ERROR] npm http GET https://registry.npmjs.org/ansi-regex
[ERROR] npm http 304 https://registry.npmjs.org/ansi-regex
[ERROR] npm http 304 https://registry.npmjs.org/brace-expansion
[ERROR] npm http GET https://registry.npmjs.org/balanced-match
[ERROR] npm http GET https://registry.npmjs.org/concat-map/0.0.1
[ERROR] npm http 304 https://registry.npmjs.org/is-property
[ERROR] npm http 200 https://registry.npmjs.org/balanced-match
[ERROR] npm http 304 https://registry.npmjs.org/concat-map/0.0.1
[ERROR] npm http 200 https://registry.npmjs.org/wrappy
[ERROR] npm http GET https://registry.npmjs.org/minijasminenode/1.1.1
[ERROR] npm http 304 https://registry.npmjs.org/minijasminenode/1.1.1
[ERROR] npm http GET https://registry.npmjs.org/extsprintf/1.0.2
[ERROR] npm http 304 https://registry.npmjs.org/extsprintf/1.0.2

还有一个额外的信息:Exception while executing SCM command.

最后在英文网站上找到了一个解决策,但原因是什么,没有明白:https://github.com/Mach5/supersonic/issues/85

Find the lines that read:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.0</version>
</plugin>
and remove them.



但,新的问题又出现了,打出的堆栈信息如下所示....

[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (BUILD-OOZIE) on project build-tools: Command execution failed. Process exited with an error: 6 (Exit value: 6) -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (BUILD-OOZIE) on project build-tools: Command execution failed.
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:318)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution failed.
        at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:362)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 19 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 6 (Exit value: 6)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377)
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:160)
        at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:610)
        at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:352)
        ... 21 more
[ERROR] 
[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/MojoExecutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :build-tools

根据上面的提示信息,找到一个对应的帖子:

http://mail-archives.apache.org/mod_mbox/falcon-dev/201402.mbox/%[email protected]%3E

https://issues.apache.org/jira/browse/FALCON-291

----未完待续----

你可能感兴趣的:(apache,maven,falcon)