<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.metabit.library.format.tlv</groupId>
    <artifactId>TLVIterator</artifactId>
    <version>0.3.5-SNAPSHOT</version>
    <packaging>jar</packaging>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.7</maven.compiler.source>
        <maven.compiler.target>1.7</maven.compiler.target>
    </properties>
    <name>TLV iterator</name>
    <description>freeware version of the metabit TLV iterator library.
           
Accessing TLV encoded data vial the Iterator design pattern,
additionally conversion classes for ease of use.
    </description>

    <licenses>
        <license>
            <name>Creative Commons Attribution-NoDerivatives 4.0 International License</name>
            <url>http://creativecommons.org/licenses/by-nd/4.0/</url>
        </license>
        <!-- planned: switch to Apache 2.0 license -->
    </licenses>

    <url>http://metabit.org/software/mlib/tlviterator</url>

    <developers>
        <developer>
            <name>JW</name>
            <organization>metabit</organization>            
            <organizationUrl>http://metabit.org/</organizationUrl>
        </developer>
    </developers>   
    <scm>
        <connection>scm:svn:http://metabit.org/svn/trunk/</connection>
    </scm> 


    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <showDeprecation>true</showDeprecation>
                </configuration>
            </plugin>                  
        </plugins>
    </build>
    

    <profiles>
        <profile>
            <id>codesigning</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-jarsigner-plugin</artifactId>
                        <version>1.4</version>
        
                        <configuration>
                            <!-- you need to set the actual values in your ~/.m2/settings.xml file
                            inside of <settings><properties>     -->             
                            <storetype>${keystore.type}</storetype>
                            <keystore>${keystore.path}</keystore>
                            <alias>${keystore.alias}</alias>
                            <storepass>${keystore.store.password}</storepass>
                            <keypass>${keystore.key.password}</keypass>
                            <arguments>
                                <argument>-tsa</argument>
                                <argument>https://timestamp.geotrust.com/tsa</argument>
                            </arguments>        
                        </configuration>        
                        <executions>
                            <execution>
                                <id>sign</id>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                            <execution>
                                <id>verify</id>
                                <goals>
                                    <goal>verify</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>   
                </plugins>
            </build>     
        </profile>
    </profiles>                
  
  
    <dependencies>
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>6.8.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.logging.log4j</groupId>
            <artifactId>log4j-api</artifactId>
            <version>2.3</version>
            <type>jar</type>
        </dependency>
    </dependencies>    
</project>