@Mojo(name="generate-sources",
defaultPhase=GENERATE_SOURCES,
requiresDependencyResolution=COMPILE,
requiresProject=true)
public final class YangToSourcesMojo
extends org.apache.maven.plugin.AbstractMojo
BasicCodeGenerator
s. Steps of this process:
yangFilesRootDir
BasicCodeGenerator
from codeGenerators
:
BasicCodeGenerator.generateSources(SchemaContext, File, Set)
Modifier and Type | Field and Description |
---|---|
static String |
PLUGIN_NAME |
Constructor and Description |
---|
YangToSourcesMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
void |
setProject(org.apache.maven.project.MavenProject project) |
public static final String PLUGIN_NAME
public void setProject(org.apache.maven.project.MavenProject project)
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2017 OpenDaylight. All rights reserved.