Plugin Documentation

Goals available for this plugin:

Goal Description
existdb:help Display help information on existdb-maven-plugin.
Call mvn existdb:help -Ddetail=true -Dgoal=<goal-name> to display parameter details.
existdb:sync Synchronizes the local filesystem with a set of collections and/or resources in an eXist-db instance.

Sample configuration:

<configuration>
<serverId>exist</serverId>
<syncMappings>
<syncMapping>
<source>xmldb:exist://localhost.de:8080/exist/xmlrpc/db/apps/sample/</source>
<target>src/main/xml/</target>
</syncMapping>
</syncMappings>
</configuration>

Corresponding server settings in $HOME/.m2/settings.xml:

<server>
<id>exist</id>
<username>admin</username>
<password>secret</password>
</server>
existdb:xar Packages all resources of the project into a XAR archive.

This goal is configured as part of the package phase in a custom lifecycle named "xar", thus defining a new packaging type of the same name.

System Requirements

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

Maven 2.0
JDK 1.8
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>net.middell</groupId>
          <artifactId>existdb-maven-plugin</artifactId>
          <version>1.0</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>net.middell</groupId>
        <artifactId>existdb-maven-plugin</artifactId>
        <version>1.0</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

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