pom.xml 9.6 KB

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