Or if you are running an IDE for instance eclipse you can ideal click on the undertaking -> Construct path -> configure Establish path This might be an IDE bug. As an example @Joel Costigliola explained a circumstance where Eclipse didn't deal with a Maven "exam" tree correctly: see this https://bongacams27271.mybuzzblog.com/16270425/bongacam-couples-options