Skip to content
Snippets Groups Projects
Commit 6baa6737 authored by Thorsten Vitt's avatar Thorsten Vitt
Browse files

Download and package the TEI stylesheets

parent abe64242
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@
<guava-version>13.0.1</guava-version>
<junit-version>4.10</junit-version>
<spring-version>3.2.2.RELEASE</spring-version>
<tei-xsl-version>6.28</tei-xsl-version>
</properties>
<repositories>
......@@ -301,6 +302,55 @@
</execution>
</executions>
</plugin>
<!-- Following two executions are used to download the specified version
of the TEI stylesheets and unzip them to the WEB-INF folder of the
target WAR
-->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<version>1.0-beta-4</version>
<executions>
<execution>
<id>download-tei-stylesheets</id>
<goals>
<goal>download-single</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
<url>http://downloads.sourceforge.net/project/tei/Stylesheets/</url>
<fromFile>tei-xsl-${tei-xsl-version}.zip</fromFile>
<toDir>${project.build.directory}</toDir>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>truezip-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>extract-tei-stylesheets</id>
<goals>
<goal>copy</goal>
</goals>
<phase>generate-resources</phase>
</execution>
</executions>
<configuration>
<fileset>
<directory>${project.build.directory}/tei-xsl-${tei-xsl-version}.zip/xml</directory>
<outputDirectory>${project.build.directory}/${project.artifactId}-${project.version}/WEB-INF</outputDirectory>
<includes>
<include>**/*</include>
</includes>
</fileset>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment