Kauri Documentation
 PreviousHomeNext 
18 Packaging Kauri applicationsBook Index18.1.3 Configuration properties

18.1.2 Usage

18.1.2.1 Add kauri-package-plugin configuration

If you have generated your application using the archetype, then this will already be present. Otherwise, add the following plugin to your (root) pom.xml:

<project>
  [...]
  <build>
    [..]
    <plugins>


      <plugin>
        <groupId>org.kauriproject</groupId>
        <artifactId>kauri-package-plugin</artifactId>
        <version>${version.kauri}</version>
        <inherited>false</inherited>
        <configuration>
          <confDirectory>${basedir}/conf</confDirectory>
        </configuration>
      </plugin>


    </plugins>
  </build>
</project>

Adjust the path to the configuration directory (containing the kauri/wiring.xml file) if necessary.

It doesn't really matter to which pom.xml you add the kauri-package-plugin, since the plugin does not look at the project it is embedded in. It does its work based on the specified wiring.xml file.

18.1.2.2 Creating the package

Execute the following command (in the directory containing the pom.xml):

mvn kauripackage:package

This will create the package in

target/kauri-package
 PreviousHomeNext 
18 Packaging Kauri applications18.1.3 Configuration properties