@Test
    public void testDontFailIfNoClassesMatch() throws Exception {
        File testCaseLocation = new File("src/test/resources/error-test-cases");
        this.executePom(new File(testCaseLocation, "ClassNotFound-dontFailIfNoClassesMatch-pom.xml"));
        // no error thrown, i.e., build proceeds even without any schema having been generated
    }
Unit test that will generate from a maven pom file fragment and expect no exception being thrown although no classes matches pattern.

@throws Exception In case something goes wrong
jsonschema-maven-plugin/src/test/java/com/github/victools/jsonschema/plugin/maven/SchemaGeneratorMojoTest.java