Class GenerateXmlWithDtoMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.camel.maven.generator.swagger.GenerateXmlMojo
-
- org.apache.camel.maven.generator.swagger.GenerateXmlWithDtoMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="generate-xml-with-dto", inheritByDefault=false, defaultPhase=GENERATE_SOURCES, requiresDependencyResolution=COMPILE, threadSafe=true) public class GenerateXmlWithDtoMojo extends GenerateXmlMojo
-
-
Field Summary
Fields Modifier and Type Field Description static String[]
DEFAULT_REST_CONSUMER_COMPONENTS
-
Constructor Summary
Constructors Constructor Description GenerateXmlWithDtoMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
detectCamelVersionFromClasspath()
protected String
detectRestComponentFromClasspath()
protected boolean
detectSpringBootFromClasspath()
protected String
detectSpringBootMainPackage()
void
execute()
protected String
findAppropriateComponent()
protected String
findSpringSpringBootPackage(File dir)
protected static String
grabPackageName(String content)
-
-
-
Field Detail
-
DEFAULT_REST_CONSUMER_COMPONENTS
public static final String[] DEFAULT_REST_CONSUMER_COMPONENTS
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Overrides:
execute
in classGenerateXmlMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
detectCamelVersionFromClasspath
protected String detectCamelVersionFromClasspath()
-
detectRestComponentFromClasspath
protected String detectRestComponentFromClasspath()
-
detectSpringBootFromClasspath
protected boolean detectSpringBootFromClasspath()
-
detectSpringBootMainPackage
protected String detectSpringBootMainPackage() throws IOException
- Throws:
IOException
-
findSpringSpringBootPackage
protected String findSpringSpringBootPackage(File dir) throws IOException
- Throws:
IOException
-
findAppropriateComponent
protected String findAppropriateComponent()
-
-