spring-boot-angular-deployment
spring-boot-angular-deployment copied to clipboard
The build command requires to be run in an Angular project, but a project definition could not be found.
Not working for me after cloning:
$ git clone https://github.com/only2dhir/spring-boot-angular-deployment.git
$ cd spring-boot-angular-deployment/
$ mvn package
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] portal-app
[INFO] user-portal
[INFO] portal parent
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building portal-app 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) @ portal-app ---
[INFO] Node v8.9.0 is already installed.
[INFO] NPM 5.5.1 is already installed.
[INFO]
[INFO] --- frontend-maven-plugin:1.6:npm (npm run build) @ portal-app ---
[INFO] Running 'npm run build' in /home/stefan/tmp/spring-boot-angular-deployment/portal-app
[INFO]
[INFO] > [email protected] build /home/stefan/tmp/spring-boot-angular-deployment/portal-app
[INFO] > ng build
[INFO]
[ERROR] The build command requires to be run in an Angular project, but a project definition could not be found.
[ERROR] npm ERR! code ELIFECYCLE
[ERROR] npm ERR! errno 1
[ERROR] npm ERR! [email protected] build: `ng build`
[ERROR] npm ERR! Exit status 1
[ERROR] npm ERR!
[ERROR] npm ERR! Failed at the [email protected] build script.
[ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[WARNING] npm WARN Local package.json exists, but node_modules missing, did you mean to install?
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] portal-app ......................................... FAILURE [ 0.841 s]
[INFO] user-portal ........................................ SKIPPED
[INFO] portal parent ...................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.077 s
[INFO] Finished at: 2019-01-17T18:16:19+01:00
[INFO] Final Memory: 26M/966M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm run build) on project portal-app: Failed to run task: 'npm run build' failed. org.apache.commons.exec.ExecuteException: 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/MojoFailureException
It seems a connection timeout error. Can you please check your proxy settings or else try changing the maven repo url.
@only2dhir I fixed the first error but I am reusing this issue for the error that comes next ^^