pom.xml 3.15 KB
Newer Older
1
2
3
4
5
6
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<name>AKTIN : DWH Import : CDA Validation</name>

	<groupId>org.aktin</groupId>
	<artifactId>cda-validation</artifactId>
7
	<version>0.11-SNAPSHOT</version>
8
9
10
11

	<parent>
		<groupId>org.aktin</groupId>
		<artifactId>dwh-import</artifactId>
12
		<version>0.11-SNAPSHOT</version>
13
14
	</parent>
	<properties>
R.W.Majeed's avatar
R.W.Majeed committed
15
		<schematronVersion>20170302T140447</schematronVersion>
16
		<examplesVersion>20170105T160149</examplesVersion>
17
18
19
20
21
		<schematronArchive>aktin-runtime-${schematronVersion}</schematronArchive>            
		<examplesArchive>aktin-xml-${examplesVersion}</examplesArchive>            
	</properties>
	<build>
		<resources>
rwm's avatar
rwm committed
22
23
24
			<resource>
				<directory>src/main/resources</directory>
			</resource>
25
26
27
28
29
30
31
32
33
34
35
			<resource>
				<directory>${project.build.directory}/schematron/${schematronArchive}</directory>
			</resource>
			<resource>
				<directory>${project.build.directory}/examples/${examplesArchive}</directory>
				<excludes>
					<exclude>**/.DS_Store</exclude>
				</excludes>
			</resource>
		</resources>
		<plugins>
R.W.Majeed's avatar
R.W.Majeed committed
36
37
38
39
40
41
42
			<!-- TODO don't depend on external server. build process fails if server down.
				we should add the archives to the local repository,
				e.g. via 
				mvn install:install-file -Dfile=<path-to-file> 
					-DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> 
					-Dpackaging=<packaging>
				 -->
43
44
45
46
47
48
49
50
51
52
53
54
55
56
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>1.8</version>
				<executions>
					<execution>
						<id>download-files</id>
						<phase>validate</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target>
								<!-- schematron files -->
57
								<get src="http://aktin.art-decor.org/${schematronArchive}.zip" dest="${project.build.directory}/schematron.zip" verbose="false" usetimestamp="true" />
58
59
								<unzip src="${project.build.directory}/schematron.zip" dest="${project.build.directory}/schematron" />
								<!-- download examples -->
60
								<get src="http://aktin.art-decor.org/${examplesArchive}.zip" dest="${project.build.directory}/examples.zip" verbose="false" usetimestamp="true" />
61
62
63
64
65
66
67
68
69
70
71
72
								<unzip src="${project.build.directory}/examples.zip" dest="${project.build.directory}/examples" />
							</target>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
	<dependencies>
		<!-- XSLT and XPath processor -->
		<dependency>
			<groupId>net.sf.saxon</groupId>
73
			<artifactId>Saxon-HE</artifactId>
74
		</dependency>
75
76
77
78
79
80
81
82
83
84
85
		<!-- dependency injection is optional 
			and provided by the CDI container.
			We need this to specify that only
			one instance of the validator is 
			sufficient. -->
		<dependency>
			<groupId>javax.inject</groupId>
			<artifactId>javax.inject</artifactId>
			<version>1</version>
			<scope>provided</scope>
		</dependency>
86
87
88
		<!-- unit tests -->
		<dependency>
			<groupId>junit</groupId>
89
			<artifactId>junit</artifactId>
90
91
92
		</dependency>
	</dependencies>
</project>