<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" 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>com.jwebmp</groupId>
        <artifactId>jwebmp-builder</artifactId>
        <version>0.66.0.1</version>
    </parent>

    <artifactId>commons-fileupload</artifactId>

    <name>Apache Commons FileUpload</name>
    <description>
        The Apache Commons FileUpload component provides a simple yet flexible means of adding support for multipart
        file upload functionality to servlets and web applications.
    </description>
    <url>http://commons.apache.org/proper/commons-fileupload/</url>
    <inceptionYear>2002</inceptionYear>

    <developers>
        <developer>
            <name>Martin Cooper</name>
            <id>martinc</id>
            <email>martinc@apache.org</email>
            <organization>Yahoo!</organization>
        </developer>
        <developer>
            <name>dIon Gillard</name>
            <id>dion</id>
            <email>dion@apache.org</email>
            <organization>Multitask Consulting</organization>
        </developer>
        <developer>
            <name>John McNally</name>
            <id>jmcnally</id>
            <email>jmcnally@collab.net</email>
            <organization>CollabNet</organization>
        </developer>
        <developer>
            <name>Daniel Rall</name>
            <id>dlr</id>
            <email>dlr@finemaltcoding.com</email>
            <organization>CollabNet</organization>
        </developer>
        <developer>
            <name>Jason van Zyl</name>
            <id>jvanzyl</id>
            <email>jason@zenplex.com</email>
            <organization>Zenplex</organization>
        </developer>
        <developer>
            <name>Robert Burrell Donkin</name>
            <id>rdonkin</id>
            <email>rdonkin@apache.org</email>
            <organization/>
        </developer>
        <developer>
            <name>Sean C. Sullivan</name>
            <id>sullis</id>
            <email>sean |at| seansullivan |dot| com</email>
            <organization/>
        </developer>
        <developer>
            <name>Jochen Wiedmann</name>
            <id>jochen</id>
            <email>jochen.wiedmann@gmail.com</email>
            <organization/>
        </developer>
        <developer>
            <name>Simone Tripodi</name>
            <id>simonetripodi</id>
            <email>simonetripodi@apache.org</email>
            <organization>Adobe</organization>
        </developer>
        <developer>
            <name>Gary Gregory</name>
            <id>ggregory</id>
            <email>ggregory@apache.org</email>
            <organization/>
        </developer>
        <developer>
            <name>Rob Tompkins</name>
            <id>chtompki</id>
            <email>chtompki@apache.org</email>
        </developer>
    </developers>

    <contributors>
        <contributor>
            <name>Aaron Freeman</name>
            <email>aaron@sendthisfile.com</email>
        </contributor>
        <contributor>
            <name>Daniel Fabian</name>
            <email>dfabian@google.com</email>
        </contributor>
        <contributor>
            <name>Jörg Heinicke</name>
            <email>joerg.heinicke@gmx.de</email>
        </contributor>
        <contributor>
            <name>Stepan Koltsov</name>
            <email>yozh@mx1.ru</email>
        </contributor>
        <contributor>
            <name>Michael Macaluso</name>
            <email>michael.public@wavecorp.com</email>
        </contributor>
        <contributor>
            <name>Amichai Rothman</name>
            <email>amichai2@amichais.net</email>
        </contributor>
        <contributor>
            <name>Alexander Sova</name>
            <email>bird@noir.crocodile.org</email>
        </contributor>
        <contributor>
            <name>Paul Spurr</name>
            <email>pspurr@gmail.com</email>
        </contributor>
        <contributor>
            <name>Thomas Vandahl</name>
            <email>tv@apache.org</email>
        </contributor>
        <contributor>
            <name>Henry Yandell</name>
            <email>bayard@apache.org</email>
        </contributor>
        <contributor>
            <name>Jan Novotný</name>
            <email>novotnaci@gmail.com</email>
        </contributor>
        <contributor>
            <name>frank</name>
            <email>mailsurfie@gmail.com</email>
        </contributor>
        <contributor>
            <name>maxxedev</name>
            <email>maxxedev@gmail.com</email>
        </contributor>
        <contributor>
            <name>Rafal Krzewski</name>
            <email>Rafal.Krzewski@e-point.pl</email>
        </contributor>
        <contributor>
            <name>Sean Legassick</name>
            <email>sean@informage.net</email>
        </contributor>
        <contributor>
            <name>Oleg Kalnichevski</name>
            <email>oleg@ural.ru</email>
        </contributor>
        <contributor>
            <name>David Sean Taylor</name>
            <email>taylor@apache.org</email>
        </contributor>
        <contributor>
            <name>fangwentong</name>
            <email>fangwentong2012@gmail.com</email>
        </contributor>
    </contributors>

    <scm>
        <connection>scm:git:http://git-wip-us.apache.org/repos/asf/commons-fileupload.git</connection>
        <developerConnection>scm:git:https://git-wip-us.apache.org/repos/asf/commons-fileupload.git</developerConnection>
        <url>https://git-wip-us.apache.org/repos/asf?p=commons-fileupload.git</url>
    </scm>
    <issueManagement>
        <system>jira</system>
        <url>http://issues.apache.org/jira/browse/FILEUPLOAD</url>
    </issueManagement>

    <distributionManagement>
        <site>
            <id>apache.website</id>
            <name>Apache Commons Site</name>
            <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-fileupload/</url>
        </site>
    </distributionManagement>

    <properties>
        <commons.componentid>fileupload</commons.componentid>
        <commons.module.name>org.apache.commons.fileupload</commons.module.name>
        <commons.release.version>1.4</commons.release.version>
        <commons.release.desc>(requires Java ${maven.compiler.target} or later)</commons.release.desc>
        <commons.rc.version>RC1</commons.rc.version>
        <commons.jira.id>FILEUPLOAD</commons.jira.id>
        <commons.jira.pid>12310476</commons.jira.pid>
        <commons.site.path>fileupload</commons.site.path>
        <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-fileupload</commons.scmPubUrl>
        <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
        <commons.osgi.export>!org.apache.commons.fileupload.util.mime,org.apache.commons.*;version=${project.version};-noimport:=true</commons.osgi.export>
        <commons.osgi.import>!javax.portlet,*</commons.osgi.import>
        <commons.osgi.dynamicImport>javax.portlet</commons.osgi.dynamicImport>
    </properties>

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>


        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <type>jar</type>
            <scope>provided</scope>
        </dependency>


        <dependency>
            <groupId>portlet-api</groupId>
            <artifactId>portlet-api</artifactId>
            <version>1.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.jwebmp</groupId>
            <artifactId>commons-io</artifactId>
            <version>0.66.0.1</version>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <artifactId>maven-assembly-plugin</artifactId>
                <configuration>
                    <descriptors>
                        <descriptor>${basedir}/src/main/assembly/bin.xml</descriptor>
                        <descriptor>${basedir}/src/main/assembly/src.xml</descriptor>
                    </descriptors>
                    <tarLongFileMode>gnu</tarLongFileMode>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-release-plugin</artifactId>
                <configuration>
                    <preparationGoals>clean site verify</preparationGoals>
                    <goals>clean site deploy</goals>
                </configuration>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.apache.maven.plugins</groupId>
                                        <artifactId>maven-antrun-plugin</artifactId>
                                        <versionRange>[1.8,)</versionRange>
                                        <goals>
                                            <goal>run</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <execute/>
                                    </action>
                                </pluginExecution>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.codehaus.mojo</groupId>
                                        <artifactId>build-helper-maven-plugin</artifactId>
                                        <versionRange>[1.10,)</versionRange>
                                        <goals>
                                            <goal>parse-version</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <execute/>
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-changes-plugin</artifactId>
                <version>2.12.1</version>
                <configuration>
                    <issueLinkTemplate>%URL%/../%ISSUE%</issueLinkTemplate>
                </configuration>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>changes-report</report>
                            <!--  NPE, retry from time to time <report>jira-report</report>  -->
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-checkstyle-plugin</artifactId>
                <version>2.10</version>
                <configuration>
                    <configLocation>${basedir}/src/checkstyle/fileupload_checks.xml</configLocation>
                    <suppressionsLocation>${basedir}/src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
                    <enableRulesSummary>false</enableRulesSummary>
                    <headerLocation>${basedir}/src/checkstyle/license-header.txt</headerLocation>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-pmd-plugin</artifactId>
                <version>2.7.1</version>
                <configuration>
                    <targetJdk>${maven.compiler.target}</targetJdk>
                    <rulesets>
                        <ruleset>${basedir}/src/checkstyle/fileupload_basic.xml</ruleset>
                    </rulesets>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>clirr-maven-plugin</artifactId>
                <version>2.8</version>
                <configuration>
                    <comparisonArtifacts>
                        <comparisonArtifact>
                            <groupId>commons-fileupload</groupId>
                            <artifactId>commons-fileupload</artifactId>
                            <version>1.3</version>
                        </comparisonArtifact>
                    </comparisonArtifacts>
                </configuration>
            </plugin>
        </plugins>
    </reporting>

    <profiles>
        <profile>
            <id>jdk8</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.moditect</groupId>
                        <artifactId>moditect-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>add-module-infos</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>add-module-info</goal>
                                </goals>
                                <configuration>
                                    <overwriteExistingFiles>true</overwriteExistingFiles>
                                    <module>
                                        <moduleInfoFile>
                                            src/jre11/java/module-info.java
                                        </moduleInfoFile>
                                    </module>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>jdk9</id>
            <activation>
                <jdk>9</jdk>
            </activation>
            <properties>
                <!-- coverall version 4.3.0 does not work with java 9, see https://github.com/trautonen/coveralls-maven-plugin/issues/112 -->
                <coveralls.skip>true</coveralls.skip>
            </properties>
        </profile>
    </profiles>
</project>
