/** * Type of input schema language. One of: DTD, XMLSCHEMA, RELAXNG, * RELAXNG_COMPACT, WSDL, AUTODETECT. If unspecified, it is assumed * AUTODETECT. */ @MojoParameter(expression = "${maven.xjc2.schemaLanguage}") public String getSchemaLanguage() { return schemaLanguage; }
/** * Creates a new plugin */ @MojoGoal("create") public class StudioCreateMojo extends CreateMojo { @Override protected String getDefaultProductId() throws MojoExecutionException { return ProductHandlerFactory.STUDIO; } }
/** * Artifact factory, needed to download source jars. * */ @MojoComponent(role = "org.apache.maven.project.MavenProjectBuilder") public MavenProjectBuilder getMavenProjectBuilder() { return mavenProjectBuilder; }
/** * Provides the class name of the catalog resolver. * * @return Class name of the catalog resolver. */ @MojoParameter(expression = "${maven.xjc2.catalogResolver}") public String getCatalogResolver() { return catalogResolver; }
@MojoComponent public ArtifactResolver getArtifactResolver() { return artifactResolver; }
/** * The source directory containing *.xsd schema files. Notice that binding * files are searched by default in this deriectory. * */ @MojoParameter(defaultValue = "src/main/resources", expression = "${maven.xjc2.schemaDirectory}", required = true) public File getSchemaDirectory() { return schemaDirectory; }
/** * If 'true', the generated Java source files are set as read-only (xjc's * -readOnly option). */ @MojoParameter(defaultValue = "false", expression = "${maven.xjc2.readOnly}") public boolean getReadOnly() { return readOnly; }
/** * If 'true', no up-to-date check is performed and the XJC always * re-generates the sources. * */ @MojoParameter(defaultValue = "false", expression = "${maven.xjc2.forceRegenerate}") public boolean getForceRegenerate() { return forceRegenerate; }
/** * A list of of input files or URLs to consider during the up-to-date. By * default it always considers: 1. schema files, 2. binding files, 3. * catalog file, and 4. the pom.xml file of the project executing this * plugin. */ @MojoParameter public File[] getOtherDepends() { return otherDepends; }
/** * A list of regular expression file search patterns to specify the schemas * to be excluded from the <code>schemaIncludes</code> list. Searching is * based from the root of schemaDirectory. * */ @MojoParameter public String[] getSchemaExcludes() { return schemaExcludes; }
/** * If 'true', the XJC binding compiler will run in the extension mode (xjc's * -extension option). Otherwise, it will run in the strict conformance * mode. */ @MojoParameter(defaultValue = "false", expression = "${maven.xjc2.extension}") public boolean getExtension() { return extension; }
/** * If 'true', Perform strict validation of the input schema (xjc's -nv * option). */ @MojoParameter(defaultValue = "true", expression = "${maven.xjc2.strict}") public boolean getStrict() { return strict; }
@MojoParameter(expression = "${maven.xjc2.episode}", defaultValue = "true") public boolean getEpisode() { return episode; }
@MojoParameter public Dependency[] getEpisodes() { return episodes; }
@MojoParameter(expression = "${localRepository}", required = true) public ArtifactRepository getLocalRepository() { return localRepository; }
@MojoParameter public String[] getProduces() { return produces; }
@MojoParameter(expression = "${maven.xjc2.episodeFile}") public File getEpisodeFile() { return episodeFile; }
@MojoParameter(defaultValue = "2.1") public String getSpecVersion() { return specVersion; }
@MojoParameter(expression = "${plugin.artifacts}", required = true) public List<org.apache.maven.artifact.Artifact> getPluginArtifacts() { return pluginArtifacts; }
/** * Project classpath. Used internally when runing the XJC compiler. */ @MojoParameter(expression = "${project.compileClasspathElements}", required = true, readonly = true) public List getClasspathElements() { return classpathElements; }