Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Skipping the Java tests in Jhipster using Maven for build

I am using Jhipster to build a webapp.

I modified some of stuff at the backend of the java. Now,when i run it through the maven it is also compling the test cases which came with the jhipster generator and i don't want to modify them instead want to skip them.

When in run maven by

./mvnw -DskipTests=true 

It is not skipping those tests. I have tried cleaning and re compiling but still no effect.

Could anyone Tell me how to skip those tests.

like image 671
Dhiresh Budhiraja Avatar asked Jan 29 '23 17:01

Dhiresh Budhiraja


2 Answers

try this cmd : \mvnw.cmd -Pprod package -DskipTests

like image 71
liams62217 Avatar answered Feb 01 '23 06:02

liams62217


The mvnw wrapper supplied with jHipster doesn't run the tests anyway so -DskipTests wont do anything. To compile and run your project without compiling tests do:

mvn clean install -Dmaven.test.skip=true spring-boot:run

like image 34
Plog Avatar answered Feb 01 '23 07:02

Plog