pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. <!-- YYC的算法测试云函数-->
  31. <module>fake-feature-extract</module>
  32. </modules>
  33. <properties>
  34. <maven.compiler.target>11</maven.compiler.target>
  35. <maven.compiler.source>11</maven.compiler.source>
  36. <maven.test.skip>true</maven.test.skip>
  37. <checkstyle.skip>true</checkstyle.skip>
  38. <spring.checkstyle.version>0.0.26</spring.checkstyle.version>
  39. </properties>
  40. <profiles>
  41. <profile>
  42. <id>dev</id>
  43. <properties>
  44. <test.channel>dev</test.channel>
  45. </properties>
  46. <activation>
  47. <activeByDefault>true</activeByDefault>
  48. </activation>
  49. </profile>
  50. <profile>
  51. <id>channel1</id>
  52. <properties>
  53. <test.channel>channel1</test.channel>
  54. </properties>
  55. </profile>
  56. <profile>
  57. <id>channel2</id>
  58. <properties>
  59. <test.channel>channel2</test.channel>
  60. </properties>
  61. </profile>
  62. </profiles>
  63. <!-- <repositories>
  64. <repository>
  65. <id>central</id>
  66. <url>https://repo1.maven.org/maven2</url>
  67. </repository>
  68. <repository>
  69. <id>yaoyi</id>
  70. <url>https://artifact.yaoyi.net/repository/maven-public</url>
  71. </repository>
  72. </repositories>
  73. -->
  74. <build>
  75. <plugins>
  76. <plugin>
  77. <groupId>org.apache.maven.plugins</groupId>
  78. <artifactId>maven-checkstyle-plugin</artifactId>
  79. <version>3.6.0</version>
  80. <dependencies>
  81. <dependency>
  82. <groupId>com.puppycrawl.tools</groupId>
  83. <artifactId>checkstyle</artifactId>
  84. <version>9.3</version>
  85. </dependency>
  86. </dependencies>
  87. <configuration>
  88. <outputEncoding>UTF-8</outputEncoding>
  89. <skip>${checkstyle.skip}</skip>
  90. <configLocation>.style/alibaba.xml</configLocation>
  91. <consoleOutput>true</consoleOutput>
  92. <failsOnError>false</failsOnError>
  93. <linkXRef>false</linkXRef>
  94. <includeTestSourceDirectory>false</includeTestSourceDirectory>
  95. <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
  96. </configuration>
  97. <executions>
  98. <execution>
  99. <id>validate</id>
  100. <phase>validate</phase>
  101. <goals>
  102. <goal>check</goal>
  103. </goals>
  104. </execution>
  105. </executions>
  106. </plugin>
  107. <!--代码格式插件,默认使用spring 规则-->
  108. <plugin>
  109. <groupId>io.spring.javaformat</groupId>
  110. <artifactId>spring-javaformat-maven-plugin</artifactId>
  111. <version>${spring.checkstyle.version}</version>
  112. <!-- <executions>
  113. <execution>
  114. <id>format</id>
  115. <phase>process-sources</phase>
  116. <goals>
  117. <goal>apply</goal>
  118. </goals>
  119. </execution>
  120. </executions> -->
  121. </plugin>
  122. </plugins>
  123. </build>
  124. </project>