<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.gurux</groupId>
  <artifactId>gurux.common</artifactId>
  <version>1.0.11</version>
  <packaging>jar</packaging>  
  <name>gurux.common</name>
  <url>http://www.gurux.org</url>
  <description>gurux.common.java package implements interfaces that are needed for Gurux Media components and Gurux Device Framework. Purpose of Gurux Device Framework is help you to read your devices, meters and sensors easier.</description>
  <developers>
    <developer>
        <id>Gurux</id>
        <name>Gurux Ltd.</name>
        <email>gurux@gurux.org</email>
        <url>http://www.gurux.org</url>
        <organization>Gurux Ltd.</organization>
        <organizationUrl>http://www.gurux.org</organizationUrl>
        <roles>
          <role>architect</role>
          <role>developer</role>
        </roles>
        <timezone>Europe/Helsinki</timezone>
        <properties>
        <picUrl>http://www.gurux.org/images/gurux-avatar.png</picUrl>
      </properties>
    </developer>
  </developers>
  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>
  <scm>
    <url>https://github.com/gurux/gurux.common.java/</url>
  </scm>
  <!-- Update component to Central repository. -->
  <distributionManagement>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
    <repository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
  </distributionManagement>

 <build>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
      <!-- Set used JRE version. -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.3</version>
        <configuration>
        <source>1.7</source>
        <target>1.7</target>
        </configuration>
      </plugin>
      <!-- Generate sources. -->
        <plugin>
	  <groupId>org.apache.maven.plugins</groupId>
	  <artifactId>maven-source-plugin</artifactId>
	  <version>2.4</version>
	  <executions>
	    <execution>
	      <id>attach-sources</id>
	      <goals>
	      <goal>jar</goal>
	      </goals>
	    </execution>
	  </executions>
       </plugin>
       <!-- Generate java doc. -->
       <plugin>
       <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-javadoc-plugin</artifactId>
         <version>2.9.1</version>
         <executions>
           <execution>
             <id>attach-javadocs</id>
             <goals>
               <goal>jar</goal>
             </goals>
           </execution>
         </executions>
       </plugin>
    </plugins>
  </build>

 <profiles>
  <profile> 
    <id>release</id>
    <build>
      <plugins>
       <!--  Sign the component. -->
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-gpg-plugin</artifactId>
         <version>1.5</version>
         <executions>
           <execution>
             <id>sign-artifacts</id>
             <phase>verify</phase>
             <goals>
               <goal>sign</goal>
             </goals>
           </execution>
         </executions>
       </plugin>
       <!-- Deployment and release -->
       <plugin>
         <groupId>org.sonatype.plugins</groupId>
         <artifactId>nexus-staging-maven-plugin</artifactId>
         <version>1.6.3</version>
         <extensions>true</extensions>
         <configuration>
            <serverId>ossrh</serverId>
            <nexusUrl>https://oss.sonatype.org/</nexusUrl>
            <autoReleaseAfterClose>true</autoReleaseAfterClose>
         </configuration>
       </plugin>
      </plugins>
    </build>
  </profile>
</profiles>

  <licenses>
    <license>
    <name>GNU General Public License, version 2</name> 
    <url>http://www.gnu.org/licenses/gpl-2.0.txt</url>
    </license>
  </licenses>
    <organization>
      <url>www.gurux.org</url>
 	  <name>Gurux Ltd.</name>
  </organization>
</project>