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 b0e7e01 commit 1683e42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 26 deletions.
1 change: 1 addition & 0 deletions IT/codekatabattle/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
!target/codekatabattle-1.0.0.jar

### STS ###
.apt_generated
Expand Down
4 changes: 2 additions & 2 deletions 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 -DskipTests
RUN mvn install -DskipTests

ENTRYPOINT ["java", "-jar", "/app/target/codekatabattle-1.0.0.jar.original"]
ENTRYPOINT ["java", "-jar", "/app/target/codekatabattle-1.0.0.jar"]
EXPOSE 8000
24 changes: 0 additions & 24 deletions IT/codekatabattle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,30 +120,6 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>it.polimi.codekatabattle.CodeKataBattleApplication</mainClass>
<layout>JAR</layout>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</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 1683e42

Please sign in to comment.