Collection<String> (String mavenVersion) { Set<String> classPath = new LinkedHashSet<>(); if (StringUtil.compareVersionNumbers(mavenVersion, "3.1") < 0) { classPath.add(PathUtil.getJarPathForClass(Logger.class)); classPath.add(PathUtil.getJarPathForClass(JDK14LoggerFactory.class)); } classPath.add(PathUtil.getJarPathForClass(StringUtilRt.class));//util-rt classPath.add(PathUtil.getJarPathForClass(NotNull.class));//annotations-java5 classPath.add(PathUtil.getJarPathForClass(Element.class));//JDOM return classPath; }