Or in case you are operating an IDE like eclipse you can suitable click on the undertaking -> build route -> configure Construct route This may be an IDE bug. For example @Joel Costigliola explained a situation wherever Eclipse did not cope with a Maven "exam" tree accurately: see this https://fernandomlvov.bcbloggers.com/35519687/bongacam-couples-things-to-know-before-you-buy