<project>
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.nqzero</groupId>
    <artifactId>soup-project</artifactId>
    <version>1.0</version>
    <packaging>pom</packaging>

    <build>
        <resources>
            <resource><directory>src/main/resources</directory></resource>
            <resource>
                <directory>${basedir}</directory>
                <targetPath>META-INF</targetPath>
                <includes>
                    <include>License.txt</include>
                </includes>
            </resource>
        </resources>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>flatten-maven-plugin</artifactId>
                <version>1.0.0</version>
                <executions>
                    <execution>
                        <phase>process-resources</phase>
                        <goals><goal>flatten</goal></goals>
                    </execution>
                </executions>
                <configuration>
                    <flattenMode>ossrh</flattenMode>
                    <outputDirectory>${project.build.directory}</outputDirectory>
                </configuration>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
		    <groupId>org.apache.maven.plugins</groupId>
		    <artifactId>maven-enforcer-plugin</artifactId>
                    <version>1.4.1</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>1.6</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>2.10.4</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>3.0.1</version>
                </plugin>
                <plugin>
                    <groupId>org.sonatype.plugins</groupId>
                    <artifactId>nexus-staging-maven-plugin</artifactId>
                    <version>1.6.7</version>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <licenses>
        <license>
            <name>PUPL - Paid Use Permissive License</name>
            <url>http://db4j.org/pupl/PUPL</url>
            <distribution>repo</distribution>
            <comments>PUPL with a strike price of $100, covering srlutils, orator, directio and db4j</comments>
        </license>
    </licenses>
    <mailingLists>
        <mailingList>
            <archive>https://groups.google.com/forum/#!forum/db4j</archive>
        </mailingList>
    </mailingLists>
    <developers>
        <developer>
            <name>nqzero</name>
            <email>srl.public@nqzero.com</email>
            <organization>nqzero</organization>
            <organizationUrl>https://github.com/nqzero</organizationUrl>
        </developer>
    </developers>

    <name>soup-project</name>
    <description>a parent pom for the soup projects, ie db4j</description>
    <url>https://github.com/db4j</url>
    <scm>
        <connection>scm:git:git@github.com:db4j</connection>
        <developerConnection>scm:git:git@github.com:db4j</developerConnection>
        <url>git@github.com:db4j</url>
    </scm>

    <profiles>
        <profile>
            <id>ossrh</id>
            <build>
                <plugins>
		    <plugin>
			<groupId>org.apache.maven.plugins</groupId>
			<artifactId>maven-enforcer-plugin</artifactId>
			<executions>
			    <execution>
				<goals><goal>enforce</goal></goals>
				<configuration>
				    <rules>
					<requireReleaseVersion>
					    <message>snapshots forbidden</message>
					</requireReleaseVersion>
				    </rules>
				</configuration>
			    </execution>
			</executions>
		    </plugin>
		    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <phase>verify</phase>
                                <goals><goal>sign</goal></goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals><goal>jar</goal></goals>
                                <configuration>
                                    <failOnError>false</failOnError>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <executions>
                            <execution>
                                <goals><goal>jar-no-fork</goal></goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <groupId>org.sonatype.plugins</groupId>
                        <artifactId>nexus-staging-maven-plugin</artifactId>
                        <extensions>true</extensions>
                        <configuration>
                            <serverId>ossrh</serverId>
                            <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                            <autoReleaseAfterClose>false</autoReleaseAfterClose>
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>


</project>
