<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>dspace-api-lang</artifactId>
   <name>DSpace I18N :: Language Packs</name>
   <version>1.8.0.2</version>
   <description>
      DSpace Language Packs to support multiple languages.
   </description>
   <url>http://projects.dspace.org/dspace-api-lang</url>

   <organization>
      <name>DuraSpace</name>
      <url>http://www.dspace.org</url>
   </organization>

   <parent>
     <artifactId>dspace-pom</artifactId>
     <groupId>org.dspace</groupId>
     <version>12</version>
   </parent>

   <build>
     <resources>
         <resource>
            <directory>src/main/resources</directory>
            <excludes>
               <exclude>**/*.properties.UTF-8</exclude>
            </excludes>
         </resource>
      </resources>
      <plugins>
        <plugin>
            <groupId>com.mycila.maven-license-plugin</groupId>
            <artifactId>maven-license-plugin</artifactId>
            <configuration>
                <!--Exclude license check for all Messages.properties files-->
                <excludes>
                    <exclude>**/Messages_*.properties</exclude>
                </excludes>
            </configuration>
        </plugin>
      </plugins>
   </build>

   <!-- 
      The Subversion repository location is used by Continuum to update against
      when changes have occured, this spawns a new build cycle and releases snapshots
      into the snapshot repository below.
   -->
   <scm>
      <connection>scm:svn:http://scm.dspace.org/svn/repo/modules/dspace-api-lang/tags/dspace-api-lang-1.8.0.2</connection>
      <developerConnection>scm:svn:https://scm.dspace.org/svn/repo/modules/dspace-api-lang/tags/dspace-api-lang-1.8.0.2</developerConnection>
      <url>http://scm.dspace.org/svn/repo/modules/dspace-api-lang/tags/dspace-api-lang-1.8.0.2</url>
   </scm>

   <profiles>
      <profile>
         <id>native2ascii</id>
         <activation>
            <activeByDefault>false</activeByDefault>
         </activation>
         <build>
            <plugins>
               <plugin>
                  <artifactId>maven-antrun-plugin</artifactId>
                  <configuration>
                     <tasks>
                        <mkdir dir="target/classes" />
                        <native2ascii encoding="UTF8" src="${basedir}/src/main/native2ascii" dest="${basedir}/src/main/resources" includes="**/*.properties.UTF-8" ext="" />
                     </tasks>
                  </configuration>
                  <executions>
                     <execution>
                        <phase>generate-resources</phase>
                        <goals>
                           <goal>run</goal>
                        </goals>
                     </execution>
                  </executions>
                  <dependencies>
                     <dependency>
                        <groupId>org.apache.ant</groupId>
                        <artifactId>ant-nodeps</artifactId>
                        <version>1.8.1</version>
                     </dependency>
                     <dependency>
                        <groupId>org.apache.ant</groupId>
                        <artifactId>ant</artifactId>
                        <version>1.8.2</version>
                     </dependency>
                  </dependencies>
               </plugin>
            </plugins>
         </build>
      </profile>
   </profiles>

</project>
