pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>example</groupId>
  5. <artifactId>fc-java-parent</artifactId>
  6. <packaging>pom</packaging>
  7. <version>1.0-SNAPSHOT</version>
  8. <name>FC Java Parent</name>
  9. <modules>
  10. <!-- 共享API -->
  11. <module>yyc-fc-api</module>
  12. <!-- 阿里云示例 -->
  13. <module>java11-blank-stream-event</module>
  14. <module>java11-blank-pojo-event</module>
  15. <module>java11-blank-http</module>
  16. <module>java11-mongodb</module>
  17. <module>java11-mysql</module>
  18. <module>java11-oss</module>
  19. <module>java11-full-timer-trigger-java/src/code</module>
  20. <module>java11-full-rds-mysql-http-java11/src/code</module>
  21. <module>java11-full-rabbit-trigger-springboot/src/code</module>
  22. <module>java11-full-oss-trigger-java/src/code</module>
  23. <module>java11-full-mongodb-java/src/code</module>
  24. <module>java11-full-rds-mysql-java11/src/code</module>
  25. <module>java11-full-mongodb-java-http/src/code</module>
  26. <!-- YYC的框架云函数 -->
  27. <module>read-oss-test-data</module>
  28. <module>mimic-real-msg</module>
  29. <module>pre-process</module>
  30. <module>result-verify</module>
  31. <module>email-notify</module>
  32. <!-- YYC的算法测试云函数-->
  33. <module>fake-feature-extract</module>
  34. <module>fake-result-generate</module>
  35. </modules>
  36. <properties>
  37. <maven.compiler.target>11</maven.compiler.target>
  38. <maven.compiler.source>11</maven.compiler.source>
  39. <maven.test.skip>true</maven.test.skip>
  40. <checkstyle.skip>true</checkstyle.skip>
  41. <spring.checkstyle.version>0.0.26</spring.checkstyle.version>
  42. </properties>
  43. <profiles>
  44. <profile>
  45. <id>dev</id>
  46. <properties>
  47. <test.channel>dev</test.channel>
  48. </properties>
  49. <activation>
  50. <activeByDefault>true</activeByDefault>
  51. </activation>
  52. </profile>
  53. <profile>
  54. <id>channel1</id>
  55. <properties>
  56. <test.channel>channel1</test.channel>
  57. </properties>
  58. </profile>
  59. <profile>
  60. <id>channel2</id>
  61. <properties>
  62. <test.channel>channel2</test.channel>
  63. </properties>
  64. </profile>
  65. </profiles>
  66. <!-- <repositories>
  67. <repository>
  68. <id>central</id>
  69. <url>https://repo1.maven.org/maven2</url>
  70. </repository>
  71. <repository>
  72. <id>yaoyi</id>
  73. <url>https://artifact.yaoyi.net/repository/maven-public</url>
  74. </repository>
  75. </repositories>
  76. -->
  77. <build>
  78. <plugins>
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-checkstyle-plugin</artifactId>
  82. <version>3.6.0</version>
  83. <dependencies>
  84. <dependency>
  85. <groupId>com.puppycrawl.tools</groupId>
  86. <artifactId>checkstyle</artifactId>
  87. <version>9.3</version>
  88. </dependency>
  89. </dependencies>
  90. <configuration>
  91. <outputEncoding>UTF-8</outputEncoding>
  92. <skip>${checkstyle.skip}</skip>
  93. <configLocation>.style/alibaba.xml</configLocation>
  94. <consoleOutput>true</consoleOutput>
  95. <failsOnError>false</failsOnError>
  96. <linkXRef>false</linkXRef>
  97. <includeTestSourceDirectory>false</includeTestSourceDirectory>
  98. <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
  99. </configuration>
  100. <executions>
  101. <execution>
  102. <id>validate</id>
  103. <phase>validate</phase>
  104. <goals>
  105. <goal>check</goal>
  106. </goals>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. <!--代码格式插件,默认使用spring 规则-->
  111. <plugin>
  112. <groupId>io.spring.javaformat</groupId>
  113. <artifactId>spring-javaformat-maven-plugin</artifactId>
  114. <version>${spring.checkstyle.version}</version>
  115. <!-- <executions>
  116. <execution>
  117. <id>format</id>
  118. <phase>process-sources</phase>
  119. <goals>
  120. <goal>apply</goal>
  121. </goals>
  122. </execution>
  123. </executions> -->
  124. </plugin>
  125. </plugins>
  126. </build>
  127. </project>