83 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			83 lines
		
	
	
		
			3.3 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8"?>
 | |
| <project xmlns="http://maven.apache.org/POM/4.0.0"
 | |
|     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | |
|     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
 | |
|     <modelVersion>4.0.0</modelVersion>
 | |
|     <groupId>com.baeldung</groupId>
 | |
|     <artifactId>spring-boot-aws</artifactId>
 | |
|     <version>0.0.1-SNAPSHOT</version>
 | |
|     <name>spring-boot-aws</name>
 | |
|     <description>spring-boot-aws</description>
 | |
| 
 | |
|     <!-- "sam build" needs all the dependencies including its parent project. Hence, we cannot use parent-boot in this case -->
 | |
|     <parent>
 | |
|         <groupId>org.springframework.boot</groupId>
 | |
|         <artifactId>spring-boot-starter-parent</artifactId>
 | |
|         <version>2.7.11</version>
 | |
|         <relativePath/>
 | |
|     </parent>
 | |
| 
 | |
|     <dependencies>
 | |
|         <dependency>
 | |
|             <groupId>org.springframework.boot</groupId>
 | |
|             <artifactId>spring-boot-starter-web</artifactId>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>com.amazonaws.serverless</groupId>
 | |
|             <artifactId>aws-serverless-java-container-springboot2</artifactId>
 | |
|             <version>${aws-serverless-java-container-springboot2.version}</version>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.springframework.boot</groupId>
 | |
|             <artifactId>spring-boot-starter-validation</artifactId>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.springframework.boot</groupId>
 | |
|             <artifactId>spring-boot-starter-test</artifactId>
 | |
|         </dependency>
 | |
|     </dependencies>
 | |
| 
 | |
|     <build>
 | |
|         <plugins>
 | |
|             <plugin>
 | |
|                 <groupId>org.apache.maven.plugins</groupId>
 | |
|                 <artifactId>maven-shade-plugin</artifactId>
 | |
|                 <version>${maven-shade-plugin.version}</version>
 | |
|                 <configuration>
 | |
|                     <createDependencyReducedPom>false</createDependencyReducedPom>
 | |
|                 </configuration>
 | |
|                 <executions>
 | |
|                     <execution>
 | |
|                         <phase>package</phase>
 | |
|                         <goals>
 | |
|                             <goal>shade</goal>
 | |
|                         </goals>
 | |
|                         <configuration>
 | |
|                             <artifactSet>
 | |
|                                 <excludes>
 | |
|                                     <exclude>org.apache.tomcat.embed:*</exclude>
 | |
|                                 </excludes>
 | |
|                             </artifactSet>
 | |
|                         </configuration>
 | |
|                     </execution>
 | |
|                 </executions>
 | |
|             </plugin>
 | |
|             <plugin>
 | |
|                 <groupId>org.apache.maven.plugins</groupId>
 | |
|                 <artifactId>maven-compiler-plugin</artifactId>
 | |
|                 <configuration>
 | |
|                     <source>${maven.compiler.source.version}</source>
 | |
|                     <target>${maven.compiler.target.version}</target>
 | |
|                 </configuration>
 | |
|             </plugin>
 | |
|         </plugins>
 | |
|     </build>
 | |
| 
 | |
|     <properties>
 | |
|         <aws-serverless-java-container-springboot2.version>1.9.1</aws-serverless-java-container-springboot2.version>
 | |
|         <maven-shade-plugin.version>3.2.4</maven-shade-plugin.version>
 | |
|         <maven.compiler.source.version>11</maven.compiler.source.version>
 | |
|         <maven.compiler.target.version>11</maven.compiler.target.version>
 | |
|     </properties>
 | |
| 
 | |
| </project> |