maven_basic_pom.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>org.example</groupId>
  7. <artifactId>SearchEngine</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <maven.compiler.source>22.0.1</maven.compiler.source>
  11. <maven.compiler.target>22.0.1</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <maven.compiler.version>3.13.0</maven.compiler.version>
  15. <maven.surefire.version>3.2.5</maven.surefire.version>
  16. <puppycrawl.version>10.17.0</puppycrawl.version>
  17. <junit.platform.version>5.3.2</junit.platform.version>
  18. <checkstyle-maven-plugin.version>3.3.1</checkstyle-maven-plugin.version>
  19. <checkstyle.config.remote>
  20. https://notabug.org/Grigorii_Kuznetsov/dotfiles/raw/master/checks.xml
  21. </checkstyle.config.remote>
  22. </properties>
  23. <build>
  24. <plugins>
  25. <plugin>
  26. <groupId>org.apache.maven.plugins</groupId>
  27. <artifactId>maven-checkstyle-plugin</artifactId>
  28. <version>${checkstyle-maven-plugin.version}</version>
  29. <configuration>
  30. <configLocation>checkstyle.xml</configLocation>
  31. <configLocation>${checkstyle.config.remote}</configLocation>
  32. <encoding>UTF-8</encoding>
  33. <consoleOutput>true</consoleOutput>
  34. <violationSeverity>warning</violationSeverity>
  35. <logViolationsToConsole>false</logViolationsToConsole>
  36. </configuration>
  37. <executions>
  38. <execution>
  39. <id>verify-style</id>
  40. <phase>validate</phase>
  41. <goals>
  42. <goal>check</goal>
  43. </goals>
  44. </execution>
  45. </executions>
  46. </plugin>
  47. <plugin>
  48. <artifactId>maven-compiler-plugin</artifactId>
  49. <version>${maven.compiler.version}</version>
  50. </plugin>
  51. <plugin>
  52. <artifactId>maven-surefire-plugin</artifactId>
  53. <version>${maven.surefire.version}</version>
  54. </plugin>
  55. </plugins>
  56. </build>
  57. <dependencies>
  58. <dependency>
  59. <groupId>com.puppycrawl.tools</groupId>
  60. <artifactId>checkstyle</artifactId>
  61. <version>${puppycrawl.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.junit.jupiter</groupId>
  65. <artifactId>junit-jupiter-api</artifactId>
  66. <version>${junit.platform.version}</version>
  67. <scope>test</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.junit.jupiter</groupId>
  71. <artifactId>junit-jupiter-engine</artifactId>
  72. <version>${junit.platform.version}</version>
  73. <scope>test</scope>
  74. </dependency>
  75. </dependencies>
  76. </project>