Hi, Full error log is attached herewith.
Thank you. On Fri, Jul 21, 2017 at 4:03 PM, Nadeeshani Pathirennehelage < [email protected]> wrote: > Hi All, > > I got this issue while trying to build carbon-apimgt using Java 8. > > First got an error saying to install npm. > > *Before installing npm* > > [INFO] ------------------------------------------------------------ > ------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------ > ------------ > [INFO] Total time: 03:33 min > [INFO] Finished at: 2017-07-21T14:04:07+05:30 > [INFO] Final Memory: 139M/2662M > [INFO] ------------------------------------------------------------ > ------------ > [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec > (npm install (initialize)) on project > org.wso2.carbon.apimgt.publisher.feature: > Command execution failed. Cannot run program "npm" (in directory > "/home/tharindu/CODEBASE/GIT/WSO2/carbon-apimgt/features/ > apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher"): > error=2, No such file or directory -> [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 > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the > command > [ERROR] mvn <goals> -rf :org.wso2.carbon.apimgt.publisher.feature > > > > > *After installing npm* > I tried installing npm in the following two ways: > Ubuntu 15.06 - npm version 1.4.21 in ubuntu software center. > Ubuntu 16.06 - npm version 3.5.2 in ubuntu software center. > > Then I got the following error. > > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------ > ------------ > [INFO] Total time: 02:52 min > [INFO] Finished at: 2017-07-21T12:17:21+05:30 > [INFO] Final Memory: 131M/1333M > [INFO] ------------------------------------------------------------ > ------------ > [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec > (npm run build (compile)) on project org.wso2.carbon.apimgt.publisher.feature: > 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 > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the > command > [ERROR] mvn <goals> -rf :org.wso2.carbon.apimgt.publisher.feature > > Any thoughts or help on this is highly appreciated. > > Thank you, > Nadeeshani. > > -- > Pathirennehelage Nadeeshani > Software Engineer | WSO2 Inc. > Platform Security Team > mobile : +94 716545223 <+94%2071%20654%205223> > > -- Pathirennehelage Nadeeshani Software Engineer | WSO2 Inc. Platform Security Team mobile : +94 716545223
> [email protected] build_prod > /home/nadeeshani/Desktop/WSO2Products/github/APIM/carbon-apimgt/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher > NODE_ENV=production webpack -p --progress --colors --config webpack.config.js /home/nadeeshani/Desktop/WSO2Products/github/APIM/carbon-apimgt/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/webpack.config.js:1 (function (exports, require, module, __filename, __dirname) { let path = require('path'); ^^^ SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at requireConfig (/home/nadeeshani/Desktop/WSO2Products/github/APIM/carbon-apimgt/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/webpack/bin/convert-argv.js:96:18) at /home/nadeeshani/Desktop/WSO2Products/github/APIM/carbon-apimgt/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/webpack/bin/convert-argv.js:109:17 at Array.forEach (native) npm ERR! Linux 4.4.0-83-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build_prod" npm ERR! node v4.8.4 npm ERR! npm v2.15.11 npm ERR! code ELIFECYCLE npm ERR! [email protected] build_prod: `NODE_ENV=production webpack -p --progress --colors --config webpack.config.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build_prod script 'NODE_ENV=production webpack -p --progress --colors --config webpack.config.js'. npm ERR! This is most likely a problem with the wso2_apim_publisher package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! NODE_ENV=production webpack -p --progress --colors --config webpack.config.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs wso2_apim_publisher npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm ERR! npm owner ls wso2_apim_publisher npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /home/nadeeshani/Desktop/WSO2Products/github/APIM/carbon-apimgt/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/npm-debug.log [ERROR] Command execution failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404) at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:764) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine(ExecMojo.java:711) at org.codehaus.mojo.exec.ExecMojo.execute(ExecMojo.java:289) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) 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:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] WSO2 Carbon - API Management Aggregator POM ........ SUCCESS [ 6.752 s] [INFO] apimgt ............................................. SUCCESS [ 2.574 s] [INFO] org.wso2.carbon.apimgt.core ........................ SUCCESS [ 42.795 s] [INFO] WSO2 Carbon - API Manager Rest API Commons ......... SUCCESS [ 9.004 s] [INFO] API Publisher Micro Service ........................ SUCCESS [ 13.804 s] [INFO] API Store Micro Service ............................ SUCCESS [ 11.733 s] [INFO] API Admin Portal Micro Service ..................... SUCCESS [ 9.158 s] [INFO] API Manager Core Micro Service ..................... SUCCESS [ 9.792 s] [INFO] Key Manager Backend module ......................... SUCCESS [ 6.417 s] [INFO] Web server ......................................... SUCCESS [ 5.432 s] [INFO] Login authenticator ................................ SUCCESS [ 5.756 s] [INFO] WSO2 API Manager - Web - Parent .................... SUCCESS [ 0.816 s] [INFO] org.wso2.carbon.apimgt.authenticator ............... SUCCESS [ 6.390 s] [INFO] org.wso2.carbon.apimgt.auth.ui ..................... SUCCESS [ 2.801 s] [INFO] WSO2 API Manager - Publisher Commons ............... SUCCESS [ 1.884 s] [INFO] WSO2 API Manager - Web - Themes - Default .......... SUCCESS [ 1.323 s] [INFO] WSO2 API Manager - Web - Themes - Default .......... SUCCESS [ 0.976 s] [INFO] WSO2 API Manager - Web - Apps - Store .............. SUCCESS [ 4.540 s] [INFO] WSO2 API Manager - Web - Apps - API Editor ......... SUCCESS [ 2.885 s] [INFO] WSO2 API Manager - Web - Apps - Admin .............. SUCCESS [ 2.822 s] [INFO] apimgt-feature ..................................... SUCCESS [ 0.650 s] [INFO] WSO2 API Manager Core Feature ...................... SUCCESS [ 4.829 s] [INFO] WSO2 API Manager - REST API Commons Feature ........ SUCCESS [ 1.045 s] [INFO] WSO2 API Manager -REST API Publisher Feature ....... SUCCESS [ 1.816 s] [INFO] WSO2 API Manager - REST API Store Feature .......... SUCCESS [ 1.049 s] [INFO] WSO2 API Manager - REST API Admin Feature .......... SUCCESS [ 1.147 s] [INFO] WSO2 API Manager - REST API webserver Feature ...... SUCCESS [ 1.265 s] [INFO] WSO2 Carbon - API web apps Feature ................. FAILURE [ 10.714 s] [INFO] WSO2 API Manager -REST API Core Feature ............ SKIPPED [INFO] WSO2 API Manager - REST API authenticator Feature .. SKIPPED [INFO] apimgt-gateway-modules ............................. SKIPPED [INFO] APIM Ballerina Configs ............................. SKIPPED [INFO] Ballerina Native Features for API Manager - Parent . SKIPPED [INFO] Ballerina Native Features for API Manager - Parent . SKIPPED [INFO] org.wso2.carbon.apimgt.analyzer .................... SKIPPED [INFO] org.wso2.carbon.apimgt.throttling.siddhi.extension . SKIPPED [INFO] org.wso2.apimgt.analytics.feature .................. SKIPPED [INFO] org.wso2.apimgt.throttling.feature ................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:52 min [INFO] Finished at: 2017-07-21T12:17:21+05:30 [INFO] Final Memory: 131M/1333M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec (npm run build (compile)) on project org.wso2.carbon.apimgt.publisher.feature: 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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :org.wso2.carbon.apimgt.publisher.feature
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
