java-parent-pom/pom.xml
Pavel Popov 7d6155c05a
add compiler options, bump compiler plugin (#8)
* Add profile activations

* add compiler options, bump compiler plugin

* Fix profile activations

* Bump build utils

Co-authored-by: Alexey Pronin <a@vuln.be>
Co-authored-by: Alexey Pronin <24279065+vulnbe@users.noreply.github.com>
2020-06-10 14:10:30 +03:00

236 lines
7.1 KiB
XML

<?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>
<packaging>pom</packaging>
<groupId>com.rbkmoney</groupId>
<artifactId>parent</artifactId>
<version>1.0.5</version>
<name>RBKmoney parent</name>
<description>RBKmoney parent pom</description>
<url>https://github.com/rbkmoney/java-parent-pom</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<name>Pavel Popov</name>
<email>p.popov@rbkmoney.com</email>
<organization>RBK.money</organization>
<organizationUrl>https://rbk.money</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/rbkmoney/java-parent-pom.git</connection>
<developerConnection>scm:git:ssh://github.com/rbkmoney/java-parent-pom.git</developerConnection>
<url>https://github.com/rbkmoney/java-parent-pom/tree/master</url>
</scm>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<pubRepoId>ossrh</pubRepoId>
<pubRepo>https://oss.sonatype.org/content/repositories/releases</pubRepo>
<pubSnapRepoId>ossrh</pubSnapRepoId>
<pubSnapRepo>https://oss.sonatype.org/content/repositories/snapshots</pubSnapRepo>
<pubStagingRepoId>ossrh</pubStagingRepoId>
<pubStagingRepo>https://oss.sonatype.org/</pubStagingRepo>
</properties>
<profiles>
<profile>
<id>private</id>
<activation>
<property>
<name>env.MVN_PROFILE</name>
<value>private</value>
</property>
</activation>
<distributionManagement>
<snapshotRepository>
<id>${privSnapRepoId}</id>
<url>${privSnapRepo}</url>
</snapshotRepository>
<repository>
<id>${privRepoId}</id>
<url>${privRepo}</url>
</repository>
</distributionManagement>
<repositories>
<repository>
<id>${privRepoId}</id>
<url>${privRepo}</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>${privSnapRepoId}</id>
<url>${privSnapRepo}</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>${pubSnapRepoId}</id>
<url>${pubSnapRepo}</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</profile>
<profile>
<id>public</id>
<activation>
<property>
<name>env.MVN_PROFILE</name>
<value>public</value>
</property>
</activation>
<distributionManagement>
<snapshotRepository>
<id>${pubSnapRepoId}</id>
<url>${pubSnapRepo}</url>
</snapshotRepository>
<repository>
<id>${pubRepoId}</id>
<url>${pubRepo}</url>
</repository>
</distributionManagement>
<repositories>
<repository>
<id>${pubSnapRepoId}</id>
<url>${pubSnapRepo}</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<doclint>none</doclint>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>${pubStagingRepoId}</serverId>
<nexusUrl>${pubStagingRepo}</nexusUrl>
<autoReleaseAfterClose>${autoReleaseAfterClose}</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>sign</id>
<activation>
<property>
<name>env.MVN_PROFILE</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<keyname>${gpg.keyname}</keyname>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>common</id>
<activation>
<activeByDefault>true</activeByDefault>
<property>
<name>env.MVN_PROFILE</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
</project>