pom.xml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>org.jenkins-ci.main</groupId>
  6. <artifactId>jenkins-parent</artifactId>
  7. <version>${revision}${changelist}</version>
  8. </parent>
  9. <artifactId>jenkins-coverage</artifactId>
  10. <packaging>pom</packaging>
  11. <name>Jenkins coverage</name>
  12. <description>Compute aggregated test code coverage</description>
  13. <dependencies>
  14. <dependency>
  15. <groupId>${project.groupId}</groupId>
  16. <artifactId>cli</artifactId>
  17. <version>${project.version}</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>${project.groupId}</groupId>
  21. <artifactId>jenkins-core</artifactId>
  22. <version>${project.version}</version>
  23. <exclusions>
  24. <exclusion>
  25. <groupId>commons-logging</groupId>
  26. <artifactId>commons-logging</artifactId>
  27. </exclusion>
  28. </exclusions>
  29. </dependency>
  30. <dependency>
  31. <groupId>${project.groupId}</groupId>
  32. <artifactId>jenkins-test</artifactId>
  33. <version>${project.version}</version>
  34. <scope>test</scope>
  35. </dependency>
  36. </dependencies>
  37. <build>
  38. <plugins>
  39. <plugin>
  40. <artifactId>maven-deploy-plugin</artifactId>
  41. <!-- Version specified in grandparent POM -->
  42. <configuration>
  43. <skip>true</skip>
  44. </configuration>
  45. </plugin>
  46. <plugin>
  47. <artifactId>maven-jar-plugin</artifactId>
  48. <!-- Version specified in grandparent POM -->
  49. <configuration>
  50. <skipIfEmpty>true</skipIfEmpty>
  51. </configuration>
  52. </plugin>
  53. </plugins>
  54. </build>
  55. <profiles>
  56. <profile>
  57. <id>enable-jacoco</id>
  58. <build>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.jacoco</groupId>
  62. <artifactId>jacoco-maven-plugin</artifactId>
  63. <!-- Version specified in parent POM -->
  64. <executions>
  65. <execution>
  66. <id>report-aggregate</id>
  67. <goals>
  68. <goal>report-aggregate</goal>
  69. </goals>
  70. <phase>verify</phase>
  71. </execution>
  72. </executions>
  73. </plugin>
  74. </plugins>
  75. </build>
  76. </profile>
  77. </profiles>
  78. </project>