forked from cagataygurturk/lambadaframework-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpom.xml
113 lines (113 loc) · 4.67 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<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 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.lambadaframework</groupId>
<artifactId>boilerplate</artifactId>
<packaging>jar</packaging>
<version>0.0.6</version>
<properties>
<lambada.version>0.0.6-cors</lambada.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<deployment.bucket>dmh.bucket</deployment.bucket>
<deployment.package>org.lambadaframework.example</deployment.package>
<!-- Region to deploy-->
<deployment.region>us-west-1</deployment.region>
<!-- Stage to deploy -->
<deployment.stage>production</deployment.stage>
<!-- Maximum execution time for lambda -->
<deployment.maximumExecutionTime>10</deployment.maximumExecutionTime>
<!-- Maximum allowed memory usage for lambda -->
<deployment.lambdaMemorySize>1024</deployment.lambdaMemorySize>
</properties>
<dependencies>
<dependency>
<groupId>org.lambadaframework</groupId>
<artifactId>runtime</artifactId>
<version>${lambada.version}</version>
</dependency>
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-lambda-java-log4j</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.lambadaframework</groupId>
<artifactId>lambada-maven-plugin</artifactId>
<version>${lambada.version}</version>
<configuration>
<packageName>${deployment.package}</packageName>
<regionToDeploy>${deployment.region}</regionToDeploy>
<stageToDeploy>${deployment.stage}</stageToDeploy>
<lambdaMaximumExecutionTime>${deployment.maximumExecutionTime}</lambdaMaximumExecutionTime>
<lambdaMemorySize>${deployment.lambdaMemorySize}</lambdaMemorySize>
</configuration>
<dependencies>
<dependency>
<groupId>org.lambadaframework</groupId>
<artifactId>boilerplate</artifactId>
<version>0.0.6</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>prepare</goal>
<goal>deploy</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
Maven Shade plugin packages the project to a fat JAR with all required dependencies.
With minimum dependencies it should create a 5 MB jar file.
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<!-- It is important to NOT to activate minimizeJar option -->
<minimizeJar>false</minimizeJar>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.2</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.lambadaframework</groupId>
<artifactId>wagon</artifactId>
<version>${lambada.version}</version>
</extension>
</extensions>
</build>
<distributionManagement>
<repository>
<id>aws-releases</id>
<name>AWS Release Repository</name>
<url>s3://${deployment.bucket}/releases</url>
</repository>
<snapshotRepository>
<id>aws-snapshots</id>
<name>AWS Snapshot Repository</name>
<url>s3://${deployment.bucket}/snapshots</url>
</snapshotRepository>
</distributionManagement>
</project>