pom.xml 4.0 KB

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