Skip to content

Commit

Permalink
fix failing build
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-baiborodine committed Nov 2, 2023
1 parent 0b264dc commit 0bb3005
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 4 additions & 11 deletions campsite-booking-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

<artifactId>campsite-booking-service</artifactId>

<properties>
<start-class>com.kiroule.campsitebooking.CampsiteBookingServiceApp</start-class>
</properties>

<dependencies>
<!-- Spring Boot -->
<dependency>
Expand Down Expand Up @@ -124,17 +128,6 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.kiroule.campsitebooking.CampsiteBookingServiceApp</mainClass>
<layout>JAR</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
2 changes: 1 addition & 1 deletion container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ WORKDIR /usr/src/app

COPY .. .

RUN mvn --batch-mode package -DskipTests -DskipITs; \
RUN mvn clean package spring-boot:repackage --batch-mode -DskipTests -DskipITs; \
mv /usr/src/app/campsite-booking-service/target/campsite-booking-service-$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout).jar \
/usr/src/app/app.jar

Expand Down

0 comments on commit 0bb3005

Please sign in to comment.