Package de.codecentric.cxf
Class BootCxfMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- de.codecentric.cxf.BootCxfMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="generate", defaultPhase=GENERATE_SOURCES) public class BootCxfMojo extends org.apache.maven.plugin.AbstractMojo
-
-
Field Summary
Fields Modifier and Type Field Description static StringCXF_SPRING_BOOT_MAVEN_PROPERTIES_FILE_NAMEstatic StringSEI_AND_WEB_SERVICE_CLIENT_PACKAGE_NAME_KEYstatic StringSEI_IMPLEMENTATION_PACKAGE_NAME_KEY
-
Constructor Summary
Constructors Constructor Description BootCxfMojo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanCxfSpringBootMavenProperties(String outputDirectory)voidexecute()protected FilefindWsdl(File buildDirectory)protected StringgeneratePackageNameFromTargetNamespaceInWsdl(String targetNamespaceFromWsdl)protected StringreadTargetNamespaceFromWsdl(String wsdl)protected static StringreadWsdlIntoString(File wsdl)protected voidwriteCxfSpringBootMavenProperties(String outputDirectory, String propertyKey, String packageName)protected voidwriteSeiAndWebServiceClientPackageToCxfSpringBootMavenPropterties(String outputDirectory, String packageName)protected voidwriteSeiImplementationPackageToCxfSpringBootMavenPropterties(String outputDirectory, String packageName)
-
-
-
Field Detail
-
CXF_SPRING_BOOT_MAVEN_PROPERTIES_FILE_NAME
public static final String CXF_SPRING_BOOT_MAVEN_PROPERTIES_FILE_NAME
- See Also:
- Constant Field Values
-
SEI_IMPLEMENTATION_PACKAGE_NAME_KEY
public static final String SEI_IMPLEMENTATION_PACKAGE_NAME_KEY
- See Also:
- Constant Field Values
-
SEI_AND_WEB_SERVICE_CLIENT_PACKAGE_NAME_KEY
public static final String SEI_AND_WEB_SERVICE_CLIENT_PACKAGE_NAME_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
findWsdl
protected File findWsdl(File buildDirectory) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
readTargetNamespaceFromWsdl
protected String readTargetNamespaceFromWsdl(String wsdl) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
readWsdlIntoString
protected static String readWsdlIntoString(File wsdl) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
generatePackageNameFromTargetNamespaceInWsdl
protected String generatePackageNameFromTargetNamespaceInWsdl(String targetNamespaceFromWsdl) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
writeSeiAndWebServiceClientPackageToCxfSpringBootMavenPropterties
protected void writeSeiAndWebServiceClientPackageToCxfSpringBootMavenPropterties(String outputDirectory, String packageName) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
writeSeiImplementationPackageToCxfSpringBootMavenPropterties
protected void writeSeiImplementationPackageToCxfSpringBootMavenPropterties(String outputDirectory, String packageName) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
writeCxfSpringBootMavenProperties
protected void writeCxfSpringBootMavenProperties(String outputDirectory, String propertyKey, String packageName) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
cleanCxfSpringBootMavenProperties
public void cleanCxfSpringBootMavenProperties(String outputDirectory) throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-