spring-boot-angular6-maven-project icon indicating copy to clipboard operation
spring-boot-angular6-maven-project copied to clipboard

Running master

Open msscsh opened this issue 6 years ago • 6 comments
trafficstars

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

msscsh avatar Jul 31 '19 19:07 msscsh

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.

msscsh avatar Jul 31 '19 19:07 msscsh

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.

swathisprasad avatar Aug 01 '19 05:08 swathisprasad

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]

msscsh avatar Aug 01 '19 13:08 msscsh

@HiDearCode you have to run the command from the spring-boot-angular6-maven-project\tutorial-server dir

team172011 avatar Oct 21 '19 18:10 team172011

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 avatar Jan 03 '20 19:01 maximkosheev

@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/.

swathisprasad avatar Mar 10 '20 19:03 swathisprasad