<?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>xyz.cofe</groupId>
    <artifactId>cxconsole-parent</artifactId>
    <!--<version>0.1-SNAPSHOT</version>-->
    <!--<version>0.1</version>-->
    <!--<version>0.2.1-SNAPSHOT</version>-->
    <version>0.2.2</version>
    
    <packaging>pom</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>
        <maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
        <timestamp>${maven.build.timestamp}</timestamp>
        <dep.groovy.version>2.5.6</dep.groovy.version>
        <dep.groovy.artid>groovy-all</dep.groovy.artid>
        <dep.groovy.type>pom</dep.groovy.type>
    </properties>

    <name>cxconsole-parent</name>
    <description>CXConsole</description>
    <url>https://github.com/gochaorg/cofe.xyz</url>

    <licenses>
      <license>
        <name>MIT License</name>
        <url>http://www.opensource.org/licenses/mit-license.php</url>
      </license>
    </licenses>
    
    <developers>
        <developer>
          <name>Georgiy P Kamnev</name>
          <email>nt.gocha@gmail.com</email>
          <!-- <organization>-none-</organization> -->
          <!-- <organizationUrl>http://www.sonatype.com</organizationUrl> -->
        </developer>
    </developers>
    
    <scm>
      <connection>scm:git:git://github.com/gochaorg/cofe.xyz.git</connection>
      <developerConnection>scm:git:ssh://github.com:gochaorg/cofe.xyz.git</developerConnection>
      <url>http://github.com/gochaorg/cofe.xyz/tree/master</url>
    </scm>

    <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>
                
    <!-- модули -->
    <modules>
        <!--
		<module>fs-itf</module>
        <module>fs-spi</module>
        <module>fs-unix</module>
        <module>fs</module>
        <module>fs-cli</module>
		-->
        <!-- <module>gui.swing</module> -->
        <!-- <module>j2d</module> -->
        <!--<module>gui.swing-sample</module>-->
        
        <module>cxconsole-base</module>
        <module>cxscript</module>
        <module>cxconsole</module>
        <module>embeded-console</module>
        <module>cxsql</module>
        <!--<module>cxscript-testcp</module>-->
        <module>cxscript-samples</module>
        <module>cxgroovy</module>
        <module>cxbootstrap-cp</module>
    </modules>
    
    <!-- зависимости -->
    <dependencies>
        <dependency>
            <groupId>${project.groupId}</groupId>
            <artifactId>common</artifactId>
            <!--<version>LATEST</version>-->
            <version>0.2.2</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.10</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <!-- Создание -sources.jar -->
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.2.1</version>
                <executions>
                <execution>
                <id>attach-sources</id>
                <goals>
                <goal>jar-no-fork</goal>
                </goals>
                </execution>
                </executions>
            </plugin>

            <!-- Создание -javadoc.jar -->
            <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>pub-sonatype</id>
            <build>
                <plugins>
                    <!-- Создание подписи -.jar.asc -->
                    <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>
                    <!-- Создание подписи -.jar.asc -->
                    <plugin>
                        <groupId>org.sonatype.plugins</groupId>
                        <artifactId>nexus-staging-maven-plugin</artifactId>
                        <version>1.6.7</version>
                        <extensions>true</extensions>
                        <configuration>
                            <serverId>ossrh</serverId>
                            <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                            <autoReleaseAfterClose>true</autoReleaseAfterClose>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>