pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>pl.dmcs</groupId>
  5. <artifactId>app</artifactId>
  6. <version>1.0</version>
  7. <packaging>jar</packaging>
  8. <properties>
  9. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  10. <maven.compiler.source>21</maven.compiler.source>
  11. <maven.compiler.target>21</maven.compiler.target>
  12. <junit.version>5.10.2</junit.version>
  13. </properties>
  14. <!-- useful for documentation generation -->
  15. <name>My sample project</name>
  16. <description>This is my sample project.</description>
  17. <url>https://weeia.p.lodz.pl</url>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.junit.jupiter</groupId>
  21. <artifactId>junit-jupiter-api</artifactId>
  22. <version>${junit.version}</version>
  23. <scope>test</scope>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.junit.jupiter</groupId>
  27. <artifactId>junit-jupiter-engine</artifactId>
  28. <version>${junit.version}</version>
  29. <scope>test</scope>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.testng</groupId>
  33. <artifactId>testng</artifactId>
  34. <version>RELEASE</version>
  35. <scope>compile</scope>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.mockito</groupId>
  39. <artifactId>mockito-core</artifactId>
  40. <version>4.0.0</version>
  41. <scope>test</scope>
  42. </dependency>
  43. </dependencies>
  44. <build>
  45. <pluginManagement>
  46. <!-- lock down plugins versions to avoid using Maven defaults -->
  47. <plugins>
  48. <plugin>
  49. <groupId>org.apache.maven.plugins</groupId>
  50. <artifactId>maven-resources-plugin</artifactId>
  51. <version>3.3.1</version>
  52. <configuration>
  53. <includeEmptyDirs>true</includeEmptyDirs>
  54. </configuration>
  55. </plugin>
  56. <plugin>
  57. <artifactId>maven-clean-plugin</artifactId>
  58. <version>3.3.2</version>
  59. </plugin>
  60. <!-- default lifecycle -->
  61. <plugin>
  62. <artifactId>maven-compiler-plugin</artifactId>
  63. <version>3.12.1</version>
  64. <configuration>
  65. <source>21</source>
  66. <target>21</target>
  67. </configuration>
  68. </plugin>
  69. <plugin>
  70. <artifactId>maven-surefire-plugin</artifactId>
  71. <version>3.2.5</version>
  72. <configuration>
  73. <includes>
  74. <include>**/*Test.java</include>
  75. </includes>
  76. </configuration>
  77. </plugin>
  78. <plugin>
  79. <artifactId>maven-jar-plugin</artifactId>
  80. <version>3.3.0</version>
  81. </plugin>
  82. <plugin>
  83. <artifactId>maven-install-plugin</artifactId>
  84. <version>3.1.1</version>
  85. </plugin>
  86. <plugin>
  87. <artifactId>maven-deploy-plugin</artifactId>
  88. <version>3.1.1</version>
  89. </plugin>
  90. <!-- site lifecycle -->
  91. <plugin>
  92. <artifactId>maven-site-plugin</artifactId>
  93. <version>4.0.0-M13</version>
  94. </plugin>
  95. <plugin>
  96. <artifactId>maven-project-info-reports-plugin</artifactId>
  97. <version>3.5.0</version>
  98. </plugin>
  99. </plugins>
  100. </pluginManagement>
  101. <testResources>
  102. <testResource>
  103. <directory>src/test/resources</directory>
  104. <excludes>
  105. <exclude>**/.gitkeep</exclude>
  106. </excludes>
  107. </testResource>
  108. </testResources>
  109. </build>
  110. </project>