1<?xml version="1.0"?> 2<!-- 3 Licensed to the Apache Software Foundation (ASF) under one or more 4 contributor license agreements. See the NOTICE file distributed with 5 this work for additional information regarding copyright ownership. 6 The ASF licenses this file to You under the Apache License, Version 2.0 7 (the "License"); you may not use this file except in compliance with 8 the License. You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, software 13 distributed under the License is distributed on an "AS IS" BASIS, 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 See the License for the specific language governing permissions and 16 limitations under the License. 17--> 18<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"> 19 <parent> 20 <groupId>org.apache.commons</groupId> 21 <artifactId>commons-parent</artifactId> 22 <version>56</version> 23 </parent> 24 <modelVersion>4.0.0</modelVersion> 25 <groupId>commons-io</groupId> 26 <artifactId>commons-io</artifactId> 27 <version>2.12.0-SNAPSHOT</version> 28 <name>Apache Commons IO</name> 29 30 <inceptionYear>2002</inceptionYear> 31 <description> 32The Apache Commons IO library contains utility classes, stream implementations, file filters, 33file comparators, endian transformation classes, and much more. 34 </description> 35 36 <url>https://commons.apache.org/proper/commons-io/</url> 37 38 <issueManagement> 39 <system>jira</system> 40 <url>https://issues.apache.org/jira/browse/IO</url> 41 </issueManagement> 42 43 <distributionManagement> 44 <site> 45 <id>apache.website</id> 46 <name>Apache Commons Site</name> 47 <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-io/</url> 48 </site> 49 </distributionManagement> 50 51 <scm> 52 <connection>scm:git:https://gitbox.apache.org/repos/asf/commons-io.git</connection> 53 <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/commons-io.git</developerConnection> 54 <url>https://gitbox.apache.org/repos/asf?p=commons-io.git</url> 55 <tag>rel/commons-io-2.11.0</tag> 56 </scm> 57 58 <developers> 59 <developer> 60 <name>Scott Sanders</name> 61 <id>sanders</id> 62 <email>sanders@apache.org</email> 63 <organization /> 64 <roles> 65 <role>Java Developer</role> 66 </roles> 67 </developer> 68 <developer> 69 <name>dIon Gillard</name> 70 <!-- Note: first name is correctly capitalised above --> 71 <id>dion</id> 72 <email>dion@apache.org</email> 73 <organization /> 74 <roles> 75 <role>Java Developer</role> 76 </roles> 77 </developer> 78 <developer> 79 <name>Nicola Ken Barozzi</name> 80 <id>nicolaken</id> 81 <email>nicolaken@apache.org</email> 82 <organization /> 83 <roles> 84 <role>Java Developer</role> 85 </roles> 86 </developer> 87 <developer> 88 <name>Henri Yandell</name> 89 <id>bayard</id> 90 <email>bayard@apache.org</email> 91 <organization /> 92 <roles> 93 <role>Java Developer</role> 94 </roles> 95 </developer> 96 <developer> 97 <name>Stephen Colebourne</name> 98 <id>scolebourne</id> 99 <organization /> 100 <roles> 101 <role>Java Developer</role> 102 </roles> 103 <timezone>0</timezone> 104 </developer> 105 <developer> 106 <name>Jeremias Maerki</name> 107 <id>jeremias</id> 108 <email>jeremias@apache.org</email> 109 <organization /> 110 <roles> 111 <role>Java Developer</role> 112 </roles> 113 <timezone>+1</timezone> 114 </developer> 115 <developer> 116 <name>Matthew Hawthorne</name> 117 <id>matth</id> 118 <email>matth@apache.org</email> 119 <organization /> 120 <roles> 121 <role>Java Developer</role> 122 </roles> 123 </developer> 124 <developer> 125 <name>Martin Cooper</name> 126 <id>martinc</id> 127 <email>martinc@apache.org</email> 128 <organization /> 129 <roles> 130 <role>Java Developer</role> 131 </roles> 132 </developer> 133 <developer> 134 <name>Rob Oxspring</name> 135 <id>roxspring</id> 136 <email>roxspring@apache.org</email> 137 <organization /> 138 <roles> 139 <role>Java Developer</role> 140 </roles> 141 </developer> 142 <developer> 143 <name>Jochen Wiedmann</name> 144 <id>jochen</id> 145 <email>jochen.wiedmann@gmail.com</email> 146 </developer> 147 <developer> 148 <name>Niall Pemberton</name> 149 <id>niallp</id> 150 <roles> 151 <role>Java Developer</role> 152 </roles> 153 </developer> 154 <developer> 155 <name>Jukka Zitting</name> 156 <id>jukka</id> 157 <roles> 158 <role>Java Developer</role> 159 </roles> 160 </developer> 161 <developer> 162 <id>ggregory</id> 163 <name>Gary Gregory</name> 164 <email>ggregory at apache.org</email> 165 <url>https://www.garygregory.com</url> 166 <organization>The Apache Software Foundation</organization> 167 <organizationUrl>https://www.apache.org/</organizationUrl> 168 <roles> 169 <role>PMC Member</role> 170 </roles> 171 <timezone>America/New_York</timezone> 172 <properties> 173 <picUrl>https://people.apache.org/~ggregory/img/garydgregory80.png</picUrl> 174 </properties> 175 </developer> 176 <developer> 177 <name>Kristian Rosenvold</name> 178 <id>krosenvold</id> 179 <email>krosenvold@apache.org</email> 180 <timezone>+1</timezone> 181 </developer> 182 </developers> 183 184 <contributors> 185 <contributor> 186 <name>Rahul Akolkar</name> 187 </contributor> 188 <contributor> 189 <name>Jason Anderson</name> 190 </contributor> 191 <contributor> 192 <name>Nathan Beyer</name> 193 </contributor> 194 <contributor> 195 <name>Emmanuel Bourg</name> 196 </contributor> 197 <contributor> 198 <name>Chris Eldredge</name> 199 </contributor> 200 <contributor> 201 <name>Magnus Grimsell</name> 202 </contributor> 203 <contributor> 204 <name>Jim Harrington</name> 205 </contributor> 206 <contributor> 207 <name>Thomas Ledoux</name> 208 </contributor> 209 <contributor> 210 <name>Andy Lehane</name> 211 </contributor> 212 <contributor> 213 <name>Marcelo Liberato</name> 214 </contributor> 215 <contributor> 216 <name>Alban Peignier</name> 217 <email>alban.peignier at free.fr</email> 218 </contributor> 219 <contributor> 220 <name>Adam Retter</name> 221 <organization>Evolved Binary</organization> 222 </contributor> 223 <contributor> 224 <name>Ian Springer</name> 225 </contributor> 226 <contributor> 227 <name>Dominik Stadler</name> 228 </contributor> 229 <contributor> 230 <name>Masato Tezuka</name> 231 </contributor> 232 <contributor> 233 <name>James Urie</name> 234 </contributor> 235 <contributor> 236 <name>Frank W. Zammetti</name> 237 </contributor> 238 <contributor> 239 <name>Martin Grigorov</name> 240 <email>mgrigorov@apache.org</email> 241 </contributor> 242 <contributor> 243 <name>Arturo Bernal</name> 244 </contributor> 245 </contributors> 246 247 <dependencies> 248 <dependency> 249 <groupId>org.junit.jupiter</groupId> 250 <artifactId>junit-jupiter</artifactId> 251 <scope>test</scope> 252 </dependency> 253 <dependency> 254 <groupId>org.junit-pioneer</groupId> 255 <artifactId>junit-pioneer</artifactId> 256 <version>1.9.1</version> 257 <scope>test</scope> 258 </dependency> 259 <dependency> 260 <groupId>org.mockito</groupId> 261 <artifactId>mockito-inline</artifactId> 262 <version>4.11.0</version> 263 <scope>test</scope> 264 </dependency> 265 <dependency> 266 <groupId>com.google.jimfs</groupId> 267 <artifactId>jimfs</artifactId> 268 <version>1.2</version> 269 <scope>test</scope> 270 </dependency> 271 <dependency> 272 <groupId>org.apache.commons</groupId> 273 <artifactId>commons-lang3</artifactId> 274 <version>3.12.0</version> 275 <scope>test</scope> 276 </dependency> 277 <dependency> 278 <groupId>org.openjdk.jmh</groupId> 279 <artifactId>jmh-core</artifactId> 280 <version>${jmh.version}</version> 281 <scope>test</scope> 282 </dependency> 283 <dependency> 284 <groupId>org.openjdk.jmh</groupId> 285 <artifactId>jmh-generator-annprocess</artifactId> 286 <version>${jmh.version}</version> 287 <scope>test</scope> 288 </dependency> 289 </dependencies> 290 291 <properties> 292 <maven.compiler.source>1.8</maven.compiler.source> 293 <maven.compiler.target>1.8</maven.compiler.target> 294 <commons.componentid>io</commons.componentid> 295 <commons.module.name>org.apache.commons.io</commons.module.name> 296 <commons.rc.version>RC1</commons.rc.version> 297 <commons.bc.version>2.11.0</commons.bc.version> 298 <commons.release.version>2.12.0</commons.release.version> 299 <commons.release.desc>(requires Java 8)</commons.release.desc> 300 <commons.jira.id>IO</commons.jira.id> 301 <commons.jira.pid>12310477</commons.jira.pid> 302 <commons.osgi.export> 303 <!-- Explicit list of packages from IO 1.4 --> 304 org.apache.commons.io; 305 org.apache.commons.io.comparator; 306 org.apache.commons.io.filefilter; 307 org.apache.commons.io.input; 308 org.apache.commons.io.output;version=1.4.9999;-noimport:=true, 309 <!-- Same list plus * for new packages --> 310 org.apache.commons.io; 311 org.apache.commons.io.comparator; 312 org.apache.commons.io.filefilter; 313 org.apache.commons.io.input; 314 org.apache.commons.io.output; 315 org.apache.commons.io.*;version=${project.version};-noimport:=true 316 </commons.osgi.export> 317 <commons.osgi.import> 318 <!-- IO-734 - Make the sun.* references from BufferedFileChannelInputStream optional --> 319 sun.nio.ch;resolution:=optional, 320 sun.misc;resolution:=optional, 321 * 322 </commons.osgi.import> 323 <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-io/</commons.scmPubUrl> 324 <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory> 325 <commons.javadoc.java.link>${commons.javadoc8.java.link}</commons.javadoc.java.link> 326 <commons.enforcer.version>3.2.1</commons.enforcer.version> 327 <commons.moditect.version>1.0.0.RC2</commons.moditect.version> 328 <jmh.version>1.36</jmh.version> 329 <japicmp.skip>false</japicmp.skip> 330 <jacoco.skip>${env.JACOCO_SKIP}</jacoco.skip> 331 <commons.release.isDistModule>true</commons.release.isDistModule> 332 <commons.releaseManagerName>Gary Gregory</commons.releaseManagerName> 333 <commons.releaseManagerKey>86fdc7e2a11262cb</commons.releaseManagerKey> 334 </properties> 335 336 <build> 337 <!-- japicmp:cmp needs package to work from a jar --> 338 <defaultGoal>clean verify apache-rat:check japicmp:cmp checkstyle:check pmd:check javadoc:javadoc</defaultGoal> 339 <pluginManagement> 340 <plugins> 341 <plugin> 342 <groupId>org.apache.rat</groupId> 343 <artifactId>apache-rat-plugin</artifactId> 344 <version>0.15</version> 345 <configuration> 346 <excludes> 347 <exclude>src/test/resources/**/*.bin</exclude> 348 <exclude>src/test/resources/dir-equals-tests/**</exclude> 349 <exclude>test/**</exclude> 350 </excludes> 351 </configuration> 352 </plugin> 353 <plugin> 354 <groupId>org.apache.maven.plugins</groupId> 355 <artifactId>maven-checkstyle-plugin</artifactId> 356 <configuration> 357 <configLocation>${basedir}/src/conf/checkstyle.xml</configLocation> 358 <suppressionsLocation>${basedir}/src/conf/checkstyle-suppressions.xml</suppressionsLocation> 359 <enableRulesSummary>false</enableRulesSummary> 360 <includeTestSourceDirectory>true</includeTestSourceDirectory> 361 </configuration> 362 </plugin> 363 </plugins> 364 </pluginManagement> 365 <plugins> 366 <plugin> 367 <groupId>org.apache.maven.plugins</groupId> 368 <artifactId>maven-enforcer-plugin</artifactId> 369 <version>${commons.enforcer.version}</version> 370 <executions> 371 <execution> 372 <id>enforce-maven</id> 373 <goals> 374 <goal>enforce</goal> 375 </goals> 376 <configuration> 377 <rules> 378 <requireMavenVersion> 379 <version>3.0.5</version> 380 </requireMavenVersion> 381 </rules> 382 </configuration> 383 </execution> 384 </executions> 385 </plugin> 386 <plugin> 387 <groupId>org.apache.maven.plugins</groupId> 388 <artifactId>maven-jar-plugin</artifactId> 389 <executions> 390 <execution> 391 <goals> 392 <goal>test-jar</goal> 393 </goals> 394 </execution> 395 </executions> 396 <configuration> 397 <archive combine.children="append"> 398 <manifestEntries> 399 <Automatic-Module-Name>${commons.module.name}</Automatic-Module-Name> 400 </manifestEntries> 401 </archive> 402 </configuration> 403 </plugin> 404 <plugin> 405 <groupId>org.apache.maven.plugins</groupId> 406 <artifactId>maven-surefire-plugin</artifactId> 407 <configuration> 408 <classpathDependencyExcludes> 409 <classpathDependencyExclude>xerces:xercesImpl</classpathDependencyExclude> 410 </classpathDependencyExcludes> 411 <forkCount>1</forkCount> 412 <reuseForks>false</reuseForks> 413 <!-- limit memory size see IO-161 --> 414 <argLine>${argLine} -Xmx25M</argLine> 415 <includes> 416 <!-- Only include test classes, not test data --> 417 <include>**/*Test*.class</include> 418 </includes> 419 <excludes> 420 <exclude>**/*AbstractTestCase*</exclude> 421 <exclude>**/testtools/**</exclude> 422 <!-- https://issues.apache.org/jira/browse/SUREFIRE-44 --> 423 <exclude>**/*$*</exclude> 424 </excludes> 425 </configuration> 426 </plugin> 427 <plugin> 428 <artifactId>maven-assembly-plugin</artifactId> 429 <configuration> 430 <descriptors> 431 <descriptor>src/assembly/bin.xml</descriptor> 432 <descriptor>src/assembly/src.xml</descriptor> 433 </descriptors> 434 <tarLongFileMode>gnu</tarLongFileMode> 435 </configuration> 436 </plugin> 437 <plugin> 438 <groupId>org.apache.maven.plugins</groupId> 439 <artifactId>maven-checkstyle-plugin</artifactId> 440 </plugin> 441 <plugin> 442 <groupId>org.apache.maven.plugins</groupId> 443 <artifactId>maven-scm-publish-plugin</artifactId> 444 <configuration> 445 <ignorePathsToDelete> 446 <ignorePathToDelete>javadocs</ignorePathToDelete> 447 </ignorePathsToDelete> 448 </configuration> 449 </plugin> 450 <plugin> 451 <groupId>com.github.spotbugs</groupId> 452 <artifactId>spotbugs-maven-plugin</artifactId> 453 <configuration> 454 <excludeFilterFile>${basedir}/src/conf/spotbugs-exclude-filter.xml</excludeFilterFile> 455 </configuration> 456 </plugin> 457 <plugin> 458 <groupId>com.github.siom79.japicmp</groupId> 459 <artifactId>japicmp-maven-plugin</artifactId> 460 </plugin> 461 </plugins> 462 </build> 463 464 <reporting> 465 <plugins> 466 <plugin> 467 <groupId>org.apache.maven.plugins</groupId> 468 <artifactId>maven-checkstyle-plugin</artifactId> 469 </plugin> 470 <plugin> 471 <groupId>com.github.spotbugs</groupId> 472 <artifactId>spotbugs-maven-plugin</artifactId> 473 <configuration> 474 <excludeFilterFile>${basedir}/src/conf/spotbugs-exclude-filter.xml</excludeFilterFile> 475 </configuration> 476 </plugin> 477 <plugin> 478 <groupId>com.github.siom79.japicmp</groupId> 479 <artifactId>japicmp-maven-plugin</artifactId> 480 </plugin> 481 </plugins> 482 </reporting> 483 <profiles> 484 <profile> 485 <id>setup-checkout</id> 486 <activation> 487 <file> 488 <missing>site-content</missing> 489 </file> 490 </activation> 491 <build> 492 <plugins> 493 <plugin> 494 <groupId>org.apache.maven.plugins</groupId> 495 <artifactId>maven-antrun-plugin</artifactId> 496 <version>3.1.0</version> 497 <executions> 498 <execution> 499 <id>prepare-checkout</id> 500 <phase>pre-site</phase> 501 <goals> 502 <goal>run</goal> 503 </goals> 504 <configuration> 505 <target> 506 <exec executable="svn"> 507 <arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}" /> 508 </exec> 509 510 <exec executable="svn"> 511 <arg line="update --set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs" /> 512 </exec> 513 514 <pathconvert pathsep=" " property="dirs"> 515 <dirset dir="${commons.scmPubCheckoutDirectory}" includes="*" /> 516 </pathconvert> 517 <exec executable="svn"> 518 <arg line="update --set-depth infinity ${dirs}" /> 519 </exec> 520 </target> 521 </configuration> 522 </execution> 523 </executions> 524 </plugin> 525 </plugins> 526 </build> 527 </profile> 528 <profile> 529 <id>java9-compile</id> 530 <activation> 531 <jdk>[9,)</jdk> 532 </activation> 533 <properties> 534 <!-- coverall version 4.3.0 does not work with java 9, see https://github.com/trautonen/coveralls-maven-plugin/issues/112 --> 535 <coveralls.skip>true</coveralls.skip> 536 <maven.compiler.release>8</maven.compiler.release> 537 </properties> 538 </profile> 539 <profile> 540 <id>java9-moditect</id> 541 <activation> 542 <!-- 543 Fails on Java 11 and Windows: 544 Error: Failed to execute goal org.moditect:moditect-maven-plugin:1.0.0.RC2:add-module-info (add-module-infos) on project commons-io: Execution add-module-infos of goal org.moditect:moditect-maven-plugin:1.0.0.RC2:add-module-info failed: Couldn't add module-info.class to JAR: D:\a\commons-io\commons-io\target\commons-io-2.12.0-SNAPSHOT.jar: The process cannot access the file because it is being used by another process. -> [Help 1] 545 --> 546 <jdk>[9,11)</jdk> 547 </activation> 548 <build> 549 <plugins> 550 <plugin> 551 <groupId>org.moditect</groupId> 552 <artifactId>moditect-maven-plugin</artifactId> 553 <version>${commons.moditect.version}</version> 554 <executions> 555 <execution> 556 <id>add-module-infos</id> 557 <phase>package</phase> 558 <goals> 559 <goal>add-module-info</goal> 560 </goals> 561 <configuration> 562 <jvmVersion>9</jvmVersion> 563 <outputDirectory>${project.build.directory}</outputDirectory> 564 <overwriteExistingFiles>true</overwriteExistingFiles> 565 <module> 566 <moduleInfo> 567 <name>org.apache.commons.io</name> 568 </moduleInfo> 569 </module> 570 </configuration> 571 </execution> 572 </executions> 573 </plugin> 574 </plugins> 575 </build> 576 </profile> 577 <profile> 578 <id>benchmark</id> 579 <properties> 580 <skipTests>true</skipTests> 581 <benchmark>org.apache</benchmark> 582 </properties> 583 <build> 584 <plugins> 585 <plugin> 586 <groupId>org.codehaus.mojo</groupId> 587 <artifactId>exec-maven-plugin</artifactId> 588 <version>3.1.0</version> 589 <executions> 590 <execution> 591 <id>benchmark</id> 592 <phase>test</phase> 593 <goals> 594 <goal>exec</goal> 595 </goals> 596 <configuration> 597 <classpathScope>test</classpathScope> 598 <executable>java</executable> 599 <arguments> 600 <argument>-classpath</argument> 601 <classpath/> 602 <argument>org.openjdk.jmh.Main</argument> 603 <argument>-rf</argument> 604 <argument>json</argument> 605 <argument>-rff</argument> 606 <argument>target/jmh-result.${benchmark}.json</argument> 607 <argument>${benchmark}</argument> 608 </arguments> 609 </configuration> 610 </execution> 611 </executions> 612 </plugin> 613 </plugins> 614 </build> 615 </profile> 616 <profile> 617 <id>release</id> 618 <build> 619 <plugins> 620 <plugin> 621 <groupId>org.apache.maven.plugins</groupId> 622 <artifactId>maven-enforcer-plugin</artifactId> 623 <version>${commons.enforcer.version}</version> 624 <executions> 625 <execution> 626 <id>enforce-versions</id> 627 <goals> 628 <goal>enforce</goal> 629 </goals> 630 <configuration> 631 <rules> 632 <requireJavaVersion> 633 <version>9</version> 634 </requireJavaVersion> 635 </rules> 636 </configuration> 637 </execution> 638 </executions> 639 </plugin> 640 </plugins> 641 </build> 642 </profile> 643 </profiles> 644</project> 645