commons-release-plugin
Used in
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-release-plugin</artifactId> <version>1.9.0</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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.commons</groupId> <artifactId>commons-parent</artifactId> <version>79</version> </parent> <artifactId>commons-release-plugin</artifactId> <packaging>maven-plugin</packaging> <version>1.9.0</version> <name>Apache Commons Release Plugin</name> <description> Apache Maven Mojo for Apache Commons Release tasks. </description> <url>https://commons.apache.org/proper/commons-release-plugin/</url> <issueManagement> <system>jira</system> <url>https://issues.apache.org/jira/browse/COMMONSSITE</url> </issueManagement> <inceptionYear>2018</inceptionYear> <scm> <connection>scm:git:http://gitbox.apache.org/repos/asf/commons-release-plugin.git</connection> <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/commons-release-plugin.git </developerConnection> <url>https://gitbox.apache.org/repos/asf?p=commons-release-plugin.git</url> </scm> <ciManagement> <system>GitHub</system> <url>https://github.com/apache/commons-release-plugin/actions</url> </ciManagement> <distributionManagement> <site> <id>commons.site</id> <name>Apache Commons Site SVN</name> <url> scm:svn:https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-release-plugin </url> </site> </distributionManagement> <developers> <developer> <name>Rob Tompkins</name> <id>chtompki</id> <email>chtompki@apache.org</email> <timezone>-5</timezone> </developer> <developer> <id>ggregory</id> <name>Gary Gregory</name> <email>ggregory at apache.org</email> <url>https://www.garygregory.com</url> <organization>The Apache Software Foundation</organization> <organizationUrl>https://www.apache.org/</organizationUrl> <roles> <role>PMC Member</role> </roles> <timezone>America/New_York</timezone> <properties> <picUrl>https://people.apache.org/~ggregory/img/garydgregory80.png</picUrl> </properties> </developer> <developer> <name>Matt Benson</name> <id>mbenson</id> <roles> <role>Java Developer</role> </roles> </developer> </developers> <properties> <failOnError>false</failOnError> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <!-- 3.8.2 fails with some class not found error --> <!-- 3.8.3 fails because MavenProject.getAttachedArtifacts() returns an IMMUTABLE collection and we want to change it! --> <maven.dependency.version>3.9.9</maven.dependency.version> <commons.componentid>release-plugin</commons.componentid> <commons.dist.subdir>release-plugin</commons.dist.subdir> <commons.jira.id>COMMONSSITE</commons.jira.id> <commons.jira.pid>12310466&amp;component=12312401</commons.jira.pid> <commons.site.path>commons-release-plugin</commons.site.path> <commons.manifestfile/> <commons.distSvnStagingUrl>scm:svn:https://dist.apache.org/repos/dist/dev/commons/${commons.componentid}</commons.distSvnStagingUrl> <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/${commons.site.path}</commons.scmPubUrl> <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory> <maven-scm.version>2.1.0</maven-scm.version> <commons.jacoco.classRatio>0.1</commons.jacoco.classRatio> <commons.jacoco.instructionRatio>0.1</commons.jacoco.instructionRatio> <commons.jacoco.methodRatio>0.1</commons.jacoco.methodRatio> <commons.jacoco.branchRatio>0.1</commons.jacoco.branchRatio> <commons.jacoco.lineRatio>0.1</commons.jacoco.lineRatio> <commons.jacoco.complexityRatio>0.1</commons.jacoco.complexityRatio> <commons.jacoco.haltOnFailure>true</commons.jacoco.haltOnFailure> <commons.encoding>ISO-8859-1</commons.encoding> <!-- Provide the Javadoc HTML file encoding --> <commons.docEncoding>${commons.encoding}</commons.docEncoding> <!-- Define source encoding for filtering; used by general plugins --> <project.build.sourceEncoding>${commons.encoding}</project.build.sourceEncoding> <!-- This is used by reporting plugins --> <project.reporting.outputEncoding>${commons.encoding}</project.reporting.outputEncoding> <project.build.outputTimestamp>2025-01-08T13:13:10Z</project.build.outputTimestamp> <commons.release.isDistModule>true</commons.release.isDistModule> <commons.release.version>1.9.0</commons.release.version> <commons.release.next>1.9.1</commons.release.next> <commons.bc.version>1.8.3</commons.bc.version> <commons.rc.version>RC1</commons.rc.version> <commons.release.isDistModule>true</commons.release.isDistModule> <!-- Define the following in ~/.m2/settings.xml in an active profile: (or provide them on the command line) commons.releaseManagerName commons.releaseManagerKey --> <!-- Including commons release plugin older version --> <maven.plugin.version>3.15.1</maven.plugin.version> <commons.build-plugin.version>1.14.1</commons.build-plugin.version> <!-- Until Maven plugins used here don't fail the Moditect plugin --> <moditect.skip>true</moditect.skip> </properties> <dependencies> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-collections4</artifactId> <version>4.5.0-M3</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.18.0</version> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-core</artifactId> <version>${maven.dependency.version}</version> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> <version>${maven.dependency.version}</version> </dependency> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-artifact</artifactId> <version>${maven.dependency.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.maven.plugin-tools</groupId> <artifactId>maven-plugin-annotations</artifactId> <version>${maven.plugin.version}</version> </dependency> <dependency> <groupId>org.apache.maven.scm</groupId> <artifactId>maven-scm-api</artifactId> <version>${maven-scm.version}</version> </dependency> <dependency> <groupId>org.apache.maven.scm</groupId> <artifactId>maven-scm-provider-svnexe</artifactId> <version>${maven-scm.version}</version> </dependency> <dependency> <groupId>org.apache.maven.scm</groupId> <artifactId>maven-scm-provider-svn-commons</artifactId> <version>${maven-scm.version}</version> </dependency> <dependency> <groupId>commons-codec</groupId> <artifactId>commons-codec</artifactId> <version>1.17.2</version> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-compress</artifactId> <version>1.27.1</version> </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.apache.maven</groupId> <artifactId>maven-compat</artifactId> <version>${maven.dependency.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.vintage</groupId> <artifactId>junit-vintage-engine</artifactId> <scope>test</scope> </dependency> <!-- A bit of jar-hell requires this to come last. --> <dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-script-ant</artifactId> <version>2.2.1</version> </dependency> <dependency> <groupId>org.apache.velocity</groupId> <artifactId>velocity-engine-core</artifactId> <version>2.4.1</version> </dependency> <dependency> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-velocity</artifactId> <version>2.2.0</version> <exclusions> <exclusion> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-container-default</artifactId> </exclusion> <exclusion> <groupId>org.codehaus.plexus</groupId> <artifactId>plexus-component-api</artifactId> </exclusion> <exclusion> <groupId>velocity</groupId> <artifactId>velocity</artifactId> </exclusion> </exclusions> </dependency> </dependencies> <build> <defaultGoal>clean verify apache-rat:check checkstyle:check spotbugs:check javadoc:javadoc</defaultGoal> <resources> <resource> <directory>src/main/resources</directory> <targetPath>resources</targetPath> </resource> <resource> <directory>${basedir}</directory> <targetPath>META-INF</targetPath> <includes> <include>NOTICE.txt</include> <include>LICENSE.txt</include> </includes> </resource> </resources> <pluginManagement> <plugins> <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> <configuration> <excludes> <exclude>site-content/**</exclude> <exclude>src/site/resources/download_release-plugin.cgi</exclude> <exclude>src/test/resources/mojos/detach-distributions/target/commons-text-1.4*.asc</exclude> <exclude>src/site/resources/release-notes/RELEASE-NOTES-*.txt</exclude> </excludes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <version>${maven.plugin.version}</version> </plugin> <plugin> <groupId>com.github.spotbugs</groupId> <artifactId>spotbugs-maven-plugin</artifactId> <configuration> <excludeFilterFile>${basedir}/fb-excludes.xml</excludeFilterFile> </configuration> </plugin> <plugin> <groupId>com.github.siom79.japicmp</groupId> <artifactId>japicmp-maven-plugin</artifactId> <configuration> <newVersion> <file> <!-- Parent incorrectly specifies ${project.packaging} for the extension --> <path>${project.build.directory}/${project.artifactId}-${project.version}.jar</path> </file> </newVersion> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> <!-- Add the Ant plugin tools to the plugin --> <dependencies> <dependency> <groupId>org.apache.maven.plugin-tools</groupId> <artifactId>maven-plugin-tools-ant</artifactId> <version>${maven.plugin.version}</version> </dependency> </dependencies> <configuration> <goalPrefix>commons-release</goalPrefix> </configuration> </plugin> <plugin> <groupId>org.apache.commons</groupId> <artifactId>commons-build-plugin</artifactId> <version>${commons.build-plugin.version}</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <!-- keep only errors and warnings --> <show>private</show> <quiet>true</quiet> <encoding>${commons.encoding}</encoding> <notimestamp>true</notimestamp> <links> <link>${commons.javadoc.java.link}</link> <link>${commons.javadoc.javaee.link}</link> </links> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> </manifest> </archive> </configuration> </plugin> <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> <configLocation>${basedir}/checkstyle.xml</configLocation> <headerLocation>${basedir}/license-header.txt</headerLocation> <suppressionsLocation>${basedir}/checkstyle-suppressions.xml</suppressionsLocation> <suppressionsFileExpression>${basedir}/checkstyle-suppressions.xml</suppressionsFileExpression> <includeTestSourceDirectory>true</includeTestSourceDirectory> </configuration> <executions> <execution> <id>validate</id> <phase>validate</phase> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptors> <descriptor>src/assembly/bin.xml</descriptor> <descriptor>src/assembly/src.xml</descriptor> </descriptors> <tarLongFileMode>gnu</tarLongFileMode> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-scm-publish-plugin</artifactId> <configuration> <ignorePathsToDelete> <ignorePathToDelete>javadocs</ignorePathToDelete> </ignorePathsToDelete> </configuration> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>${commons.jacoco.version}</version> <!-- Note that since JaCoCo relies on an agent to perform tests, it changes the surefire arguments line. If a component also needs to change the argument line of maven-surefire-plugin, then it must add ${argLine} property (which is set by JaCoCo) in the argLine configuration element of maven-surefire-plugin to preserve JaCoCo settings. --> <executions> <execution> <id>prepare-agent</id> <phase>process-test-classes</phase> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>report</id> <phase>site</phase> <goals> <goal>report</goal> </goals> </execution> <execution> <id>check</id> <goals> <goal>check</goal> </goals> <configuration> <rules> <rule> <element>BUNDLE</element> <limits> <limit> <counter>CLASS</counter> <value>COVEREDRATIO</value> <minimum>${commons.jacoco.classRatio}</minimum> </limit> <limit> <counter>INSTRUCTION</counter> <value>COVEREDRATIO</value> <minimum>${commons.jacoco.instructionRatio}</minimum> </limit> <limit> <counter>METHOD</counter> <value>COVEREDRATIO</value> <minimum>${commons.jacoco.methodRatio}</minimum> </limit> <limit> <counter>BRANCH</counter> <value>COVEREDRATIO</value> <minimum>${commons.jacoco.branchRatio}</minimum> </limit> <limit> <counter>LINE</counter> <value>COVEREDRATIO</value> <minimum>${commons.jacoco.lineRatio}</minimum> </limit> <limit> <counter>COMPLEXITY</counter> <value>COVEREDRATIO</value> <minimum>${commons.jacoco.complexityRatio}</minimum> </limit> </limits> </rule> </rules> <haltOnFailure>${commons.jacoco.haltOnFailure}</haltOnFailure> </configuration> </execution> </executions> </plugin> </plugins> </build> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-plugin-plugin</artifactId> </plugin> <!-- exclude surefire report --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <reportSets> <reportSet/> </reportSets> </plugin> <!-- exclude jdepend report --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jdepend-maven-plugin</artifactId> <reportSets> <reportSet/> </reportSets> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>${commons.javadoc.version}</version> <configuration> <!-- keep only errors and warnings --> <show>private</show> <quiet>true</quiet> <encoding>${commons.encoding}</encoding> <notimestamp>true</notimestamp> <links> <link>${commons.javadoc.java.link}</link> <link>${commons.javadoc.javaee.link}</link> </links> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> </manifest> </archive> </configuration> </plugin> <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> <enableRulesSummary>false</enableRulesSummary> <configLocation>${basedir}/checkstyle.xml</configLocation> <headerLocation>${basedir}/license-header.txt</headerLocation> <suppressionsLocation>${basedir}/checkstyle-suppressions.xml</suppressionsLocation> <suppressionsFileExpression>${basedir}/checkstyle-suppressions.xml</suppressionsFileExpression> <includeTestSourceDirectory>true</includeTestSourceDirectory> </configuration> <reportSets> <reportSet> <reports> <report>checkstyle</report> </reports> </reportSet> </reportSets> </plugin> <plugin> <groupId>com.github.spotbugs</groupId> <artifactId>spotbugs-maven-plugin</artifactId> </plugin> <plugin> <artifactId>maven-pmd-plugin</artifactId> <configuration> <targetJdk>${maven.compiler.target}</targetJdk> </configuration> <reportSets> <reportSet> <reports> <report>pmd</report> <report>cpd</report> </reports> </reportSet> </reportSets> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>taglist-maven-plugin</artifactId> <configuration> <tagListOptions> <tagClasses> <tagClass> <displayName>Needs Work</displayName> <tags> <tag> <matchString>TODO</matchString> <matchType>exact</matchType> </tag> <tag> <matchString>FIXME</matchString> <matchType>exact</matchType> </tag> <tag> <matchString>XXX</matchString> <matchType>exact</matchType> </tag> </tags> </tagClass> <tagClass> <displayName>Noteable Markers</displayName> <tags> <tag> <matchString>NOTE</matchString> <matchType>exact</matchType> </tag> <tag> <matchString>NOPMD</matchString> <matchType>exact</matchType> </tag> <tag> <matchString>NOSONAR</matchString> <matchType>exact</matchType> </tag> </tags> </tagClass> </tagClasses> </tagListOptions> </configuration> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>${commons.jacoco.version}</version> </plugin> <plugin> <groupId>com.github.spotbugs</groupId> <artifactId>spotbugs-maven-plugin</artifactId> </plugin> </plugins> </reporting> <profiles> <profile> <id>setup-checkout</id> <activation> <file> <missing>site-content</missing> </file> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>prepare-checkout</id> <goals> <goal>run</goal> </goals> <phase>pre-site</phase> <configuration> <target> <exec executable="svn"> <arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}"/> </exec> <exec executable="svn"> <arg line="update --set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs"/> </exec> <pathconvert pathsep=" " property="dirs"> <dirset dir="${commons.scmPubCheckoutDirectory}" includes="*"/> </pathconvert> <exec executable="svn"> <arg line="update --set-depth infinity ${dirs}"/> </exec> </target> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>release</id> <build> <plugins> <plugin> <groupId>org.apache.commons</groupId> <artifactId>commons-release-plugin</artifactId> <version>${commons.release-plugin.version}</version> <configuration> <distSvnStagingUrl>scm:svn:https://dist.apache.org/repos/dist/dev/commons/${commons.componentid}</distSvnStagingUrl> </configuration> <executions> <execution> <id>clean-staging</id> <phase>clean</phase> <goals> <goal>clean-staging</goal> </goals> </execution> <execution> <id>detatch-distributions</id> <phase>verify</phase> <goals> <goal>detach-distributions</goal> </goals> </execution> <execution> <id>stage-distributions</id> <phase>deploy</phase> <goals> <goal>stage-distributions</goal> </goals> </execution> </executions> </plugin> <!-- We want to sign the artifact, the POM, and all attached artifacts --> <plugin> <artifactId>maven-gpg-plugin</artifactId> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-install-plugin</artifactId> <configuration> <createChecksum>true</createChecksum> </configuration> </plugin> <plugin> <artifactId>maven-release-plugin</artifactId> <configuration> <!-- Pass these arguments to the deploy plugin. --> <arguments>-Prelease</arguments> </configuration> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>create-javadoc-jar</id> <goals> <goal>javadoc</goal> </goals> <phase>package</phase> </execution> </executions> <configuration> <source>${maven.compiler.source}</source> </configuration> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <inherited>true</inherited> <executions> <execution> <goals> <goal>single</goal> </goals> <!-- COMMONSSITE-87 Ensure this runs after all package phase plugins --> <phase>verify</phase> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>test-deploy</id> <properties> <altDeploymentRepository>id::default::file:target/deploy</altDeploymentRepository> </properties> </profile> </profiles> </project>