smallyao opened a new pull request, #3722: URL: https://github.com/apache/ambari/pull/3722
## What changes were proposed in this pull request? Fails to compile ambari-admin, errors is as follows `[root@bigtop1 ambari-admin]# mvn package -DskipTests [INFO] Scanning for projects... [INFO] [INFO] -------------------< org.apache.ambari:ambari-admin >------------------- [INFO] Building Ambari Admin View 3.0.0.0-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- build-helper:1.8:regex-property (parse-package-version) @ ambari-admin --- [INFO] [INFO] --- build-helper:1.8:regex-property (parse-package-release) @ ambari-admin --- [INFO] [INFO] --- build-helper:1.8:parse-version (parse-version) @ ambari-admin --- [INFO] [INFO] --- build-helper:1.8:regex-property (regex-property) @ ambari-admin --- [INFO] [INFO] --- enforcer:3.0.0-M2:enforce (enforce-maven-version) @ ambari-admin --- [INFO] [INFO] --- enforcer:3.0.0-M2:enforce (enforce-versions) @ ambari-admin --- [INFO] [INFO] --- frontend:1.3:install-node-and-npm (install node and npm) @ ambari-admin --- [INFO] Node v4.5.0 is already installed. [INFO] NPM 2.15.0 is already installed. [INFO] [INFO] --- frontend:1.3:npm (npm install) @ ambari-admin --- [INFO] npm not inheriting proxy config from Maven [INFO] Running 'npm install --unsafe-perm' in /root/ambari/ambari/ambari-admin/src/main/resources/ui/admin-web [WARNING] npm WARN package.json adminconsole@0.0.0 No description [WARNING] npm WARN package.json adminconsole@0.0.0 No repository field. [WARNING] npm WARN package.json adminconsole@0.0.0 No README data [WARNING] npm WARN package.json adminconsole@0.0.0 No license field. [INFO] [INFO] --- exec:1.2.1:exec (Bower install) @ ambari-admin --- bower angular-route#* ECONNREFUSED Request to https://bower.herokuapp.com/packages/angular-route failed: connect ECONNREFUSED 66.220.146.94:443 [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18.046 s [INFO] Finished at: 2023-07-19T14:51:49+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (Bower install) on project ambari-admin: Command execution failed.: Process exited with an error: 1 (Exit value: 1) -> [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/MojoExecutionException` The reason is that https://bower.herokuapp.com/ is deprecated, new registry address is https://registry.bower.io/ ## How was this patch tested? `[root@bigtop1 ambari-admin]# mvn package -DskipTests [INFO] Scanning for projects... [INFO] [INFO] -------------------< org.apache.ambari:ambari-admin >------------------- [INFO] Building Ambari Admin View 3.0.0.0-SNAPSHOT [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- build-helper:1.8:regex-property (parse-package-version) @ ambari-admin --- [INFO] [INFO] --- build-helper:1.8:regex-property (parse-package-release) @ ambari-admin --- [INFO] [INFO] --- build-helper:1.8:parse-version (parse-version) @ ambari-admin --- [INFO] [INFO] --- build-helper:1.8:regex-property (regex-property) @ ambari-admin --- [INFO] [INFO] --- enforcer:3.0.0-M2:enforce (enforce-maven-version) @ ambari-admin --- [INFO] [INFO] --- enforcer:3.0.0-M2:enforce (enforce-versions) @ ambari-admin --- [INFO] [INFO] --- frontend:1.3:install-node-and-npm (install node and npm) @ ambari-admin --- [INFO] Node v4.5.0 is already installed. [INFO] NPM 2.15.0 is already installed. [INFO] [INFO] --- frontend:1.3:npm (npm install) @ ambari-admin --- [INFO] npm not inheriting proxy config from Maven [INFO] Running 'npm install --unsafe-perm' in /root/ambari/ambari/ambari-admin/src/main/resources/ui/admin-web [WARNING] npm WARN package.json adminconsole@0.0.0 No description [WARNING] npm WARN package.json adminconsole@0.0.0 No repository field. [WARNING] npm WARN package.json adminconsole@0.0.0 No README data [WARNING] npm WARN package.json adminconsole@0.0.0 No license field. [INFO] [INFO] --- exec:1.2.1:exec (Bower install) @ ambari-admin --- bower bootstrap#3.3.7 cached https://github.com/twbs/bootstrap.git#3.3.7 bower bootstrap#3.3.7 validate 3.3.7 against https://github.com/twbs/bootstrap.git#3.3.7 bower angular#* cached https://github.com/angular/bower-angular.git#1.8.3 bower angular#* validate 1.8.3 against https://github.com/angular/bower-angular.git#* bower underscore#1.7.0 cached https://github.com/jashkenas/underscore.git#1.7.0 bower underscore#1.7.0 validate 1.7.0 against https://github.com/jashkenas/underscore.git#1.7.0 bower angular-translate#* cached https://github.com/PascalPrecht/bower-angular-translate.git#2.19.0 bower angular-translate#* validate 2.19.0 against https://github.com/PascalPrecht/bower-angular-translate.git#* bower angular-animate#* cached https://github.com/angular/bower-angular-animate.git#1.8.3 bower angular-animate#* validate 1.8.3 against https://github.com/angular/bower-angular-animate.git#* bower angular-bootstrap-toggle-switch#0.5.1 cached https://github.com/JumpLink/angular-toggle-switch.git#0.5.1 bower angular-bootstrap-toggle-switch#0.5.1 validate 0.5.1 against https://github.com/JumpLink/angular-toggle-switch.git#0.5.1 bower font-awesome#4.2.0 cached https://github.com/FortAwesome/Font-Awesome.git#4.2.0 bower font-awesome#4.2.0 validate 4.2.0 against https://github.com/FortAwesome/Font-Awesome.git#4.2.0 bower chai#1.8.0 cached https://github.com/chaijs/chai.git#1.8.0 bower chai#1.8.0 validate 1.8.0 against https://github.com/chaijs/chai.git#1.8.0 bower commonjs#0.2.0 cached https://github.com/chrisabrams/commonjs.git#0.2.0 bower commonjs#0.2.0 validate 0.2.0 against https://github.com/chrisabrams/commonjs.git#0.2.0 bower mocha#1.14.0 cached https://github.com/mochajs/mocha.git#1.14.0 bower mocha#1.14.0 validate 1.14.0 against https://github.com/mochajs/mocha.git#1.14.0 bower angular-bootstrap#0.11.0 cached https://github.com/angular-ui/bootstrap-bower.git#0.11.0 bower angular-bootstrap#0.11.0 validate 0.11.0 against https://github.com/angular-ui/bootstrap-bower.git#0.11.0 bower angular-mocks#* cached https://github.com/angular/bower-angular-mocks.git#1.8.3 bower angular-mocks#* validate 1.8.3 against https://github.com/angular/bower-angular-mocks.git#* bower sinon#1.10.3 cached https://github.com/cjohansen/Sinon.JS.git#1.10.3 bower sinon#1.10.3 validate 1.10.3 against https://github.com/cjohansen/Sinon.JS.git#1.10.3 bower angular-route#* cached https://github.com/angular/bower-angular-route.git#1.8.3 bower angular-route#* validate 1.8.3 against https://github.com/angular/bower-angular-route.git#* bower restangular#1.4.0 cached https://github.com/mgonto/restangular.git#1.4.0 bower restangular#1.4.0 validate 1.4.0 against https://github.com/mgonto/restangular.git#1.4.0 bower angular#>=1.2.26 <1.9 cached https://github.com/angular/bower-angular.git#1.8.3 bower angular#>=1.2.26 <1.9 validate 1.8.3 against https://github.com/angular/bower-angular.git#>=1.2.26 <1.9 bower jquery#1.9.1 - 3 cached https://github.com/jquery/jquery-dist.git#3.7.0 bower jquery#1.9.1 - 3 validate 3.7.0 against https://github.com/jquery/jquery-dist.git#1.9.1 - 3 bower lodash#>=1.3.0 <2.5.0 cached https://github.com/lodash/lodash.git#2.4.2 bower lodash#>=1.3.0 <2.5.0 validate 2.4.2 against https://github.com/lodash/lodash.git#>=1.3.0 <2.5.0 bower angular extra-resolution Unnecessary resolution: angular#1.8.x bower underscore#1.7.0 install underscore#1.7.0 bower angular-translate#* install angular-translate#2.19.0 bower bootstrap#3.3.7 install bootstrap#3.3.7 bower angular#1.8.3 install angular#1.8.3 bower chai#1.8.0 install chai#1.8.0 bower angular-bootstrap-toggle-switch#0.5.1 install angular-bootstrap-toggle-switch#0.5.1 bower angular-animate#* install angular-animate#1.8.3 bower commonjs#0.2.0 install commonjs#0.2.0 bower angular-bootstrap#0.11.0 install angular-bootstrap#0.11.0 bower mocha#1.14.0 install mocha#1.14.0 bower angular-mocks#* install angular-mocks#1.8.3 bower sinon#1.10.3 install sinon#1.10.3 bower restangular#1.4.0 install restangular#1.4.0 bower angular-route#* install angular-route#1.8.3 bower jquery#1.9.1 - 3 install jquery#3.7.0 bower lodash#>=1.3.0 <2.5.0 install lodash#2.4.2 bower font-awesome#4.2.0 install font-awesome#4.2.0 underscore#1.7.0 app/bower_components/underscore angular-translate#2.19.0 app/bower_components/angular-translate └── angular#1.8.3 bootstrap#3.3.7 app/bower_components/bootstrap └── jquery#3.7.0 angular#1.8.3 app/bower_components/angular chai#1.8.0 app/bower_components/chai angular-bootstrap-toggle-switch#0.5.1 app/bower_components/angular-bootstrap-toggle-switch angular-animate#1.8.3 app/bower_components/angular-animate └── angular#1.8.3 commonjs#0.2.0 app/bower_components/commonjs angular-bootstrap#0.11.0 app/bower_components/angular-bootstrap └── angular#1.8.3 mocha#1.14.0 app/bower_components/mocha angular-mocks#1.8.3 app/bower_components/angular-mocks └── angular#1.8.3 sinon#1.10.3 app/bower_components/sinon restangular#1.4.0 app/bower_components/restangular ├── angular#1.8.3 └── lodash#2.4.2 angular-route#1.8.3 app/bower_components/angular-route └── angular#1.8.3 jquery#3.7.0 app/bower_components/jquery lodash#2.4.2 app/bower_components/lodash font-awesome#4.2.0 app/bower_components/font-awesome [INFO] [INFO] --- exec:1.2.1:exec (Gulp build) @ ambari-admin --- [15:32:58] Using gulpfile ~/ambari/ambari/ambari-admin/src/main/resources/ui/admin-web/gulpfile.js [15:32:58] Starting 'styles'... [15:32:59] Starting 'views'... [15:32:59] Starting 'images'... [15:32:59] Starting 'fonts'... [15:32:59] Starting 'extras'... [15:32:59] Finished 'extras' after 32 ms [15:33:00] gulp-size: total 8.35 kB [15:33:00] Finished 'images' after 647 ms [15:33:00] gulp-size: total 87.69 kB [15:33:00] Finished 'styles' after 1.71 s [15:33:00] Starting 'html'... [15:33:01] gulp-size: total 3.07 MB [15:33:01] Finished 'html' after 801 ms [15:33:01] gulp-size: total 1.93 MB [15:33:01] Finished 'fonts' after 1.75 s [15:33:01] Finished 'views' after 1.8 s [15:33:01] Starting 'build'... [15:33:01] Finished 'build' after 20 μs [INFO] [INFO] --- remote-resources:1.5:process (process-resource-bundles) @ ambari-admin --- [INFO] [INFO] --- resources:3.1.0:resources (default-resources) @ ambari-admin --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 0 resource [INFO] Copying 57 resources [INFO] Copying 3 resources [INFO] [INFO] --- flatten:1.0.1:flatten (flatten) @ ambari-admin --- [INFO] Generating flattened POM of project org.apache.ambari:ambari-admin:jar:3.0.0.0-SNAPSHOT... [INFO] [INFO] --- compiler:3.2:compile (default-compile) @ ambari-admin --- [INFO] No sources to compile [INFO] [INFO] --- exec:1.2.1:exec (set-ambari-version) @ ambari-admin --- Setting Ambari version to 3.0.0.0 [INFO] [INFO] --- resources:3.1.0:testResources (default-testResources) @ ambari-admin --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /root/ambari/ambari/ambari-admin/src/test/resources [INFO] Copying 3 resources [INFO] [INFO] --- compiler:3.2:testCompile (default-testCompile) @ ambari-admin --- [INFO] No sources to compile [INFO] [INFO] --- surefire:2.20:test (default-test) @ ambari-admin --- [INFO] Tests are skipped. [INFO] [INFO] --- apache-rat:0.12:check (default) @ ambari-admin --- [INFO] Enabled default license matchers. [INFO] Will parse SCM ignores for exclusions... [INFO] Finished adding exclusions from SCM ignore files. [INFO] 61 implicit excludes (use -debug for more details). [INFO] Exclude: src/main/resources/ui/admin-web/bower_components/** [INFO] Exclude: src/main/resources/ui/admin-web/dist/** [INFO] Exclude: src/main/resources/ui/admin-web/node/** [INFO] Exclude: src/main/resources/ui/admin-web/app/assets/** [INFO] Exclude: src/main/resources/ui/admin-web/node_modules/** [INFO] Exclude: src/main/resources/ui/admin-web/app/bower_components/** [INFO] Exclude: src/main/resources/ui/admin-web/test/bower_components/** [INFO] Exclude: src/main/resources/ui/admin-web/mock.js [INFO] Exclude: src/main/resources/ui/admin-web/bower.json [INFO] Exclude: src/main/resources/ui/admin-web/test/bower.json [INFO] Exclude: src/main/resources/ui/admin-web/test/.bowerrc [INFO] Exclude: src/main/resources/ui/admin-web/.bowerrc [INFO] Exclude: src/main/resources/ui/admin-web/package.json [INFO] Exclude: src/main/resources/ui/admin-web/.jshintrc [INFO] Exclude: src/main/resources/ui/admin-web/.idea/** [INFO] 134 resources included (use -debug for more details) [INFO] Rat check: Summary over all files. Unapproved: 0, unknown: 0, generated: 0, approved: 133 licenses. [INFO] [INFO] --- jar:3.1.0:jar (default-jar) @ ambari-admin --- [INFO] Building jar: /root/ambari/ambari/ambari-admin/target/ambari-admin-3.0.0.0-SNAPSHOT.jar [INFO] [INFO] --- assembly:2.2-beta-5:single (make-assembly) @ ambari-admin --- [INFO] Reading assembly descriptor: src/main/assemblies/empty.xml [INFO] [INFO] --- site:3.7.1:attach-descriptor (attach-descriptor) @ ambari-admin --- [INFO] Skipping because packaging 'jar' is not pom. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 43.009 s [INFO] Finished at: 2023-07-19T15:33:08+08:00 [INFO] ------------------------------------------------------------------------ ` Please review [Ambari Contributing Guide](https://cwiki.apache.org/confluence/display/AMBARI/How+to+Contribute) before opening a pull request. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org For additional commands, e-mail: dev-h...@ambari.apache.org