Class 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 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_AND_WEB_SERVICE_CLIENT_PACKAGE_NAME_KEY

        public static final String SEI_AND_WEB_SERVICE_CLIENT_PACKAGE_NAME_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • BootCxfMojo

        public BootCxfMojo()
    • 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