pom.xml 3.7 KB

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