ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fay Wang <faywang...@yahoo.com.INVALID>
Subject Re: maven compile problem
Date Tue, 31 Mar 2015 13:30:07 GMT
The following is reported in target/rat.txt:
 *****************************************************
 Printing headers for files without AL header...
 
 
=======================================================================
==npm-debug.log
=======================================================================
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'install', '-d' ]
2 info using npm@1.3.10
3 info using node@v0.10.25
4 error install Couldn't read dependencies
5 error Error: ENOENT, open '/usr/local/ambari/ambari-1.7.0/package.json'
6 error If you need help, you may report this log at:
6 error     <http://github.com/isaacs/npm/issues>
6 error or email it to:
6 error     <npm-@googlegroups.com>
7 error System Linux 3.16.0-30-generic
8 error command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-d"
9 error cwd /usr/local/ambari/ambari-1.7.0
10 error node -v v0.10.25
11 error npm -v 1.3.10
12 error path /usr/local/ambari/ambari-1.7.0/package.json
13 error code ENOENT
14 error errno 34
15 verbose exit [ 34, true ] 


     On Tuesday, March 31, 2015 6:17 AM, Fay Wang <faywang300@yahoo.com> wrote:
   

 Hi Alejandra,    Thanks! I am able to run brunch build on ambari-web. I then go back to
the parent directory, run mvn again but encounter the following error:
    Any idea?

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project
ambari: Too many files with unapproved license: 1 See RAT report in: /usr/local/ambari/ambari-1.7.0/target/rat.txt
-> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check
(default) on project ambari: Too many files with unapproved license: 1 See RAT report in:
/usr/local/ambari/ambari-1.7.0/target/rat.txt
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
 Thanks,
-fay



     On Monday, March 30, 2015 9:37 AM, Alejandro Fernandez <afernandez@hortonworks.com>
wrote:
   

 Hi Fay,

Can you try
mvn -B clean install package jdeb:jdeb -DskipTests -Dpython.ver="python >=
2.6" -Preplaceurl


And if you still get errors, cd inside ambari-web and compile that first.
ulimit -n 2048
brunch build 

https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Development


Thanks,
Alejandro

On 3/29/15, 12:15 PM, "Fay Wang" <faywang300@yahoo.com.INVALID> wrote:

>Hi, 
>  I encountered the following error when using maven to build Ambari on
>ubuntu:
>
>mvn -B clean install package jdeb:jdeb -DnewVersion=1.7.0.0 -DskipTests
>-Dpython.ver="python >= 2.6"
>
>
>[INFO] 
>------------------------------------------------------------------------
>[INFO] Reactor Summary:
>[INFO] 
>[INFO] Ambari Main ....................................... SUCCESS
>[4.467s]
>[INFO] Apache Ambari Project POM ......................... SUCCESS
>[0.979s]
>[INFO] Ambari Web ........................................ FAILURE
>[1:09.648s]
>[INFO] Ambari Views ...................................... SKIPPED
>[INFO] Ambari Admin View ................................. SKIPPED
>[INFO] Ambari Server ..................................... SKIPPED
>[INFO] Ambari Agent ...................................... SKIPPED
>[INFO] Ambari Client ..................................... SKIPPED
>[INFO] Ambari Python Client .............................. SKIPPED
>[INFO] Ambari Groovy Client .............................. SKIPPED
>[INFO] Ambari Shell ...................................... SKIPPED
>[INFO] Ambari Python Shell ............................... SKIPPED
>[INFO] Ambari Groovy Shell ............................... SKIPPED
>[INFO] 
>------------------------------------------------------------------------
>[INFO] BUILD FAILURE
>[INFO] 
>------------------------------------------------------------------------
>[INFO] Total time: 1:16.032s
>[INFO] Finished at: Sat Mar 28 12:21:53 PDT 2015
>[INFO] Final Memory: 25M/365M
>[INFO] 
>------------------------------------------------------------------------
>[ERROR] Failed to execute goal
>org.apache.maven.plugins:maven-antrun-plugin:1.7:run (compile) on project
>ambari-web: An Ant BuildException has occured: exec returned: 127
>[ERROR] around Ant part ...<exec failonerror="true"
>dir="/usr/local/ambari/ambari-1.7.0/ambari-web" executable="brunch">... @
>8:96 in 
>/usr/local/ambari/ambari-1.7.0/ambari-web/target/antrun/build-ambari-web-c
>ompile.xml
>[ERROR] -> [Help 1]
>org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (compile) on
>project ambari-web: An Ant BuildException has occured: exec returned: 127
>around Ant part ...<exec failonerror="true"
>dir="/usr/local/ambari/ambari-1.7.0/ambari-web" executable="brunch">... @
>8:96 in 
>/usr/local/ambari/ambari-1.7.0/ambari-web/target/antrun/build-ambari-web-c
>ompile.xml
>    at 
>org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java
>:217)
>    at 
>org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java
>:153)
>
>
>Any help is greatly appreciated.
>
>-fay


   

  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message