Skip to content

Commit 731a3cd

Browse files
corneildiegomoreira001
authored andcommitted
BAEL-2104: Spring Boot deployment to AWS Beanstalk (eugenp#5951)
1 parent 20e8886 commit 731a3cd

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

spring-boot-bootstrap/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,27 @@
5757
</dependencies>
5858

5959
<profiles>
60+
<profile>
61+
<id>beanstalk</id>
62+
<build>
63+
<finalName>${project.name}-eb</finalName>
64+
<plugins>
65+
<plugin>
66+
<groupId>org.springframework.boot</groupId>
67+
<artifactId>spring-boot-maven-plugin</artifactId>
68+
</plugin>
69+
<plugin>
70+
<groupId>org.apache.maven.plugins</groupId>
71+
<artifactId>maven-compiler-plugin</artifactId>
72+
<configuration>
73+
<excludes>
74+
<exclude>**/cloud/config/*.java</exclude>
75+
</excludes>
76+
</configuration>
77+
</plugin>
78+
</plugins>
79+
</build>
80+
</profile>
6081
<profile>
6182
<id>openshift</id>
6283
<properties>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
spring.datasource.url=jdbc:mysql://${rds.hostname}:${rds.port}/${rds.db.name}
2+
spring.datasource.username=${rds.username}
3+
spring.datasource.password=${rds.password}

0 commit comments

Comments
 (0)