| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <!-- |
| 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>52</version> |
| </parent> |
| <artifactId>commons-build-plugin</artifactId> |
| <packaging>maven-plugin</packaging> |
| <version>1.12-SNAPSHOT</version> |
| <name>Apache Commons Build Plugin Maven Mojo</name> |
| <description> |
| Apache Maven Mojo for Apache Commons Build tasks. |
| |
| For example: |
| mvn commons-build:download-page [-Dcommons.release.version=1.2.3] |
| </description> |
| <url>https://commons.apache.org/proper/commons-build-plugin/</url> |
| <issueManagement> |
| <system>jira</system> |
| <url>https://issues.apache.org/jira/browse/COMMONSSITE</url> |
| </issueManagement> |
| <inceptionYear>2008</inceptionYear> |
| <scm> |
| <connection>scm:git:http://gitbox.apache.org/repos/asf/commons-build-plugin.git</connection> |
| <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/commons-build-plugin.git</developerConnection> |
| <url>https://gitbox.apache.org/repos/asf?p=commons-build-plugin.git</url> |
| </scm> |
| <distributionManagement> |
| <site> |
| <id>commons.site</id> |
| <name>Apache Commons Site SVN</name> |
| <url>scm:svn:${commons.scmPubUrl}</url> |
| </site> |
| </distributionManagement> |
| <developers> |
| <developer> |
| <name>Niall Pemberton</name> |
| <id>niallp</id> |
| <email>niallp AT apache.org</email> |
| </developer> |
| <developer> |
| <name>Dennis Lundberg</name> |
| <id>dennisl</id> |
| </developer> |
| <developer> |
| <name>Gary Gregory</name> |
| <id>ggregory</id> |
| <email>ggregory AT apache.org</email> |
| <url>http://www.garygregory.com</url> |
| <timezone>-5</timezone> |
| </developer> |
| </developers> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven</groupId> |
| <artifactId>maven-script-ant</artifactId> |
| <version>2.2.1</version> |
| <!-- maven-script-ant 2.2.1 depends on org.apache.ant 1.7.1 --> |
| <!-- Ant 1.7.0+ required for the "loadresource" Task --> |
| <!-- Ant 1.7.1 required for COMMONSSITE-35 --> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.ant</groupId> |
| <artifactId>ant-nodeps</artifactId> |
| <version>1.8.1</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <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> |
| <plugins> |
| <plugin> |
| <artifactId>maven-plugin-plugin</artifactId> |
| <version>3.6.0</version> |
| <!-- Add the Ant plugin tools to the plugin --> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.maven.plugin-tools</groupId> |
| <artifactId>maven-plugin-tools-ant</artifactId> |
| <version>3.6.0</version> |
| </dependency> |
| </dependencies> |
| |
| <configuration> |
| <goalPrefix>commons-build</goalPrefix> |
| </configuration> |
| |
| <executions> |
| <execution> |
| <phase>pre-site</phase> |
| <goals> |
| <goal>report</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>target/plugin-generated-xdocs</outputDirectory> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <artifactId>maven-assembly-plugin</artifactId> |
| <configuration> |
| <descriptors> |
| <descriptor>src/assembly/src.xml</descriptor> |
| </descriptors> |
| <tarLongFileMode>gnu</tarLongFileMode> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <useDefaultExcludes>true</useDefaultExcludes> |
| <excludes> |
| <!-- template files which will be inserted into the middle of resulting page --> |
| <exclude>src/main/resources/commons-xdoc-templates/download-page-body.xml</exclude> |
| <exclude>src/main/resources/commons-xdoc-templates/download-page-foot.xml</exclude> |
| <exclude>src/main/resources/commons-xdoc-templates/notice-txt-template.txt</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>versions-maven-plugin</artifactId> |
| <!-- Version 2.2 causes an NPE with Maven 3.3.9 --> |
| <version>2.8.1</version> |
| </plugin> |
| <plugin> |
| <groupId>com.github.spotbugs</groupId> |
| <artifactId>spotbugs-maven-plugin</artifactId> |
| <version>${commons.spotbugs.version}</version> |
| <dependencies> |
| <dependency> |
| <groupId>com.github.spotbugs</groupId> |
| <artifactId>spotbugs</artifactId> |
| <version>${commons.spotbugs.impl.version}</version> |
| </dependency> |
| </dependencies> |
| <configuration> |
| <!-- <excludeFilterFile>${basedir}/spotbugs-exclude-filter.xml</excludeFilterFile> --> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| <reporting> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <configuration> |
| <useDefaultExcludes>true</useDefaultExcludes> |
| <excludes> |
| <!-- template files which will be inserted into the middle of resulting page --> |
| <exclude>src/main/resources/commons-xdoc-templates/download-page-body.xml</exclude> |
| <exclude>src/main/resources/commons-xdoc-templates/download-page-foot.xml</exclude> |
| <exclude>src/main/resources/commons-xdoc-templates/notice-txt-template.txt</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>com.github.spotbugs</groupId> |
| <artifactId>spotbugs-maven-plugin</artifactId> |
| <version>${commons.spotbugs.version}</version> |
| <configuration> |
| <!-- <excludeFilterFile>${basedir}/spotbugs-exclude-filter.xml</excludeFilterFile> --> |
| </configuration> |
| </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> |
| <version>2.0</version> |
| <reportSets> |
| <reportSet/> |
| </reportSets> |
| </plugin> |
| </plugins> |
| </reporting> |
| <properties> |
| <enforcer.skip>true</enforcer.skip> |
| <maven.compiler.source>1.8</maven.compiler.source> |
| <maven.compiler.target>1.8</maven.compiler.target> |
| <commons.manifestfile/> |
| <commons.componentid>commons-build-plugin</commons.componentid> |
| <commons.jira.id>COMMONSSITE</commons.jira.id> |
| <commons.jira.pid>12310466&amp;component=12312401</commons.jira.pid> |
| <commons.release.version>${project.version}</commons.release.version> |
| <commons.site.path>${commons.componentid}</commons.site.path> |
| <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/${commons.site.path}</commons.scmPubUrl> |
| <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory> |
| |
| <!-- Commons Release Plugin --> |
| <commons.bc.version>1.10</commons.bc.version> |
| <commons.release.version>1.11</commons.release.version> |
| <commons.release-plugin.version>1.6</commons.release-plugin.version> |
| <commons.rc.version>RC1</commons.rc.version> |
| <commons.release.isDistModule>true</commons.release.isDistModule> |
| <commons.distSvnStagingUrl>scm:svn:https://dist.apache.org/repos/dist/dev/commons/${commons.componentid}</commons.distSvnStagingUrl> |
| <commons.releaseManagerName>Rob Tompkins</commons.releaseManagerName> |
| <commons.releaseManagerKey>B6E73D84EA4FCC47166087253FAAD2CD5ECBB314</commons.releaseManagerKey> |
| <commons.spotbugs.version>4.0.4</commons.spotbugs.version> |
| <commons.spotbugs.impl.version>4.1.3</commons.spotbugs.impl.version> |
| </properties> |
| <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> |
| <phase>pre-site</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <tasks> |
| <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> |
| </tasks> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |