maven-release-plugin
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>3.1.1</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more contributor license agreements. See the NOTICE file ~ distributed with this work for additional information ~ regarding copyright ownership. The ASF licenses this file ~ to you under the Apache License, Version 2.0 (the ~ "License"); you may not use this file except in compliance ~ with the License. You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, ~ software distributed under the License is distributed on an ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the License for the ~ specific language governing permissions and limitations ~ under the License. --> <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.apache.maven.release</groupId> <artifactId>maven-release</artifactId> <version>3.1.1</version> </parent> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <packaging>maven-plugin</packaging> <name>Maven Release Plugin</name> <description>This plugin is used to release a project with Maven, saving a lot of repetitive, manual work.</description> <prerequisites> <maven>${mavenVersion}</maven> </prerequisites> <dependencies> <dependency> <groupId>org.apache.maven.release</groupId> <artifactId>maven-release-api</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.apache.maven.release</groupId> <artifactId>maven-release-manager</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> </dependency> <dependency> <groupId>org.apache.maven.plugin-tools</groupId> <artifactId>maven-plugin-annotations</artifactId> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-model</artifactId> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-core</artifactId> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-settings</artifactId> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-artifact</artifactId> </dependency> <dependency> <groupId>org.apache.maven.scm</groupId> <artifactId>maven-scm-api</artifactId> </dependency> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-utils</artifactId> </dependency> <!-- verified with ITs --> <dependency> <groupId>org.apache.maven.release</groupId> <artifactId>maven-release-oddeven-policy</artifactId> <version>${project.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>org.apache.maven.release</groupId> <artifactId>maven-release-semver-policy</artifactId> <version>${project.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>org.hamcrest</groupId> <artifactId>hamcrest</artifactId> <version>2.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-compat</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.maven.plugin-testing</groupId> <artifactId>maven-plugin-testing-harness</artifactId> <version>3.3.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <executions> <execution> <id>mojo-descriptor</id> <goals> <goal>descriptor</goal> </goals> </execution> <execution> <id>generated-helpmojo</id> <goals> <goal>helpmojo</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <executions> <execution> <id>ensure-no-container-api</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <bannedDependencies> <excludes> <exclude>org.codehaus.plexus:plexus-component-api</exclude> </excludes> <message>The new containers are not supported. You probably added a dependency that is missing the exclusions.</message> </bannedDependencies> </rules> <fail>true</fail> </configuration> </execution> </executions> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-report-plugin</artifactId> <configuration> <requirementsHistories> <requirementsHistory> <version>3.0.0-M5</version> <maven>3.0</maven> <jdk>1.8</jdk> </requirementsHistory> <requirementsHistory> <version>3.0.0-M2</version> <maven>3.0</maven> <jdk>1.7</jdk> </requirementsHistory> <requirementsHistory> <version>2.5.3</version> <maven>2.2.1</maven> <jdk>1.7</jdk> </requirementsHistory> </requirementsHistories> </configuration> </plugin> </plugins> </reporting> <profiles> <profile> <id>run-its</id> <properties> <maven.it.failure.ignore>false</maven.it.failure.ignore> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-invoker-plugin</artifactId> <configuration> <projectsDirectory>src/it</projectsDirectory> <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo> <postBuildHookScript>verify</postBuildHookScript> <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> <settingsFile>src/it/mrm/settings.xml</settingsFile> <filterProperties> <mrm.repository.url>${mrm.repository.url}</mrm.repository.url> </filterProperties> <debug>true</debug> <ignoreFailures>${maven.it.failure.ignore}</ignoreFailures> <setupIncludes> <setupInclude>setup/*/pom.xml</setupInclude> </setupIncludes> <pomIncludes> <pomInclude>projects/prepare/*/*pom.xml</pomInclude> <pomInclude>projects/prepare/flat-multi-module/parent-project/pom.xml</pomInclude> <pomInclude>projects/prepare-with-pom/*/*pom.xml</pomInclude> <pomInclude>projects/branch/*/pom.xml</pomInclude> <pomInclude>projects/perform/*/pom.xml</pomInclude> <pomInclude>projects/update-versions/*/pom.xml</pomInclude> <pomInclude>projects/stage/*/pom.xml</pomInclude> </pomIncludes> <pomExcludes> <pomExclude>projects/prepare/MRELEASE-966/pom.xml</pomExclude> </pomExcludes> <properties> <allowReleasePluginSnapshot>true</allowReleasePluginSnapshot> <maven.compiler.source>${maven.compiler.source}</maven.compiler.source> <maven.compiler.target>${maven.compiler.target}</maven.compiler.target> <dryRun>true</dryRun> </properties> </configuration> <executions> <execution> <id>integration-test-prepare</id> <goals> <goal>install</goal> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>mrm-maven-plugin</artifactId> <version>1.6.0</version> <configuration> <repositories> <mockRepo> <source>src/it/mrm/repository</source> </mockRepo> <proxyRepo /> </repositories> </configuration> <executions> <execution> <goals> <goal>start</goal> <goal>stop</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>