Не добавляются ресурсные файлы в jar при сборке мавеном: - answers.txt - questions.txt - rightAnswers.txt В pom.xml описаны: <resources> <resource> <directory>src/main/resources</directory> <includes> <include>questions.txt</include> <include>answers.txt</include> <include>rightAnswers.txt</include> </includes> </resource> </resources> Чтение в Main.class первый вариант: FileReader readerQuestions = new FileReader("questions.txt"); FileReader readerAnswers = new FileReader("answers.txt"); FileReader readerRightAnswers = new FileReader("rightAnswers.txt"); Второй вариант: FileReader readerQuestions = new FileReader(new String(Files.readAllBytes(Paths.get("questions.txt")))); FileReader readerAnswers = new FileReader(new String(Files.readAllBytes(Paths.get("answers.txt")))); FileReader readerRightAnswers = new FileReader(new String(Files.readAllBytes(Paths.get("rightAnswers.txt")))); Rep - https://github.com/MichelShumaher/System-of-Testing.git
