18.2.2 Usage
18.2.2.1 Add kauri-package-plugin configuration
If you have generated your application using the
<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.2.2.2 Creating the webapp
Execute the following command (in the directory containing the pom.xml):
mvn kauripackage:webapp
This will create the webapp in
target/webapp
You should be able to deploy this in most Servlet containers like Tomcat, Jetty, and others.
You could create a war of this for easy distribution, but for running the webapp, only "extracted wars" are supported.
Previous