<?xml version="1.0"?> <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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.fossgalaxy.common</groupId> <artifactId>parent-pom</artifactId> <version>0.2-SNAPSHOT</version> <packaging>pom</packaging> <name>FOSS Galaxy POM</name> <description>A super POM for FOSS Galaxy projects.</description> <url>https://pages.fossgalaxy.com/${fossgalaxy.owner.id}/${fossgalaxy.repo.id}</url> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <!-- Require java 1.8 --> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <!-- fossgalaxy specific --> <fossgalaxy.owner.id>infrastructure</fossgalaxy.owner.id> <fossgalaxy.repo.id>${project.artifactId}</fossgalaxy.repo.id> </properties> <!-- by default, we assume GPLv3 --> <licenses> <license> <name>GNU General Public License, Version 3.0</name> <url>https://www.gnu.org/licenses/gpl-3.0.txt</url> </license> </licenses> <!-- FOSS Galaxy Git SCM settings --> <scm> <connection>scm:git:git://git@git.fossgalaxy.com:${fossgalaxy.owner.id}/${fossgalaxy.repo.id}.git</connection> <developerConnection>scm:git:ssh://git@git.fossgalaxy.com:${fossgalaxy.owner.id}/${fossgalaxy.repo.id}.git</developerConnection> <url>https://git.fossgalaxy.com/${fossgalaxy.owner.id}/${fossgalaxy.repo.id}</url> </scm> <!-- tag FossGalaxy projects --> <organization> <name>FOSS Galaxy</name> <url>https://www.fossgalaxy.com</url> </organization> <!-- people you should contact about the code --> <developers> <developer> <id>webpigeon</id> <name>Joseph Walton-Rivers</name> <email>webpigeon@fossgalaxy.com</email> </developer> </developers> <!-- We use sonatype ossrh for maven deployments --> <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> <site> <id>fossgalaxy.website.static</id> <url>scp://docs.fossgalaxy.com/srv/public_sites/${project.artifactId}</url> </site> </distributionManagement> <!-- reports for the website --> <reporting> <plugins> <plugin> <!-- Maven javadocs --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.4</version> </plugin> </plugins> </reporting> <profiles> <!-- when doing releases build javadocs, source and sign them --> <profile> <id>release</id> <build> <plugins> <!-- generate source code jars --> <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> <!-- generate 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> <!-- GPG sign all of the jars --> <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> </plugins> </build> </profile> </profiles> <build> <plugins> <!-- ensure that the parent site.xml is used for all projects --> <plugin> <artifactId>maven-site-plugin</artifactId> <version>3.5.1</version> <executions> <execution> <id>attach-descriptor</id> <goals> <goal>attach-descriptor</goal> </goals> </execution> </executions> </plugin> <!-- use release plugin for well-defined releases --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.5.3</version> <configuration> <tagNameFormat>v@{project.version}</tagNameFormat> <releaseProfiles>release</releaseProfiles> </configuration> </plugin> </plugins> </build> </project>