diff --git a/.dockerenv b/.dockerenv
new file mode 100755
index 000000000..e69de29bb
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..ec4dbe380
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,25 @@
+# Stage 1: Build Stage
+FROM maven:3.9.4-eclipse-temurin-17 AS build
+
+# Set the working directory inside the build stage
+WORKDIR /app
+
+# Copy the Maven project files to the build stage
+COPY pom.xml .
+COPY src ./src
+
+# Build the project and create the jar
+RUN mvn clean package -DskipTests
+
+# Stage 2: Runtime Stage
+FROM openjdk:17-alpine
+
+# Set the working directory inside the runtime stage
+WORKDIR /app
+
+# Copy the built jar from the build stage
+COPY --from=build /app/target/spring-petclinic-4.0.2-SNAPSHOT.jar /app/
+
+# Command to run the application
+CMD ["java", "-jar", "spring-petclinic-4.0.2-SNAPSHOT.jar"]
+
diff --git a/docker-compose.yml b/docker-compose.yml
index 47579bbaf..4103b6af4 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,4 +1,8 @@
services:
+ app:
+ build: .
+ ports:
+ - "8080:8080"
mysql:
image: mysql:9.1
ports:
diff --git a/pom.xml b/pom.xml
index 0ca985c12..e98113db6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,11 +9,23 @@
+
+
+
+
+ nexus-snapshots
+ http://localhost:8081/repository/maven-snapshots/
+
+
+ nexus-releases
+ http://localhost:8081/repository/maven-releases/
+
+
- scm:git:git@github.com:Piasecki-grid/maven-project.git
+ scm:git:git@github.com:Piasecki-grid/maven-project.git
scm:git:git@github.com:Piasecki-grid/maven-project.git
https://github.com/Piasecki-grid/maven-project
- HEAD
+
org.springframework.samples
spring-petclinic
@@ -48,6 +60,12 @@
+
+ org.sonatype.nexus.maven
+ nexus-common
+ 1.6.13
+
+
org.springframework.boot
spring-boot-starter-actuator
@@ -158,6 +176,11 @@
jakarta.xml.bind-api
+
+ org.apache.maven.scm
+ maven-scm-provider-gitexe
+ 2.0.1
+
@@ -317,6 +340,11 @@
+
+ maven-group
+ http://localhost:8081/repository/maven-central/
+
+
true
diff --git a/pom.xml.releaseBackup b/pom.xml.releaseBackup
index 8a856f5ec..44ffc047a 100644
--- a/pom.xml.releaseBackup
+++ b/pom.xml.releaseBackup
@@ -6,17 +6,18 @@
org.springframework.boot
spring-boot-starter-parent
3.4.0
-
+
scm:git:git@github.com:Piasecki-grid/maven-project.git
scm:git:git@github.com:Piasecki-grid/maven-project.git
https://github.com/Piasecki-grid/maven-project
+ HEAD
org.springframework.samples
spring-petclinic
- 3.4.0-SNAPSHOT
+ 4.0.1-SNAPSHOT
petclinic
@@ -28,7 +29,7 @@
UTF-8
- 2024-11-28T14:37:52Z
+ 2025-01-04T17:55:21Z
1.0.1
@@ -165,9 +166,14 @@
org.apache.maven.plugins
maven-release-plugin
3.0.1
-
- github
-
+
+
+
+ prepare
+ perform
+
+
+
@@ -428,7 +434,7 @@
-
+
@@ -441,7 +447,7 @@
-
+
@@ -454,7 +460,7 @@
-
+
diff --git a/release.properties b/release.properties
index 952a21bbc..f4f18b28a 100644
--- a/release.properties
+++ b/release.properties
@@ -1,10 +1,12 @@
#release configuration
-#Sat Jan 04 19:33:45 CET 2025
-completedPhase=check-poms
+#Sat Jan 04 19:35:46 CET 2025
+completedPhase=end-release
exec.pomFileName=pom.xml
exec.snapshotReleasePluginAllowed=false
pinExternals=false
preparationGoals=clean verify
+project.dev.org.springframework.samples\:spring-petclinic=4.0.2-SNAPSHOT
+project.rel.org.springframework.samples\:spring-petclinic=4.0.1
project.scm.org.springframework.samples\:spring-petclinic.connection=scm\:git\:git@github.com\:Piasecki-grid/maven-project.git
project.scm.org.springframework.samples\:spring-petclinic.developerConnection=scm\:git\:git@github.com\:Piasecki-grid/maven-project.git
project.scm.org.springframework.samples\:spring-petclinic.tag=HEAD
@@ -19,5 +21,6 @@ scm.commentPrefix=[maven-release-plugin]
scm.developmentCommitComment=@{prefix} prepare for next development iteration
scm.releaseCommitComment=@{prefix} prepare release @{releaseLabel}
scm.rollbackCommitComment=@{prefix} rollback the release of @{releaseLabel}
+scm.tag=spring-petclinic-4.0.1
scm.tagNameFormat=@{project.artifactId}-@{project.version}
scm.url=scm\:git\:git@github.com\:Piasecki-grid/maven-project.git