<?xml version="1.0" encoding="UTF-8"?>
<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/maven-v4_0_0.xsd">
   <modelVersion>4.0.0</modelVersion>
   <groupId>org.dspace</groupId>
   <artifactId>language-packs</artifactId>
   <name>DSpace I18N :: Language Packs</name>
   <description>
      DSpace Language Packs to support multiple languages.
   </description>

   <!-- 
      A Parent POM that Maven inherits DSpace Default 
      POM atrributes from. 
   -->
   <parent>
      <groupId>org.dspace</groupId>
      <artifactId>dspace-pom</artifactId>
      <version>1.5-alpha</version>
      <relativePath>../dspace-pom</relativePath>
   </parent>

   <build>
      <plugins>
         <plugin>
            <artifactId>maven-antrun-plugin</artifactId>
            <configuration>
               <tasks>
                  <mkdir dir="target/classes" />
                  <copy todir="target/classes"
                     includeEmptyDirs="false">
                     <fileset dir="${basedir}">
                        <include name="**/*.properties" />
                        <exclude name="**/*.UTF-8" />
                        <exclude name="*" />
                     </fileset>
                     <flattenmapper />
                  </copy>
               </tasks>
            </configuration>
            <executions>
               <execution>
                  <phase>generate-resources</phase>
                  <goals>
                     <goal>run</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
         <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>native2ascii-maven-plugin</artifactId>
            <version>1.0-alpha-3-SNAPSHOT</version>
            <configuration>
               <encoding>UTF8</encoding>
               <includes>**/*.properties.UTF-8</includes>
               <excludes>**/*.properties,src,target,pom.xml,.*</excludes>
               <mapFrom>*.properties.UTF-8</mapFrom>
               <mapTo>*.properties</mapTo>
               <flatten>true</flatten>
               <src>${basedir}</src>
            </configuration>
            <executions>
               <execution>
                  <phase>generate-resources</phase>
                  <goals>
                     <goal>native2ascii</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
      </plugins>
   </build>

	<reporting>
	
		<plugins>
			<plugin>
				<groupId>org.dspace</groupId>
				<artifactId>maven-i18n-report-plugin</artifactId>
				<version>1.0-SNAPSHOT</version>
			</plugin>
		</plugins>
	</reporting>

	<dependencies>
		<dependency>
			<groupId>org.dspace</groupId>
			<artifactId>dspace-api</artifactId>
		</dependency>
	</dependencies>
	
</project>