I have recently upgraded JUnit from version 4 to version 5 (Added entries in pom.xml for version 5 and removing version 4 entry). The version 5 JUnit has vintage jar, which has dependencies on JUnit Version 4 jar. The maven clean build is going through, but there is compilation issue in Eclipse. After checking the classpath of the project, it has JUnit 5 vintage jar, but the classpath does not have JUnit 4 jars which JUnit 5 vintage jar depended on. How do I add these jars without manually adding in project classpath?