pom.xml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://maven.apache.org/POM/4.0.0"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>org.springframework.cloud</groupId>
  8. <artifactId>spring-cloud-build</artifactId>
  9. <version>3.1.0</version>
  10. <relativePath/><!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>io.awspring.cloud</groupId>
  13. <artifactId>spring-cloud-aws</artifactId>
  14. <version>3.0.0-SNAPSHOT</version>
  15. <packaging>pom</packaging>
  16. <name>Spring Cloud AWS</name>
  17. <scm>
  18. <url>https://github.com/awspring/spring-cloud-aws</url>
  19. <connection>scm:git:git://github.com/awspring/spring-cloud-aws.git
  20. </connection>
  21. <developerConnection>
  22. scm:git:ssh://git@github.com/awspring/spring-cloud-aws.git
  23. </developerConnection>
  24. <tag>HEAD</tag>
  25. </scm>
  26. <properties>
  27. <tomcat.version>8.0.33</tomcat.version>
  28. <javax-mail.version>1.5.5</javax-mail.version>
  29. <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
  30. <javax.activation.version>1.2.0</javax.activation.version>
  31. <spring-cloud-commons.version>3.1.0</spring-cloud-commons.version>
  32. <testcontainers.version>1.17.1</testcontainers.version>
  33. <spotless.version>2.22.0</spotless.version>
  34. </properties>
  35. <modules>
  36. <module>spring-cloud-aws-core</module>
  37. <module>spring-cloud-aws-autoconfigure</module>
  38. <module>spring-cloud-aws-dependencies</module>
  39. <module>spring-cloud-aws-parameter-store</module>
  40. <module>spring-cloud-aws-secrets-manager</module>
  41. <module>spring-cloud-aws-ses</module>
  42. <module>spring-cloud-aws-sns</module>
  43. <module>spring-cloud-aws-s3-parent</module>
  44. <module>spring-cloud-aws-starters</module>
  45. <module>spring-cloud-aws-samples</module>
  46. <module>docs</module>
  47. <module>spring-cloud-aws-messaging-support</module>
  48. <module>spring-cloud-aws-sqs</module>
  49. <!--
  50. these modules need to be rewritten
  51. <module>spring-cloud-aws-jdbc</module>
  52. <module>spring-cloud-aws-messaging</module>
  53. <module>spring-cloud-aws-test</module>
  54. -->
  55. </modules>
  56. <dependencyManagement>
  57. <dependencies>
  58. <dependency>
  59. <groupId>io.awspring.cloud</groupId>
  60. <artifactId>spring-cloud-aws-dependencies</artifactId>
  61. <version>${project.version}</version>
  62. <type>pom</type>
  63. <scope>import</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework.cloud</groupId>
  67. <artifactId>spring-cloud-commons-dependencies</artifactId>
  68. <version>${spring-cloud-commons.version}</version>
  69. <type>pom</type>
  70. <scope>import</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.testcontainers</groupId>
  74. <artifactId>testcontainers-bom</artifactId>
  75. <version>${testcontainers.version}</version>
  76. <type>pom</type>
  77. <scope>import</scope>
  78. </dependency>
  79. </dependencies>
  80. </dependencyManagement>
  81. <dependencies>
  82. <dependency>
  83. <groupId>org.slf4j</groupId>
  84. <artifactId>slf4j-api</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.springframework.boot</groupId>
  88. <artifactId>spring-boot-starter-test</artifactId>
  89. <scope>test</scope>
  90. <exclusions>
  91. <exclusion>
  92. <groupId>org.junit.vintage</groupId>
  93. <artifactId>junit-vintage-engine</artifactId>
  94. </exclusion>
  95. <exclusion>
  96. <groupId>junit</groupId>
  97. <artifactId>junit</artifactId>
  98. </exclusion>
  99. </exclusions>
  100. </dependency>
  101. </dependencies>
  102. <build>
  103. <pluginManagement>
  104. <plugins>
  105. <plugin>
  106. <artifactId>maven-compiler-plugin</artifactId>
  107. <configuration>
  108. <compilerArgs>
  109. <!-- Enable all warnings -->
  110. <compilerArg>-Xlint:all</compilerArg>
  111. <!-- Disable options warning because we will have differences between the compiler and source code level-->
  112. <compilerArg>-Xlint:-options</compilerArg>
  113. <!-- Disable serialversionuid warnings -->
  114. <compilerArg>-Xlint:-serial</compilerArg>
  115. <!--compilerArg>-Werror</compilerArg-->
  116. </compilerArgs>
  117. </configuration>
  118. </plugin>
  119. <plugin>
  120. <groupId>org.apache.maven.plugins</groupId>
  121. <artifactId>maven-surefire-plugin</artifactId>
  122. <configuration>
  123. <argLine>-Xms512m -Xmx512m</argLine>
  124. </configuration>
  125. </plugin>
  126. <plugin>
  127. <groupId>com.diffplug.spotless</groupId>
  128. <artifactId>spotless-maven-plugin</artifactId>
  129. <version>${spotless.version}</version>
  130. <configuration>
  131. <java>
  132. <importOrder />
  133. <eclipse>
  134. <file>${maven.multiModuleProjectDirectory}/eclipse-code-formatter.xml</file>
  135. </eclipse>
  136. <removeUnusedImports/>
  137. <licenseHeader>
  138. <file>${maven.multiModuleProjectDirectory}/license-header.txt</file>
  139. </licenseHeader>
  140. </java>
  141. </configuration>
  142. </plugin>
  143. </plugins>
  144. </pluginManagement>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.apache.maven.plugins</groupId>
  148. <artifactId>maven-javadoc-plugin</artifactId>
  149. <configuration>
  150. <skip>true</skip>
  151. <links>
  152. <link>https://docs.oracle.com/javase/8/docs/api/</link>
  153. <link>https://javaee.github.io/javaee-spec/javadocs/</link>
  154. <link>https://fasterxml.github.io/jackson-core/javadoc/2.8/</link>
  155. <link>https://docs.spring.io/spring/docs/5.3.x/javadoc-api/</link>
  156. </links>
  157. <author>true</author>
  158. <header>${project.name}</header>
  159. <reportOutputDirectory>${project.build.directory}/site/${project.version}/apidocs</reportOutputDirectory>
  160. </configuration>
  161. </plugin>
  162. <plugin>
  163. <groupId>com.diffplug.spotless</groupId>
  164. <artifactId>spotless-maven-plugin</artifactId>
  165. <executions>
  166. <execution>
  167. <phase>validate</phase>
  168. <configuration>
  169. <skip>${disable.checks}</skip>
  170. </configuration>
  171. <goals>
  172. <goal>apply</goal>
  173. <goal>check</goal>
  174. </goals>
  175. </execution>
  176. </executions>
  177. </plugin>
  178. </plugins>
  179. </build>
  180. <profiles>
  181. <profile>
  182. <id>spring</id>
  183. <repositories>
  184. <repository>
  185. <id>spring-snapshots</id>
  186. <name>Spring Snapshots</name>
  187. <url>https://repo.spring.io/libs-snapshot-local</url>
  188. <snapshots>
  189. <enabled>true</enabled>
  190. </snapshots>
  191. <releases>
  192. <enabled>false</enabled>
  193. </releases>
  194. </repository>
  195. <repository>
  196. <id>spring-milestones</id>
  197. <name>Spring Milestones</name>
  198. <url>https://repo.spring.io/libs-milestone-local</url>
  199. <snapshots>
  200. <enabled>false</enabled>
  201. </snapshots>
  202. </repository>
  203. <repository>
  204. <id>spring-releases</id>
  205. <name>Spring Releases</name>
  206. <url>https://repo.spring.io/release</url>
  207. <snapshots>
  208. <enabled>false</enabled>
  209. </snapshots>
  210. </repository>
  211. </repositories>
  212. <pluginRepositories>
  213. <pluginRepository>
  214. <id>spring-snapshots</id>
  215. <name>Spring Snapshots</name>
  216. <url>https://repo.spring.io/libs-snapshot-local</url>
  217. <snapshots>
  218. <enabled>true</enabled>
  219. </snapshots>
  220. <releases>
  221. <enabled>false</enabled>
  222. </releases>
  223. </pluginRepository>
  224. <pluginRepository>
  225. <id>spring-milestones</id>
  226. <name>Spring Milestones</name>
  227. <url>https://repo.spring.io/libs-milestone-local</url>
  228. <snapshots>
  229. <enabled>false</enabled>
  230. </snapshots>
  231. </pluginRepository>
  232. <pluginRepository>
  233. <id>spring-releases</id>
  234. <name>Spring Releases</name>
  235. <url>https://repo.spring.io/libs-release-local</url>
  236. <snapshots>
  237. <enabled>false</enabled>
  238. </snapshots>
  239. </pluginRepository>
  240. </pluginRepositories>
  241. </profile>
  242. <profile>
  243. <id>java11+</id>
  244. <activation>
  245. <jdk>[11,)</jdk>
  246. </activation>
  247. <dependencies>
  248. <dependency>
  249. <groupId>javax.activation</groupId>
  250. <artifactId>javax.activation-api</artifactId>
  251. </dependency>
  252. </dependencies>
  253. </profile>
  254. <profile>
  255. <id>release</id>
  256. <build>
  257. <plugins>
  258. <plugin>
  259. <groupId>org.apache.maven.plugins</groupId>
  260. <artifactId>maven-gpg-plugin</artifactId>
  261. <version>${maven-gpg-plugin.version}</version>
  262. <configuration>
  263. <!-- Prevent gpg from using pinentry programs -->
  264. <gpgArguments>
  265. <arg>--pinentry-mode</arg>
  266. <arg>loopback</arg>
  267. </gpgArguments>
  268. </configuration>
  269. <executions>
  270. <execution>
  271. <id>sign-artifacts</id>
  272. <phase>verify</phase>
  273. <goals>
  274. <goal>sign</goal>
  275. </goals>
  276. </execution>
  277. </executions>
  278. </plugin>
  279. </plugins>
  280. </build>
  281. </profile>
  282. <profile>
  283. <id>docs</id>
  284. <build>
  285. <plugins>
  286. <plugin>
  287. <groupId>org.apache.maven.plugins</groupId>
  288. <artifactId>maven-javadoc-plugin</artifactId>
  289. <configuration>
  290. <skip>false</skip>
  291. </configuration>
  292. </plugin>
  293. </plugins>
  294. </build>
  295. </profile>
  296. </profiles>
  297. <distributionManagement>
  298. <repository>
  299. <id>ossrh-awspring</id>
  300. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  301. </repository>
  302. </distributionManagement>
  303. <licenses>
  304. <license>
  305. <name>Apache License, Version 2.0</name>
  306. <url>https://www.apache.org/licenses/LICENSE-2.0</url>
  307. <comments>
  308. Copyright 2013-$YEAR the original author or authors.
  309. Licensed under the Apache License, Version 2.0 (the "License");
  310. you may not use this file except in compliance with the License.
  311. You may obtain a copy of the License at
  312. https://www.apache.org/licenses/LICENSE-2.0
  313. Unless required by applicable law or agreed to in writing, software
  314. distributed under the License is distributed on an "AS IS" BASIS,
  315. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  316. See the License for the specific language governing permissions and
  317. limitations under the License.
  318. </comments>
  319. </license>
  320. </licenses>
  321. </project>