Skip to content

Commit

Permalink
Simple upload via exist ant task
Browse files Browse the repository at this point in the history
  • Loading branch information
thvitt committed Aug 22, 2016
1 parent a728e57 commit 5c7859d
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
<url>http://maven.restlet.com</url>
</repository>

<repository>
<id>exist</id>
<url>https://raw.github.com/eXist-db/mvn-repo/master/</url>
</repository>

</repositories>

Expand Down Expand Up @@ -117,6 +121,7 @@
<artifactId>xmlcalabash</artifactId>
<version>1.1.9-96</version>
</dependency>

</dependencies>


Expand Down Expand Up @@ -169,7 +174,7 @@
</execution>
</executions>
</plugin>
</plugins>
</plugins>
</build>

<profiles>
Expand Down Expand Up @@ -336,5 +341,47 @@
</build>
</profile>

<profile>
<id>exist</id>
<properties>
<exist.uri>xmldb:exist://localhost:8080/exist/xmlrpc/db</exist.uri>
<exist.user>admin</exist.user>
<exist.pass>geheim</exist.pass>
</properties>
<dependencies>
<dependency>
<groupId>org.exist-db</groupId>
<artifactId>exist-core</artifactId>
<version>3.0.RC1</version>
</dependency>
<dependency>
<groupId>org.exist-db</groupId>
<artifactId>exist-optional</artifactId>
<version>3.0.RC1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<configuration>
<target xmlns:xdb="http://exist-db.org/ant">
<taskdef name="store" classname="org.exist.ant.XMLDBStoreTask"
classpathref="maven.compile.classpath" />
<store uri="${exist.uri}/faust" user="${exist.user}" password="${exist.pass}"
createcollection="true" createsubcollections="true">
<fileset dir="${project.build.directory}/search/textTranscript">
<include name="**/*.xml" />
</fileset>
</store>
</target>
</configuration>
</plugin>
</plugins>
</build>
</profile>

</profiles>
</project>

0 comments on commit 5c7859d

Please sign in to comment.