<?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>

    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>9</version>
    </parent>

    <groupId>br.com.jarch</groupId>
    <artifactId>javaee-archetype</artifactId>
    <version>22.12.0</version>
    <packaging>maven-archetype</packaging>
    <description>Projeto com módulos para a aplicação JAVAEE com JARCH</description>
    <name>jarch-javaee-archetype</name>

    <build>
        <extensions>
            <extension>
                <groupId>org.apache.maven.archetype</groupId>
                <artifactId>archetype-packaging</artifactId>
                <version>3.1.2</version>
            </extension>
        </extensions>

        <pluginManagement>
            <plugins>
                <plugin>
                    <artifactId>maven-archetype-plugin</artifactId>
                    <version>3.2.0</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <scm>
        <connection>scm:git:https://wesainf@bitbucket.org/wesainf/jarch-javaee-archetype.git</connection>
        <developerConnection>scm:git:https://wesainf@bitbucket.org/wesainf/jarch-javaee-archetype.git</developerConnection>
        <url>https://wesainf@bitbucket.org/wesainf/jarch-javaee-archetype.git</url>
        <tag>jarch-javaee-archetype-22.1.0-SNAPSHOT</tag>
    </scm>

    <licenses>
        <license>
            <name>Mozilla Public License, Version 2.0</name>
            <url>http://www.mozilla.org/MPL/2.0/index.txt</url>
        </license>
    </licenses>

    <developers>
        <developer>
            <id>wagner</id>
            <name>Wagner Araujo</name>
            <email>wagner.araujo@wesainformatica.com.br</email>
            <roles>
                <role>project owner</role>
                <role>administrator</role>
                <role>developer</role>
            </roles>
            <timezone>-3</timezone>
        </developer>
    </developers>

    <profiles>
        <profile>
            <id>jarch-snapshot</id>

            <repositories>
                <repository>
                    <id>jarch</id>
                    <url>https://maven.jarch.com.br/repo</url>
                </repository>
            </repositories>

            <distributionManagement>
                <repository>
                    <id>nexus-jarch-releases</id>
                    <name>Releases</name>
                    <url>https://maven.jarch.com.br/releases</url>
                </repository>

                <snapshotRepository>
                    <id>nexus-jarch-snapshots</id>
                    <name>Snapshots</name>
                    <url>https://maven.jarch.com.br/snapshots</url>
                </snapshotRepository>
            </distributionManagement>
        </profile>

        <profile>
            <id>jarch-final</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <version>3.0.1</version>
                        <executions>
                            <execution>
                                <id>attach-sources</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>3.0.0</version>
                        <executions>
                            <execution>
                                <id>attach-javadocs</id>
                                <goals>
                                    <goal>jar</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <additionalOptions>-html5</additionalOptions>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>
