What build of ambari are you on? Maybe move to a more recent build number. Thanks, Alejandro
From: Fay Wang <[email protected]<mailto:[email protected]>> Reply-To: Fay Wang <[email protected]<mailto:[email protected]>> Date: Tuesday, March 31, 2015 at 7:05 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>, Alejandro Fernandez <[email protected]<mailto:[email protected]>> Subject: Re: maven compile problem Thanks, Alejandro! I am one step furthur! Now the problem is unknown tag <entity> and <persistence>. Do I miss anything? [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Ambari Main ....................................... SUCCESS [11.276s] [INFO] Apache Ambari Project POM ......................... SUCCESS [1.045s] [INFO] Ambari Web ........................................ SUCCESS [57.347s] [INFO] Ambari Views ...................................... FAILURE [5.439s] [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.052s [INFO] Finished at: Tue Mar 31 18:56:02 PDT 2015 [INFO] Final Memory: 31M/376M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.2:jar (attach-javadocs) on project ambari-views: MavenReportException: Error while creating archive: [ERROR] Exit code: 1 - /usr/local/ambari/ambari-1.7.0/ambari-views/src/main/java/org/apache/ambari/view/DataStore.java:30: error: unknown tag: entity [ERROR] * <entity> in the <persistence> element of the view.xml. [ERROR] ^ [ERROR] /usr/local/ambari/ambari-1.7.0/ambari-views/src/main/java/org/apache/ambari/view/DataStore.java:30: error: unknown tag: persistence [ERROR] * <entity> in the <persistence> element of the view.xml. [ERROR] ^ [ERROR] /usr/local/ambari/ambari-1.7.0/ambari-views/src/main/java/org/apache/ambari/view/DataStore.java:72: warning: no description for @throws [ERROR] * @throws PersistenceException [ERROR] ^ [ERROR] [ERROR] Command line was: /usr/local/java/jdk1.8.0_40/jre/../bin/javadoc @options @packages [ERROR] [ERROR] Refer to the generated Javadoc files in '/usr/local/ambari/ambari-1.7.0/ambari-views/target/apidocs' dir. [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.2:jar (attach-javadocs) on project ambari-views: MavenReportException: Error while creating archive: Exit code: 1 - /usr/local/ambari/ambari-1.7.0/ambari-views/src/main/java/org/apache/ambari/view/DataStore.java:30: error: unknown tag: entity * <entity> in the <persistence> element of the view.xml. ^ /usr/local/ambari/ambari-1.7.0/ambari-views/src/main/java/org/apache/ambari/view/DataStore.java:30: error: unknown tag: persistence * <entity> in the <persistence> element of the view.xml. ^ /usr/local/ambari/ambari-1.7.0/ambari-views/src/main/java/org/apache/ambari/view/DataStore.java:72: warning: no description for @throws * @throws PersistenceException ^ Command line was: /usr/local/java/jdk1.8.0_40/jre/../bin/javadoc @options @packages Refer to the generated Javadoc files in '/usr/local/ambari/ambari-1.7.0/ambari-views/target/apidocs' dir. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) On Tuesday, March 31, 2015 10:08 AM, Alejandro Fernandez <[email protected]<mailto:[email protected]>> wrote: Hi Fay, you need to delete npm-debug.log (and other such artifacts) before starting the build, Thanks, Alejandro From: Fay Wang <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>> Reply-To: Fay Wang <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>> Date: Tuesday, March 31, 2015 at 6:30 AM To: Alejandro Fernandez <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>>, Ambari <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>> Subject: Re: maven compile problem 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 [email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>> 3 info using [email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>> 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 <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>> 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 <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>> 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 <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>> 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" <[email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>>> 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
