pom.xml 4.0 KB

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