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
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to