pom.xml 10.0 KB

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