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 98dcd2f commit b0e7e01
Show file tree
Hide file tree
Showing 2 changed files with 14 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 package spring-boot:repackage -DskipTests
RUN mvn package -DskipTests

ENTRYPOINT ["java", "-jar", "/app/target/codekatabattle-1.0.0.jar.original"]
EXPOSE 8000
13 changes: 13 additions & 0 deletions IT/codekatabattle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,19 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit b0e7e01

Please sign in to comment.