github.com/noqcks/syft@v0.0.0-20230920222752-a9e2c4e288e5/syft/pkg/cataloger/java/test-fixtures/pom/commons-text.pom.xml (about) 1 <?xml version="1.0" encoding="UTF-8"?> 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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 19 <modelVersion>4.0.0</modelVersion> 20 <parent> 21 <groupId>org.apache.commons</groupId> 22 <artifactId>commons-parent</artifactId> 23 <version>54</version> 24 </parent> 25 <artifactId>commons-text</artifactId> 26 <version>1.10.0</version> 27 <name>Apache Commons Text</name> 28 <description>Apache Commons Text is a library focused on algorithms working on strings.</description> 29 <url>https://commons.apache.org/proper/commons-text</url> 30 31 <properties> 32 <project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding> 33 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 34 <maven.compiler.source>1.8</maven.compiler.source> 35 <maven.compiler.target>1.8</maven.compiler.target> 36 37 <commons.componentid>text</commons.componentid> 38 <commons.module.name>org.apache.commons.text</commons.module.name> 39 40 <commons.release.version>1.10.0</commons.release.version> 41 <commons.release.desc>(Java 8+)</commons.release.desc> 42 43 <commons.jira.id>TEXT</commons.jira.id> 44 <commons.jira.pid>12318221</commons.jira.pid> 45 46 <commons.site.path>text</commons.site.path> 47 <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-text</commons.scmPubUrl> 48 <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory> 49 50 <commons.junit.version>5.9.1</commons.junit.version> 51 <checkstyle.plugin.version>3.2.0</checkstyle.plugin.version> 52 <checkstyle.version>9.3</checkstyle.version> 53 54 <commons.spotbugs.plugin.version>4.7.2.0</commons.spotbugs.plugin.version> 55 <commons.spotbugs.impl.version>4.7.2</commons.spotbugs.impl.version> 56 <commons.pmd.version>3.19.0</commons.pmd.version> 57 <commons.pmd-impl.version>6.49.0</commons.pmd-impl.version> 58 59 <commons.mockito.version>4.8.0</commons.mockito.version> 60 <commons.jacoco.version>0.8.8</commons.jacoco.version> 61 62 <!-- apache-rat-plugin 0.13 and jdepend-maven-plugin 2.0 both fail with LinkageError when generating reports 63 with maven site plugin 3.11+. However, javadoc 3.4.0+ fails with site plugin versions lower than 3.11. So, we'll 64 use slightly older site and javadoc versions here in order to be able to generate all reports. --> 65 <commons.site-plugin.version>3.10.0</commons.site-plugin.version> 66 <commons.javadoc.version>3.4.1</commons.javadoc.version> 67 68 <!-- 22.1.0 requires Java 11 --> 69 <graalvm.version>22.0.0.2</graalvm.version> 70 <commons.rng.version>1.4</commons.rng.version> 71 72 <commons.japicmp.version>0.16.0</commons.japicmp.version> 73 <japicmp.skip>false</japicmp.skip> 74 75 <jmh.version>1.35</jmh.version> 76 <commons.project-info.version>3.1.2</commons.project-info.version> 77 78 <!-- Commons Release Plugin --> 79 <commons.bc.version>1.9</commons.bc.version> 80 <commons.rc.version>RC1</commons.rc.version> 81 <commons.release.isDistModule>true</commons.release.isDistModule> 82 <commons.distSvnStagingUrl>scm:svn:https://dist.apache.org/repos/dist/dev/commons/${commons.componentid}</commons.distSvnStagingUrl> 83 <commons.releaseManagerName>Gary Gregory</commons.releaseManagerName> 84 <commons.releaseManagerKey>86fdc7e2a11262cb</commons.releaseManagerKey> 85 </properties> 86 87 <dependencies> 88 <dependency> 89 <groupId>org.apache.commons</groupId> 90 <artifactId>commons-lang3</artifactId> 91 <version>3.12.0</version> 92 </dependency> 93 <!-- testing --> 94 <dependency> 95 <groupId>org.junit.jupiter</groupId> 96 <artifactId>junit-jupiter</artifactId> 97 <scope>test</scope> 98 </dependency> 99 <dependency> 100 <groupId>org.assertj</groupId> 101 <artifactId>assertj-core</artifactId> 102 <version>3.23.1</version> 103 <scope>test</scope> 104 </dependency> 105 <dependency> 106 <groupId>commons-io</groupId> 107 <artifactId>commons-io</artifactId> 108 <version>2.11.0</version> 109 <scope>test</scope> 110 </dependency> 111 <dependency> 112 <groupId>org.mockito</groupId> 113 <!-- Use mockito-inline instead of mockito-core to mock and spy on final classes. --> 114 <artifactId>mockito-inline</artifactId> 115 <version>${commons.mockito.version}</version> 116 <scope>test</scope> 117 </dependency> 118 <dependency> 119 <groupId>org.graalvm.js</groupId> 120 <artifactId>js</artifactId> 121 <version>${graalvm.version}</version> 122 <scope>test</scope> 123 </dependency> 124 <dependency> 125 <groupId>org.graalvm.js</groupId> 126 <artifactId>js-scriptengine</artifactId> 127 <version>${graalvm.version}</version> 128 <scope>test</scope> 129 </dependency> 130 <dependency> 131 <groupId>org.apache.commons</groupId> 132 <artifactId>commons-rng-simple</artifactId> 133 <version>${commons.rng.version}</version> 134 <scope>test</scope> 135 </dependency> 136 <dependency> 137 <groupId>org.openjdk.jmh</groupId> 138 <artifactId>jmh-core</artifactId> 139 <version>${jmh.version}</version> 140 <scope>test</scope> 141 </dependency> 142 <dependency> 143 <groupId>org.openjdk.jmh</groupId> 144 <artifactId>jmh-generator-annprocess</artifactId> 145 <version>${jmh.version}</version> 146 <scope>test</scope> 147 </dependency> 148 </dependencies> 149 150 <build> 151 <defaultGoal>clean verify apache-rat:check japicmp:cmp checkstyle:check spotbugs:check javadoc:javadoc</defaultGoal> 152 <pluginManagement> 153 <plugins> 154 <plugin> 155 <groupId>org.apache.rat</groupId> 156 <artifactId>apache-rat-plugin</artifactId> 157 <configuration> 158 <excludes> 159 <exclude>site-content/**</exclude> 160 <exclude>src/site/resources/download_lang.cgi</exclude> 161 <exclude>src/test/resources/org/apache/commons/text/stringEscapeUtilsTestData.txt</exclude> 162 <exclude>src/test/resources/org/apache/commons/text/lcs-perf-analysis-inputs.csv</exclude> 163 <exclude>src/site/resources/release-notes/RELEASE-NOTES-*.txt</exclude> 164 </excludes> 165 </configuration> 166 </plugin><!-- override skip property of parent pom --> 167 <plugin> 168 <artifactId>maven-pmd-plugin</artifactId> 169 <version>${commons.pmd.version}</version> 170 <configuration> 171 <targetJdk>${maven.compiler.target}</targetJdk> 172 </configuration> 173 <dependencies> 174 <dependency> 175 <groupId>net.sourceforge.pmd</groupId> 176 <artifactId>pmd-core</artifactId> 177 <version>${commons.pmd-impl.version}</version> 178 </dependency> 179 <dependency> 180 <groupId>net.sourceforge.pmd</groupId> 181 <artifactId>pmd-java</artifactId> 182 <version>${commons.pmd-impl.version}</version> 183 </dependency> 184 <dependency> 185 <groupId>net.sourceforge.pmd</groupId> 186 <artifactId>pmd-javascript</artifactId> 187 <version>${commons.pmd-impl.version}</version> 188 </dependency> 189 <dependency> 190 <groupId>net.sourceforge.pmd</groupId> 191 <artifactId>pmd-jsp</artifactId> 192 <version>${commons.pmd-impl.version}</version> 193 </dependency> 194 </dependencies> 195 </plugin> 196 </plugins> 197 </pluginManagement> 198 <plugins> 199 <plugin> 200 <artifactId>maven-checkstyle-plugin</artifactId> 201 <version>${checkstyle.plugin.version}</version> 202 <configuration> 203 <enableRulesSummary>false</enableRulesSummary> 204 <configLocation>src/conf/checkstyle.xml</configLocation> 205 <headerLocation>src/conf/checkstyle-header.txt</headerLocation> 206 <suppressionsLocation>src/conf/checkstyle-suppressions.xml</suppressionsLocation> 207 <suppressionsFileExpression>src/conf/checkstyle-suppressions.xml</suppressionsFileExpression> 208 <includeTestSourceDirectory>true</includeTestSourceDirectory> 209 <excludes>**/generated/**.java,**/jmh_generated/**.java</excludes> 210 </configuration> 211 <dependencies> 212 <dependency> 213 <groupId>com.puppycrawl.tools</groupId> 214 <artifactId>checkstyle</artifactId> 215 <version>${checkstyle.version}</version> 216 </dependency> 217 </dependencies> 218 </plugin> 219 <plugin> 220 <groupId>com.github.spotbugs</groupId> 221 <artifactId>spotbugs-maven-plugin</artifactId> 222 <version>${commons.spotbugs.plugin.version}</version> 223 <dependencies> 224 <dependency> 225 <groupId>com.github.spotbugs</groupId> 226 <artifactId>spotbugs</artifactId> 227 <version>${commons.spotbugs.impl.version}</version> 228 </dependency> 229 </dependencies> 230 <configuration> 231 <excludeFilterFile>src/conf/spotbugs-exclude-filter.xml</excludeFilterFile> 232 </configuration> 233 </plugin> 234 <plugin> 235 <artifactId>maven-assembly-plugin</artifactId> 236 <configuration> 237 <descriptors> 238 <descriptor>src/assembly/bin.xml</descriptor> 239 <descriptor>src/assembly/src.xml</descriptor> 240 </descriptors> 241 <tarLongFileMode>gnu</tarLongFileMode> 242 </configuration> 243 </plugin> 244 <plugin> 245 <groupId>org.apache.maven.plugins</groupId> 246 <artifactId>maven-jar-plugin</artifactId> 247 <executions> 248 <execution> 249 <goals> 250 <goal>test-jar</goal> 251 </goals> 252 </execution> 253 </executions> 254 <configuration> 255 <archive combine.children="append"> 256 <manifestEntries> 257 <Automatic-Module-Name>${commons.module.name}</Automatic-Module-Name> 258 </manifestEntries> 259 </archive> 260 </configuration> 261 </plugin> 262 <plugin> 263 <groupId>org.apache.maven.plugins</groupId> 264 <artifactId>maven-scm-publish-plugin</artifactId> 265 <configuration> 266 <ignorePathsToDelete> 267 <ignorePathToDelete>javadocs</ignorePathToDelete> 268 </ignorePathsToDelete> 269 </configuration> 270 </plugin> 271 <plugin> 272 <groupId>org.apache.maven.plugins</groupId> 273 <artifactId>maven-javadoc-plugin</artifactId> 274 <configuration> 275 <source>${maven.compiler.source}</source> 276 </configuration> 277 </plugin> 278 </plugins> 279 </build> 280 281 <reporting> 282 <plugins> 283 <plugin> 284 <artifactId>maven-checkstyle-plugin</artifactId> 285 <version>${checkstyle.plugin.version}</version> 286 <configuration> 287 <enableRulesSummary>false</enableRulesSummary> 288 <configLocation>src/conf/checkstyle.xml</configLocation> 289 <headerLocation>src/conf/checkstyle-header.txt</headerLocation> 290 <suppressionsLocation>src/conf/checkstyle-suppressions.xml</suppressionsLocation> 291 <suppressionsFileExpression>src/conf/checkstyle-suppressions.xml</suppressionsFileExpression> 292 <includeTestSourceDirectory>true</includeTestSourceDirectory> 293 <excludes>**/generated/**.java,**/jmh_generated/**.java</excludes> 294 </configuration> 295 <reportSets> 296 <reportSet> 297 <reports> 298 <report>checkstyle</report> 299 </reports> 300 </reportSet> 301 </reportSets> 302 </plugin> 303 <!-- Requires setting 'export MAVEN_OPTS="-Xmx512m" ' --> 304 <plugin> 305 <groupId>com.github.spotbugs</groupId> 306 <artifactId>spotbugs-maven-plugin</artifactId> 307 <version>${commons.spotbugs.plugin.version}</version> 308 <configuration> 309 <excludeFilterFile>src/conf/spotbugs-exclude-filter.xml</excludeFilterFile> 310 </configuration> 311 </plugin> 312 <plugin> 313 <groupId>com.github.siom79.japicmp</groupId> 314 <artifactId>japicmp-maven-plugin</artifactId> 315 </plugin> 316 <plugin> 317 <artifactId>maven-pmd-plugin</artifactId> 318 <version>3.19.0</version> 319 <configuration> 320 <targetJdk>${maven.compiler.target}</targetJdk> 321 </configuration> 322 <reportSets> 323 <reportSet> 324 <reports> 325 <report>pmd</report> 326 <report>cpd</report> 327 </reports> 328 </reportSet> 329 </reportSets> 330 </plugin> 331 <plugin> 332 <groupId>org.codehaus.mojo</groupId> 333 <artifactId>taglist-maven-plugin</artifactId> 334 <version>3.0.0</version> 335 <configuration> 336 <tagListOptions> 337 <tagClasses> 338 <tagClass> 339 <displayName>Needs Work</displayName> 340 <tags> 341 <tag> 342 <matchString>TODO</matchString> 343 <matchType>exact</matchType> 344 </tag> 345 <tag> 346 <matchString>FIXME</matchString> 347 <matchType>exact</matchType> 348 </tag> 349 <tag> 350 <matchString>XXX</matchString> 351 <matchType>exact</matchType> 352 </tag> 353 </tags> 354 </tagClass> 355 <tagClass> 356 <displayName>Noteable Markers</displayName> 357 <tags> 358 <tag> 359 <matchString>NOTE</matchString> 360 <matchType>exact</matchType> 361 </tag> 362 <tag> 363 <matchString>NOPMD</matchString> 364 <matchType>exact</matchType> 365 </tag> 366 <tag> 367 <matchString>NOSONAR</matchString> 368 <matchType>exact</matchType> 369 </tag> 370 </tags> 371 </tagClass> 372 </tagClasses> 373 </tagListOptions> 374 </configuration> 375 </plugin> 376 </plugins> 377 </reporting> 378 379 <inceptionYear>2014</inceptionYear> 380 381 <developers> 382 <developer> 383 <id>kinow</id> 384 <name>Bruno P. Kinoshita</name> 385 <email>kinow@apache.org</email> 386 </developer> 387 <developer> 388 <id>britter</id> 389 <name>Benedikt Ritter</name> 390 <email>britter@apache.org</email> 391 </developer> 392 <developer> 393 <id>chtompki</id> 394 <name>Rob Tompkins</name> 395 <email>chtompki@apache.org</email> 396 </developer> 397 <developer> 398 <id>ggregory</id> 399 <name>Gary Gregory</name> 400 <email>ggregory at apache.org</email> 401 <url>https://www.garygregory.com</url> 402 <organization>The Apache Software Foundation</organization> 403 <organizationUrl>https://www.apache.org/</organizationUrl> 404 <roles> 405 <role>PMC Member</role> 406 </roles> 407 <timezone>America/New_York</timezone> 408 <properties> 409 <picUrl>https://people.apache.org/~ggregory/img/garydgregory80.png</picUrl> 410 </properties> 411 </developer> 412 <developer> 413 <id>djones</id> 414 <name>Duncan Jones</name> 415 <email>djones@apache.org</email> 416 </developer> 417 </developers> 418 419 <contributors> 420 <contributor> 421 <name>Don Jeba</name> 422 <email>donjeba@yahoo.com</email> 423 </contributor> 424 <contributor> 425 <name>Sampanna Kahu</name> 426 </contributor> 427 <contributor> 428 <name>Jarek Strzelecki</name> 429 </contributor> 430 <contributor> 431 <name>Lee Adcock</name> 432 </contributor> 433 <contributor> 434 <name>Amey Jadiye</name> 435 <email>ameyjadiye@gmail.com</email> 436 </contributor> 437 <contributor> 438 <name>Arun Vinud S S</name> 439 </contributor> 440 <contributor> 441 <name>Ioannis Sermetziadis</name> 442 </contributor> 443 <contributor> 444 <name>Jostein Tveit</name> 445 </contributor> 446 <contributor> 447 <name>Luciano Medallia</name> 448 </contributor> 449 <contributor> 450 <name>Jan Martin Keil</name> 451 </contributor> 452 <contributor> 453 <name>Nandor Kollar</name> 454 </contributor> 455 <contributor> 456 <name>Nick Wong</name> 457 </contributor> 458 <contributor> 459 <name>Ali Ghanbari</name> 460 <url>https://ali-ghanbari.github.io/</url> 461 </contributor> 462 </contributors> 463 464 <scm> 465 <connection>scm:git:https://gitbox.apache.org/repos/asf/commons-text</connection> 466 <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/commons-text</developerConnection> 467 <url>https://gitbox.apache.org/repos/asf?p=commons-text.git</url> 468 </scm> 469 470 <issueManagement> 471 <system>jira</system> 472 <url>https://issues.apache.org/jira/browse/TEXT</url> 473 </issueManagement> 474 475 <distributionManagement> 476 <site> 477 <id>apache.website</id> 478 <name>Apache Commons Site</name> 479 <url>scm:svn:https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-text/</url> 480 </site> 481 </distributionManagement> 482 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 <executions> 497 <execution> 498 <id>prepare-checkout</id> 499 <goals> 500 <goal>run</goal> 501 </goals> 502 <phase>pre-site</phase> 503 <configuration> 504 <target> 505 <exec executable="svn"> 506 <arg line="checkout --depth immediates ${commons.scmPubUrl} ${commons.scmPubCheckoutDirectory}"/> 507 </exec> 508 <exec executable="svn"> 509 <arg line="update --set-depth exclude ${commons.scmPubCheckoutDirectory}/javadocs"/> 510 </exec> 511 <pathconvert pathsep=" " property="dirs"> 512 <dirset dir="${commons.scmPubCheckoutDirectory}" includes="*"/> 513 </pathconvert> 514 <exec executable="svn"> 515 <arg line="update --set-depth infinity ${dirs}"/> 516 </exec> 517 </target> 518 </configuration> 519 </execution> 520 </executions> 521 </plugin> 522 </plugins> 523 </build> 524 </profile> 525 <profile> 526 <id>java9+</id> 527 <activation> 528 <jdk>[9,)</jdk> 529 </activation> 530 <properties> 531 <!-- coverall version 4.3.0 does not work with java 9+, see https://github.com/trautonen/coveralls-maven-plugin/issues/112 --> 532 <coveralls.skip>true</coveralls.skip> 533 </properties> 534 </profile> 535 <profile> 536 <id>benchmark</id> 537 <properties> 538 <skipTests>true</skipTests> 539 <benchmark>org.apache</benchmark> 540 </properties> 541 <build> 542 <plugins> 543 <plugin> 544 <groupId>org.codehaus.mojo</groupId> 545 <artifactId>exec-maven-plugin</artifactId> 546 <version>3.1.0</version> 547 <executions> 548 <execution> 549 <id>benchmark</id> 550 <phase>test</phase> 551 <goals> 552 <goal>exec</goal> 553 </goals> 554 <configuration> 555 <classpathScope>test</classpathScope> 556 <executable>java</executable> 557 <arguments> 558 <argument>-classpath</argument> 559 <classpath/> 560 <argument>org.openjdk.jmh.Main</argument> 561 <argument>-rf</argument> 562 <argument>json</argument> 563 <argument>-rff</argument> 564 <argument>target/jmh-result.${benchmark}.json</argument> 565 <argument>${benchmark}</argument> 566 </arguments> 567 </configuration> 568 </execution> 569 </executions> 570 </plugin> 571 </plugins> 572 </build> 573 </profile> 574 </profiles> 575 </project>