pom.xml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. <!-- 阿里云示例 -->
  11. <module>java11-blank-stream-event</module>
  12. <module>java11-blank-pojo-event</module>
  13. <module>java11-blank-http</module>
  14. <module>java11-mongodb</module>
  15. <module>java11-mysql</module>
  16. <module>java11-oss</module>
  17. <module>timer-trigger-java/src/code</module>
  18. <module>rds-mysql-http-java11/src/code</module>
  19. <module>rabbit-trigger-springboot/src/code</module>
  20. <module>oss-trigger-java/src/code</module>
  21. <module>mongodb-java/src/code</module>
  22. <module>rds-mysql-java11/src/code</module>
  23. <module>mongodb-java-http/src/code</module>
  24. <!-- YYC的框架云函数 -->
  25. <module>read-oss-test-data</module>
  26. </modules>
  27. <properties>
  28. <maven.compiler.target>11</maven.compiler.target>
  29. <maven.compiler.source>11</maven.compiler.source>
  30. <maven.test.skip>true</maven.test.skip>
  31. <checkstyle.skip>true</checkstyle.skip>
  32. <spring.checkstyle.version>0.0.26</spring.checkstyle.version>
  33. </properties>
  34. <profiles>
  35. <profile>
  36. <id>dev</id>
  37. <properties>
  38. <test.channel>dev</test.channel>
  39. </properties>
  40. <activation>
  41. <activeByDefault>true</activeByDefault>
  42. </activation>
  43. </profile>
  44. <profile>
  45. <id>channel1</id>
  46. <properties>
  47. <test.channel>channel1</test.channel>
  48. </properties>
  49. </profile>
  50. <profile>
  51. <id>channel2</id>
  52. <properties>
  53. <test.channel>channel2</test.channel>
  54. </properties>
  55. </profile>
  56. </profiles>
  57. <!-- <repositories>
  58. <repository>
  59. <id>central</id>
  60. <url>https://repo1.maven.org/maven2</url>
  61. </repository>
  62. <repository>
  63. <id>yaoyi</id>
  64. <url>https://artifact.yaoyi.net/repository/maven-public</url>
  65. </repository>
  66. </repositories>
  67. -->
  68. <build>
  69. <plugins>
  70. <plugin>
  71. <groupId>org.apache.maven.plugins</groupId>
  72. <artifactId>maven-checkstyle-plugin</artifactId>
  73. <version>3.6.0</version>
  74. <dependencies>
  75. <dependency>
  76. <groupId>com.puppycrawl.tools</groupId>
  77. <artifactId>checkstyle</artifactId>
  78. <version>9.3</version>
  79. </dependency>
  80. </dependencies>
  81. <configuration>
  82. <outputEncoding>UTF-8</outputEncoding>
  83. <skip>${checkstyle.skip}</skip>
  84. <configLocation>.style/alibaba.xml</configLocation>
  85. <consoleOutput>true</consoleOutput>
  86. <failsOnError>false</failsOnError>
  87. <linkXRef>false</linkXRef>
  88. <includeTestSourceDirectory>false</includeTestSourceDirectory>
  89. <sourceDirectories>${project.build.sourceDirectory}</sourceDirectories>
  90. </configuration>
  91. <executions>
  92. <execution>
  93. <id>validate</id>
  94. <phase>validate</phase>
  95. <goals>
  96. <goal>check</goal>
  97. </goals>
  98. </execution>
  99. </executions>
  100. </plugin>
  101. <!--代码格式插件,默认使用spring 规则-->
  102. <plugin>
  103. <groupId>io.spring.javaformat</groupId>
  104. <artifactId>spring-javaformat-maven-plugin</artifactId>
  105. <version>${spring.checkstyle.version}</version>
  106. <!-- <executions>
  107. <execution>
  108. <id>format</id>
  109. <phase>process-sources</phase>
  110. <goals>
  111. <goal>apply</goal>
  112. </goals>
  113. </execution>
  114. </executions> -->
  115. </plugin>
  116. </plugins>
  117. </build>
  118. </project>