Class CleanServiceBuilderMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.liferay.portal.tools.db.support.maven.CleanServiceBuilderMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class CleanServiceBuilderMojo extends org.apache.maven.plugin.AbstractMojo
Clean the Liferay database from the Service Builder tables and rows of a module.
Goal:
clean-service-builder
  • Field Summary

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    setPassword(String password)
    The user password for connecting to the Liferay database.
    void
    setPropertiesFile(File propertiesFile)
    The portal-ext.properties file which contains the JDBC settings for connecting to the Liferay database.
    void
    setServiceXmlFile(File serviceXmlFile)
    The service.xml file.
    void
    setServletContextName(String servletContextName)
    The servlet context name (usually the value of the \"Bundle-Symbolic-Name\" manifest header) of the module.
    void
    The JDBC URL for connecting to the Liferay database.
    void
    setUserName(String userName)
    The user name for connecting to the Liferay database.

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CleanServiceBuilderMojo

      public CleanServiceBuilderMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • setPassword

      public void setPassword(String password)
      The user password for connecting to the Liferay database.
      Parameter:
    • setPropertiesFile

      public void setPropertiesFile(File propertiesFile) throws IOException
      The portal-ext.properties file which contains the JDBC settings for connecting to the Liferay database.
      Throws:
      IOException
      Parameter:
    • setServiceXmlFile

      public void setServiceXmlFile(File serviceXmlFile)
      The service.xml file.
      Parameter:
      default-value="${project.basedir}/service.xml"
      Required:
    • setServletContextName

      public void setServletContextName(String servletContextName)
      The servlet context name (usually the value of the \"Bundle-Symbolic-Name\" manifest header) of the module.
      Parameter:
      default-value="${project.artifactId}"
      Required:
    • setUrl

      public void setUrl(String url)
      The JDBC URL for connecting to the Liferay database.
      Parameter:
    • setUserName

      public void setUserName(String userName)
      The user name for connecting to the Liferay database.
      Parameter: