pom.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <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/xsd/maven-4.0.0.xsd">
  2. <modelVersion>4.0.0</modelVersion>
  3. <parent>
  4. <groupId>no.priv.bang.pom</groupId>
  5. <artifactId>bang-app-pom</artifactId>
  6. <version>2.0.5</version>
  7. </parent>
  8. <groupId>no.priv.bang.maven.repository.snapshotpruner</groupId>
  9. <artifactId>maven-repository-snapshot-pruner</artifactId>
  10. <version>0.0.1-SNAPSHOT</version>
  11. <name>Maven repository snapshot pruner</name>
  12. <description>Traverses a directory hierarchy containing a maven repository and delete snapshots older than 10 days.</description>
  13. <properties>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <repository.source>${project.basedir}/src/test/resources/repository</repository.source>
  16. <repository.top>${project.build.testOutputDirectory}/repository</repository.top>
  17. <mainclass>no.priv.bang.maven.repository.snapshotpruner.MavenRepositorySnapshotPruner</mainclass>
  18. </properties>
  19. <dependencyManagement>
  20. <dependencies>
  21. <dependency>
  22. <groupId>no.priv.bang.pom</groupId>
  23. <artifactId>bang-bom</artifactId>
  24. <version>${bang-bom.version}</version>
  25. <type>pom</type>
  26. <scope>import</scope>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.junit</groupId>
  30. <artifactId>junit-bom</artifactId>
  31. <version>${junit.jupiter.version}</version>
  32. <type>pom</type>
  33. <scope>import</scope>
  34. </dependency>
  35. </dependencies>
  36. </dependencyManagement>
  37. <dependencies>
  38. <dependency>
  39. <groupId>org.jdom</groupId>
  40. <artifactId>jdom2</artifactId>
  41. <version>2.0.6.1</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>jaxen</groupId>
  45. <artifactId>jaxen</artifactId>
  46. <version>1.2.0</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.junit.jupiter</groupId>
  50. <artifactId>junit-jupiter-api</artifactId>
  51. <scope>test</scope>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.junit.jupiter</groupId>
  55. <artifactId>junit-jupiter-engine</artifactId>
  56. <scope>test</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.mockito</groupId>
  60. <artifactId>mockito-core</artifactId>
  61. <scope>test</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.assertj</groupId>
  65. <artifactId>assertj-core</artifactId>
  66. <scope>test</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>commons-io</groupId>
  70. <artifactId>commons-io</artifactId>
  71. <version>2.17.0</version>
  72. <scope>test</scope>
  73. </dependency>
  74. </dependencies>
  75. <build>
  76. <plugins>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-compiler-plugin</artifactId>
  80. </plugin>
  81. <plugin>
  82. <groupId>org.codehaus.mojo</groupId>
  83. <artifactId>properties-maven-plugin</artifactId>
  84. <version>1.0.0</version>
  85. <executions>
  86. <execution>
  87. <phase>generate-test-resources</phase>
  88. <goals>
  89. <goal>write-project-properties</goal>
  90. </goals>
  91. <configuration>
  92. <outputFile>${project.build.testOutputDirectory}/maven.properties</outputFile>
  93. </configuration>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.codehaus.mojo</groupId>
  99. <artifactId>exec-maven-plugin</artifactId>
  100. <version>3.1.0</version>
  101. <configuration>
  102. <mainClass>${mainclass}</mainClass>
  103. </configuration>
  104. </plugin>
  105. <plugin>
  106. <groupId>org.jacoco</groupId>
  107. <artifactId>jacoco-maven-plugin</artifactId>
  108. <executions>
  109. <execution>
  110. <id>report</id>
  111. <goals>
  112. <goal>report</goal>
  113. </goals>
  114. <phase>verify</phase>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.eluder.coveralls</groupId>
  120. <artifactId>coveralls-maven-plugin</artifactId>
  121. <configuration>
  122. <jacocoReports>
  123. <jacocoReport>${basedir}/target/site/jacoco/jacoco.xml</jacocoReport>
  124. </jacocoReports>
  125. </configuration>
  126. </plugin>
  127. </plugins>
  128. </build>
  129. </project>