Import plugin

This plugin allows you to import data into running instance of your application using the import servlet.


<plugin>
<groupId>org.equanda</groupId>
<artifactId>equanda-maven-plugin</artifactId>
<configuration>
<url>https://localhost:8443/import</url>
<login>local</login>
<password>local</password>
<locations>
<location>organizations.import.txt</location>
</locations>
</configuration>
<executions>
<execution>
<id>import</id>
<phase>test-compile</phase>
<goals>
<goal>import</goal>
</goals>
</execution>
</executions>
</plugin>

It is possible to define several files to import. THe files themselves are first searched in the classpath (test scope), or if that fails, searched on the file system.

Note that when the several maven plugins with the same group/artifact id are used in one pom, then the configuration is read from the first instance (though the execution itself is correct).

  • 1. Import plugin