pom.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>io.kubesphere.devops</groupId>
  5. <artifactId>devops-sample</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <name>devops-sample :: HelloWorld Demo</name>
  8. <properties>
  9. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  10. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  11. <!-- Sonar -->
  12. <!-- The destination file for the code coverage report has to be set to the same value
  13. in the parent pom and in each module pom. Then JaCoCo will add up information in
  14. the same report, so that, it will give the cross-module code coverage. -->
  15. <sonar.jacoco.reportPaths>${PWD}/./target/jacoco.exec</sonar.jacoco.reportPaths>
  16. <sonar.groovy.binaries>target/classes</sonar.groovy.binaries>
  17. </properties>
  18. <!-- Spring Boot 启动父依赖 -->
  19. <parent>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter-parent</artifactId>
  22. <version>2.1.11.RELEASE</version>
  23. </parent>
  24. <!--更新maven 阿里云仓库镜像地址-->
  25. <repositories>
  26. <repository>
  27. <id>spring</id>
  28. <url>https://maven.aliyun.com/repository/spring</url>
  29. <releases>
  30. <enabled>true</enabled>
  31. </releases>
  32. <snapshots>
  33. <enabled>true</enabled>
  34. </snapshots>
  35. </repository>
  36. </repositories>
  37. <pluginRepositories>
  38. <pluginRepository>
  39. <id>spring</id>
  40. <url>https://maven.aliyun.com/repository/spring</url>
  41. <releases>
  42. <enabled>true</enabled>
  43. </releases>
  44. <snapshots>
  45. <enabled>true</enabled>
  46. </snapshots>
  47. </pluginRepository>
  48. </pluginRepositories>
  49. <dependencies>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-web</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>junit</groupId>
  56. <artifactId>junit</artifactId>
  57. <version>4.13.1</version>
  58. </dependency>
  59. </dependencies>
  60. <build>
  61. <plugins>
  62. <plugin>
  63. <groupId>org.jacoco</groupId>
  64. <artifactId>jacoco-maven-plugin</artifactId>
  65. <version>0.8.2</version>
  66. <configuration>
  67. <append>true</append>
  68. </configuration>
  69. <executions>
  70. <execution>
  71. <id>agent-for-ut</id>
  72. <goals>
  73. <goal>prepare-agent</goal>
  74. </goals>
  75. </execution>
  76. <execution>
  77. <id>agent-for-it</id>
  78. <goals>
  79. <goal>prepare-agent-integration</goal>
  80. </goals>
  81. </execution>
  82. <execution>
  83. <id>jacoco-site</id>
  84. <phase>verify</phase>
  85. <goals>
  86. <goal>report</goal>
  87. </goals>
  88. </execution>
  89. </executions>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.springframework.boot</groupId>
  93. <artifactId>spring-boot-maven-plugin</artifactId>
  94. <configuration>
  95. <fork>true</fork>
  96. </configuration>
  97. </plugin>
  98. <plugin>
  99. <groupId>org.sonarsource.scanner.maven</groupId>
  100. <artifactId>sonar-maven-plugin</artifactId>
  101. <version>3.6.0.1398</version>
  102. </plugin>
  103. </plugins>
  104. </build>
  105. </project>