Skip to content

Commit

Permalink
deploy: Update POM to fix no main manifest attribute error
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanni-orciuolo committed Feb 13, 2024
1 parent 9bc41dd commit 2c51b2c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion IT/codekatabattle/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
# Build project
COPY src/ src/
COPY pom.xml .
RUN mvn clean package -DskipTests
RUN mvn package spring-boot:repackage -DskipTests

ENTRYPOINT ["java", "-jar", "/app/target/codekatabattle-1.0.0.jar.original"]
EXPOSE 8000
8 changes: 8 additions & 0 deletions IT/codekatabattle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<properties>
<java.version>17</java.version>
<testcontainers.version>1.19.3</testcontainers.version>
<start-class>it.polimi.codekatabattle.CodeKataBattleApplication</start-class>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -122,6 +123,13 @@
<mainClass>it.polimi.codekatabattle.CodeKataBattleApplication</mainClass>
<layout>JAR</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Expand Down

0 comments on commit 2c51b2c

Please sign in to comment.