<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>
	<parent>
		<artifactId>oaipmh</artifactId>
		<groupId>info.textgrid.middleware</groupId>
		<version>3.1.3-SNAPSHOT</version>
	</parent>
	<groupId>info.textgrid.middleware</groupId>
	<artifactId>oaipmh-core</artifactId>
	<packaging>jar</packaging>
	<name>DARIAHDE :: OAI-PMH DataProvider :: Core</name>
	<url>http://maven.apache.org</url>
	<dependencies>
		<dependency>
			<groupId>info.textgrid.middleware</groupId>
			<artifactId>crud-common</artifactId>
			<version>${tgcrud.version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-rs-security-cors</artifactId>
			<version>${cxf.version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-rs-client</artifactId>
			<version>${cxf.version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-jaxrs</artifactId>
			<version>${cxf.version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-frontend-jaxws</artifactId>
			<version>${cxf.version}</version>
		</dependency>
		<dependency>
			<groupId>org.apache.cxf</groupId>
			<artifactId>cxf-rt-transports-http</artifactId>
			<version>${cxf.version}</version>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>${junit.version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.elasticsearch</groupId>
			<artifactId>elasticsearch</artifactId>
			<version>${elasticsearch.version}</version>
		</dependency>
		<dependency>
			<groupId>info.textgrid.utils</groupId>
			<artifactId>httpclients</artifactId>
			<version>${tghttpclients.version}</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>${slf4j.version}</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>jcl-over-slf4j</artifactId>
			<version>${slf4j.version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<version>${slf4j.version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.14</version>
		</dependency>
		<dependency>
			<groupId>org.classicmayan.tools</groupId>
			<artifactId>metsModsMapping</artifactId>
			<version>1.0</version>
		</dependency>
		<dependency>
			<groupId>de.shadowhunt.maven.plugins</groupId>
			<artifactId>package-info-maven-plugin</artifactId>
			<version>1.4.5</version>
		</dependency>
	</dependencies>
	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>${maven-compiler-plugin.version}</version>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<version>${maven-antrun-plugin.version}</version>
				<executions>
					<execution>
						<id>do-get-sources</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<tstamp>
									<format property="BUILDDATE" pattern="yyyyMMddHHmm" />
								</tstamp>
								<echo
									file="./src/main/java/info/textgrid/middleware/OaipmhServiceVersion.java">
									package
									info.textgrid.middleware;
									public
									final
									class
									OaipmhServiceVersion {
									private
									OaipmhServiceVersion() {
									//
									}
									public
									static
									final
									String
									VERSION
									=
									"${project.version}";
									public static
									final
									String
									BUILDDATE =
									"${BUILDDATE}";
									public static final String
									BUILDNAME
									=
									"${project.artifactId}";
									}</echo>
							</tasks>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<!-- <plugin> -->
			<!-- We use this plugin to ensure that our usage of the maven-jaxb2-plugin 
				is JDK 8 compatible in absence of a fix for https://java.net/jira/browse/MAVEN_JAXB2_PLUGIN-80. -->
			<!-- <groupId>org.codehaus.mojo</groupId> -->
			<!-- <artifactId>properties-maven-plugin</artifactId> -->
			<!-- <version>${properties-maven-plugin.version}</version> -->
			<!-- <executions> -->
			<!-- <execution> -->
			<!-- <id>set-additional-system-properties</id> -->
			<!-- <goals> -->
			<!-- <goal>set-system-properties</goal> -->
			<!-- </goals> -->
			<!-- </execution> -->
			<!-- </executions> -->
			<!-- <configuration> -->
			<!-- <properties> -->
			<!-- <property> -->
			<!-- <name>javax.xml.accessExternalSchema</name> -->
			<!-- <value>file,http</value> -->
			<!-- </property> -->
			<!-- </properties> -->
			<!-- </configuration> -->
			<!-- </plugin> -->
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jaxb2-maven-plugin</artifactId>
				<version>${jaxb2-maven-plugin.version}</version>
				<executions>
					<execution>
						<id>oaipmhDCSchema-xjc</id>
						<goals>
							<goal>xjc</goal>
						</goals>
						<configuration>
							<schemaFile>oai_dc.xsd</schemaFile>
							<packageName>info.textgrid.middleware.oaidc</packageName>
							<schemaDirectory>src/main/xsd</schemaDirectory>
							<schemaIncludes>
								<include>oai_dc.xsd</include>
							</schemaIncludes>
							<generateDirectory>${project.build.directory}/generated-sources/xjc1</generateDirectory>
							<staleFile>${project.build.directory}/jaxb2/.oaiDCSchemaXjcStaleFlag</staleFile>
							<clearOutputDir>false</clearOutputDir>
							<transformSchemas>
								<transformSchema>
									<uri>http://purl.org/dc/elements/1.1/</uri>
									<toPrefix>dc</toPrefix>
								</transformSchema>
								<transformSchema>
									<uri>http://www.openarchives.org/OAI/2.0/oai_dc/</uri>
									<toPrefix>oai_dc</toPrefix>
								</transformSchema>
							</transformSchemas>
						</configuration>
					</execution>
					<execution>
						<id>oaipmhSchema-xjc</id>
						<goals>
							<goal>xjc</goal>
						</goals>
						<configuration>
							<!-- <schemaFile>oai_pmh.xsd</schemaFile> -->
							<schemaFile>http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd</schemaFile>
							<packageName>info.textgrid.middleware.oaipmh</packageName>
							<!-- <schemaDirectory>src/main/xsd</schemaDirectory> -->
							<!-- <schemaIncludes> -->
							<!-- <include>oai_pmh.xsd</include> -->
							<!-- </schemaIncludes> -->
							<generateDirectory>${project.build.directory}/generated-sources/xjc2</generateDirectory>
							<staleFile>${project.build.directory}/jaxb2/.oaipmhSchemaXjcStaleFlag</staleFile>
							<clearOutputDir>false</clearOutputDir>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>