Class GenerateConfigMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="generate-config",
          defaultPhase=GENERATE_SOURCES,
          requiresDependencyResolution=COMPILE_PLUS_RUNTIME)
    public final class GenerateConfigMojo
    extends org.apache.maven.plugin.AbstractMojo
    Generate configuration classes from XML definition files for OpenDJ server.

    There is a single goal that generate java sources, manifest files, I18N messages and cli/ldap profiles. Resources will be looked for in the following places depending on whether the plugin is executing for the core config or an extension:

    Location
    XSLT stylesheets Internal: /config/stylesheets
    XML core definitions Internal: /config/xml
    XML extension definitions ${basedir}/src/main/java
    Generated Java APIs ${project.build.directory}/generated-sources/config
    Generated I18N messages ${project.build.outputDirectory}/config/messages
    Generated profiles ${project.build.outputDirectory}/config/profiles/${profile}
    Generated manifest ${project.build.outputDirectory}/META-INF/services/org.forgerock.opendj. config.AbstractManagedObjectDefinition
    • Constructor Detail

      • GenerateConfigMojo

        public GenerateConfigMojo()
    • Method Detail

      • execute

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