mvn clean install -DskipTests

Spring Boot, maven compile error

Follow below steps when any maven build is failing: 1) Go to command prompt and write this command: mvn clean install -DskipTests 2) Go back to Spring Boot, press Alt+F5 (or update the project). 3) Click on project and run as Maven install (Check also in deployment descriptor, if Maven Dependency is included).

Hope it helps.

shareimprove this answer
answered Apr 24 ’18 at 12:29

Shirsh Sinha
9466 bronze badges
Are you really interested in running your test. Delete test file from /src/test/java and then build. – Shirsh Sinha Apr 24 ’18 at 12:32
Thank you Shirsh Sinha, “: 《mvn clean install -DskipTests》” works for me, Problem is solved !!!!



电子邮件地址不会被公开。 必填项已用*标注