Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hello i created a jar file for your app #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Project/TurkishAirlines/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM openjdk:11-jre-slim

WORKDIR /app

COPY target/TurkishAirlines-1.0-SNAPSHOT.jar /app/TurkishAirlines.jar


EXPOSE 8080

ENTRYPOINT ["java", "-jar", "TurkishAirlines.jar"]
63 changes: 63 additions & 0 deletions Project/TurkishAirlines/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<!-- Project Coordinates -->
<groupId>MyBuild</groupId>
<artifactId>TurkishAirlines</artifactId>
<version>1.0-SNAPSHOT</version>


<build>
<plugins>

<plugin>
<groupId>MyBuild</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>


<plugin>
<groupId>MyBuild</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<archive>
<manifest>
<mainClass>MyBuild.App</mainClass>
</manifest>
</archive>
</configuration>
</plugin>


<plugin>
<groupId>MyBuild</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<includes>
<include>**/*Test.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>

<!-- Dependencies -->
<dependencies>
<!-- Example dependency: JUnit for testing -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Binary file not shown.
5 changes: 5 additions & 0 deletions Project/TurkishAirlines/target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Generated by Maven
#Fri Jul 19 18:46:43 IST 2024
groupId=MyBuild
artifactId=TurkishAirlines
version=1.0-SNAPSHOT