Package org.jsonschema2pojo.maven

Examples of org.jsonschema2pojo.maven.Jsonschema2PojoMojo


    }

    public static void generate(final URL schema, final String targetPackage, final Map<String, Object> configValues, final File outputDirectory) {

        try {
            @SuppressWarnings("serial")
        Jsonschema2PojoMojo pluginMojo = new TestableJsonschema2PojoMojo().configure(new HashMap<String, Object>() {
                {
                    put("sourceDirectory", new File(schema.toURI()));
                    put("outputDirectory", outputDirectory);
                    put("project", getMockProject());
                    put("targetPackage", targetPackage);
                    putAll(configValues);
                }
            });

            pluginMojo.execute();
        } catch (URISyntaxException e) {
            throw new RuntimeException(e);
        } catch (MojoExecutionException e) {
            throw new RuntimeException(e);
        } catch (DependencyResolutionRequiredException e) {
View Full Code Here

TOP

Related Classes of org.jsonschema2pojo.maven.Jsonschema2PojoMojo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.