pom.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  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.0.5</version>
  25. <relativePath/><!-- lookup parent from repository -->
  26. </parent>
  27. <groupId>io.awspring.cloud</groupId>
  28. <artifactId>spring-cloud-aws</artifactId>
  29. <version>2.3.6-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.0.4</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. </modules>
  70. <dependencyManagement>
  71. <dependencies>
  72. <dependency>
  73. <groupId>io.awspring.cloud</groupId>
  74. <artifactId>spring-cloud-aws-dependencies</artifactId>
  75. <version>${project.version}</version>
  76. <type>pom</type>
  77. <scope>import</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.springframework.cloud</groupId>
  81. <artifactId>spring-cloud-commons-dependencies</artifactId>
  82. <version>${spring-cloud-commons.version}</version>
  83. <type>pom</type>
  84. <scope>import</scope>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.tomcat.extras</groupId>
  88. <artifactId>tomcat-extras-juli-adapters</artifactId>
  89. <version>${tomcat.version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>javax.mail</groupId>
  93. <artifactId>javax.mail-api</artifactId>
  94. <version>${javax-mail.version}</version>
  95. <exclusions>
  96. <exclusion>
  97. <groupId>javax.activation</groupId>
  98. <artifactId>activation</artifactId>
  99. </exclusion>
  100. </exclusions>
  101. </dependency>
  102. </dependencies>
  103. </dependencyManagement>
  104. <dependencies>
  105. <dependency>
  106. <groupId>org.slf4j</groupId>
  107. <artifactId>slf4j-api</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-starter-test</artifactId>
  112. <scope>test</scope>
  113. <exclusions>
  114. <exclusion>
  115. <groupId>org.junit.vintage</groupId>
  116. <artifactId>junit-vintage-engine</artifactId>
  117. </exclusion>
  118. <exclusion>
  119. <groupId>junit</groupId>
  120. <artifactId>junit</artifactId>
  121. </exclusion>
  122. </exclusions>
  123. </dependency>
  124. </dependencies>
  125. <build>
  126. <pluginManagement>
  127. <plugins>
  128. <plugin>
  129. <artifactId>maven-compiler-plugin</artifactId>
  130. <configuration>
  131. <compilerArgs>
  132. <!-- Enable all warnings -->
  133. <compilerArg>-Xlint:all</compilerArg>
  134. <!-- Disable options warning because we will have differences between the compiler and source code level-->
  135. <compilerArg>-Xlint:-options</compilerArg>
  136. <!-- Disable serialversionuid warnings -->
  137. <compilerArg>-Xlint:-serial</compilerArg>
  138. <!--compilerArg>-Werror</compilerArg-->
  139. </compilerArgs>
  140. </configuration>
  141. </plugin>
  142. <plugin>
  143. <groupId>org.apache.maven.plugins</groupId>
  144. <artifactId>maven-surefire-plugin</artifactId>
  145. <configuration>
  146. <argLine>-Xms512m -Xmx512m</argLine>
  147. <excludedGroups>aws-integration-test</excludedGroups>
  148. </configuration>
  149. </plugin>
  150. </plugins>
  151. </pluginManagement>
  152. <plugins>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-checkstyle-plugin</artifactId>
  156. </plugin>
  157. <plugin>
  158. <groupId>io.spring.javaformat</groupId>
  159. <artifactId>spring-javaformat-maven-plugin</artifactId>
  160. <executions>
  161. <execution>
  162. <phase>validate</phase>
  163. <inherited>true</inherited>
  164. <goals>
  165. <goal>validate</goal>
  166. </goals>
  167. </execution>
  168. </executions>
  169. </plugin>
  170. <plugin>
  171. <groupId>org.apache.maven.plugins</groupId>
  172. <artifactId>maven-javadoc-plugin</artifactId>
  173. <version>3.2.0</version>
  174. <configuration>
  175. <links>
  176. <link>https://docs.oracle.com/javase/8/docs/api/</link>
  177. <link>https://javaee.github.io/javaee-spec/javadocs/</link>
  178. <link>https://fasterxml.github.io/jackson-core/javadoc/2.8/</link>
  179. <link>https://docs.spring.io/spring/docs/5.3.x/javadoc-api/</link>
  180. </links>
  181. <author>true</author>
  182. <header>${project.name}</header>
  183. <reportOutputDirectory>${project.build.directory}/site/${project.version}/apidocs</reportOutputDirectory>
  184. </configuration>
  185. </plugin>
  186. </plugins>
  187. </build>
  188. <reporting>
  189. <plugins>
  190. <plugin>
  191. <groupId>org.apache.maven.plugins</groupId>
  192. <artifactId>maven-checkstyle-plugin</artifactId>
  193. </plugin>
  194. </plugins>
  195. </reporting>
  196. <profiles>
  197. <profile>
  198. <id>spring</id>
  199. <repositories>
  200. <repository>
  201. <id>spring-snapshots</id>
  202. <name>Spring Snapshots</name>
  203. <url>https://repo.spring.io/libs-snapshot-local</url>
  204. <snapshots>
  205. <enabled>true</enabled>
  206. </snapshots>
  207. <releases>
  208. <enabled>false</enabled>
  209. </releases>
  210. </repository>
  211. <repository>
  212. <id>spring-milestones</id>
  213. <name>Spring Milestones</name>
  214. <url>https://repo.spring.io/libs-milestone-local</url>
  215. <snapshots>
  216. <enabled>false</enabled>
  217. </snapshots>
  218. </repository>
  219. <repository>
  220. <id>spring-releases</id>
  221. <name>Spring Releases</name>
  222. <url>https://repo.spring.io/release</url>
  223. <snapshots>
  224. <enabled>false</enabled>
  225. </snapshots>
  226. </repository>
  227. </repositories>
  228. <pluginRepositories>
  229. <pluginRepository>
  230. <id>spring-snapshots</id>
  231. <name>Spring Snapshots</name>
  232. <url>https://repo.spring.io/libs-snapshot-local</url>
  233. <snapshots>
  234. <enabled>true</enabled>
  235. </snapshots>
  236. <releases>
  237. <enabled>false</enabled>
  238. </releases>
  239. </pluginRepository>
  240. <pluginRepository>
  241. <id>spring-milestones</id>
  242. <name>Spring Milestones</name>
  243. <url>https://repo.spring.io/libs-milestone-local</url>
  244. <snapshots>
  245. <enabled>false</enabled>
  246. </snapshots>
  247. </pluginRepository>
  248. <pluginRepository>
  249. <id>spring-releases</id>
  250. <name>Spring Releases</name>
  251. <url>https://repo.spring.io/libs-release-local</url>
  252. <snapshots>
  253. <enabled>false</enabled>
  254. </snapshots>
  255. </pluginRepository>
  256. </pluginRepositories>
  257. </profile>
  258. <profile>
  259. <id>java11+</id>
  260. <activation>
  261. <jdk>[11,)</jdk>
  262. </activation>
  263. <dependencies>
  264. <dependency>
  265. <groupId>javax.activation</groupId>
  266. <artifactId>javax.activation-api</artifactId>
  267. </dependency>
  268. </dependencies>
  269. </profile>
  270. <profile>
  271. <id>aws-integration-tests</id>
  272. <build>
  273. <plugins>
  274. <plugin>
  275. <groupId>org.apache.maven.plugins</groupId>
  276. <artifactId>maven-failsafe-plugin</artifactId>
  277. <version>3.0.0-M5</version>
  278. <configuration combine.self="override">
  279. <groups>aws-integration-test</groups>
  280. <excludedGroups/>
  281. </configuration>
  282. </plugin>
  283. </plugins>
  284. </build>
  285. </profile>
  286. <profile>
  287. <id>release</id>
  288. <build>
  289. <plugins>
  290. <plugin>
  291. <groupId>org.apache.maven.plugins</groupId>
  292. <artifactId>maven-gpg-plugin</artifactId>
  293. <version>${maven-gpg-plugin.version}</version>
  294. <configuration>
  295. <!-- Prevent gpg from using pinentry programs -->
  296. <gpgArguments>
  297. <arg>--pinentry-mode</arg>
  298. <arg>loopback</arg>
  299. </gpgArguments>
  300. </configuration>
  301. <executions>
  302. <execution>
  303. <id>sign-artifacts</id>
  304. <phase>verify</phase>
  305. <goals>
  306. <goal>sign</goal>
  307. </goals>
  308. </execution>
  309. </executions>
  310. </plugin>
  311. </plugins>
  312. </build>
  313. </profile>
  314. </profiles>
  315. <distributionManagement>
  316. <repository>
  317. <id>ossrh-awspring</id>
  318. <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
  319. </repository>
  320. </distributionManagement>
  321. </project>