Spring Tool Suite finds spring-boot integration test configuration and does not start main application -


i have little struggle spring tool suite in combination spring-boot.

i created custom maven spring-boot-web-application including several junit tests, 1 of test integration test has configuration testapplication.

if want start spring-boot-web-application via spring tool suite ( run -> spring boot application ) application not start because both configurations ( src/main/java, src/test/java ) found , conflict each other.

as remove test resources buildpath application starts expected.

is there setting in spring tool suite prevent test resources added classpath when starting spring-boot-web-application?

thank in advance!

sts 3.6.4 has bug in causes classpath "run >> spring boot app" on maven projects include 'test stuff' (source folders , jar dependencies) on runtime classpath.

the bug regression did not exist in 3.6.3. bug fixed in master , fix part of sts 3.7.0. can fix today updating sts installation nightly update site:

http://dist.springframework.org/snapshot/ide/nightly/

open "help >> install new software" , paste above link in "work with" field , install "core" pieces. installer inform you have these , perform upgrade instead.

after upgrade succesful, "run >> boot app" should no longer have test stuff on runtime classpath.


Comments