pom.xml 9.5 KB

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