Plugin Documentation

Goals available for this plugin:

Goal Description
orcas:checkConnection Simple connection test.
orcas:cleanLog Cleans the spoolfolder.
orcas:compileAllInvalid Compiles pl/sql code in the database.
orcas:compileAllInvalidIfReplaceablesExists Specialized version of compileAllInvalid which is only executed if replaceabels folder exists.
orcas:dropReplaceables Drops all replaceanles in th database-schema.
orcas:dropReplaceablesIfReplaceablesExists Specialized version of dropReplaceables which is only executed if replaceabels folder exists.
orcas:ExecuteOneTimeScripts Execute sql-scripts only once per schema. The exceution is logged in the tbale orcas_updates. This table will be created in the current schema unless the paramater orcasusername is used.
orcas:ExecuteScript Execute a single sql-script.
orcas:ExecuteScripts Execute sql-scripts.
orcas:extractReplaceables Cretaes sql-scripts for replace objects existing in the database-schema.
orcas:extractStatics Cretaes orcas-scripts for existing static objects (tables, sequences...) in the database-schema.
orcas:help Display help information on orcas-maven-plugin.
Call mvn orcas:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
orcas:initializeOrcasDb Installs orcas to the database if nedded. Only needed if you provide custom-pl/sql-extensions.
orcas:installReplaceables Exceutes sql-script that contain database-objects.
orcas:oneTimeScriptsPostCompile Specialized version of ExecuteOneTimeScripts which is added at the end of the build cycle.
orcas:oneTimeScriptsPreStatics Specialized version of ExecuteOneTimeScripts which is added at the beginning of the build cycle.
orcas:schemaSyncStatics This can be used to do a schema compare and to apply the changes to the destination schema. The src-schema is used to read the information that is usually taken form orcas-scripts.
orcas:updateStatics This is the main mojo to update the database-schema according to the orcas-script files.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 2.0
JDK Default target for maven-compiler-plugin version 3.1
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>com.opitzconsulting.orcas</groupId>
          <artifactId>orcas-maven-plugin</artifactId>
          <version>4.1.2</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>com.opitzconsulting.orcas</groupId>
        <artifactId>orcas-maven-plugin</artifactId>
        <version>4.1.2</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"