spring-boot-angular6-maven-project
spring-boot-angular6-maven-project copied to clipboard
Running master
I download the master today(07/31) and just run the "mvn clean install".
My machine info: Debian 10 npm 5.8.0 node v10.15.2
I also tried to change the setting in master pom: frontend-maven-plugin 1.7.6 (latest) nodeVersion v10.15.2 (my machine) npm 5.8.0 (my machine)
I always get the same error: [ERROR] npm ERR! code EINTEGRITY [ERROR] npm ERR! sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE= integrity checksum failed when using sha1: wanted sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE= but got sha512-LzHF64s5chPQQS0IYBn9IN5h3i98c12bo4NCO7e0sGM2llXQ3p2FGC5sdENN4cTW48O915Sh+x+EXx7XW96xYQ== sha1-sZ7sP94qluZGZt+f20DFyhvDdH0=. (33170 bytes)
I also tried commands, followed by mvn clean install, like: npm cache clean --force npm cache verify
After i delete those files the build could be done without issues:
~/tutorial-web/src/main/web/packag-lock.json ~/tutorial-web/src/main/web/tslint.json ~/tutorial-web/src/main/web/src/tslint.json
Maybe those files should not be commited.
Those files are part of Angular CLI project. They should not cause problem. This project is tested only on Windows. Probably, deleting ~/tutorial-web/src/main/web/packag-lock.json might have resolved your problem. This file is to ensure a consistent install and compatible dependencies. So, it should be committed to source control. Even if this file is deleted, it would get regenerated.
I cloned the master on my Windows machine and it compile fine(just like on my Debian when i delete the files above), but when i run using "mvn spring-boot:run" i get the same error in both OS:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.4.RELEASE:run (default-cli) on project tutorial-parent: Unable to find a suitable main class, please add a 'mainClass' property -> [Help 1]
@HiDearCode you have to run the command from the spring-boot-angular6-maven-project\tutorial-server dir
I clone this project, build it with errors as written later, but i solved it. Then i deploy tutorial-server-0.0.1-SNAPSHOT.war on my tomcat server, but i have not any angular page on /home url. Only blank page.
@maximkosheev, have you built the war from root directory? Please check my blog for instructions https://techshard.com/2018/08/12/building-a-web-app-using-spring-boot-angular-6-and-maven/.