From 3eb63f2628b35ef80307bfc2e8d9c2d04272134e Mon Sep 17 00:00:00 2001
From: albertecos <144015396+albertecos@users.noreply.github.com>
Date: Tue, 16 Sep 2025 14:35:47 +0200
Subject: [PATCH 1/6] Create maven.yml
---
.github/workflows/maven.yml | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 .github/workflows/maven.yml
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 000000000..06b6aa027
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,35 @@
+# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
+# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
+
+# This workflow uses actions that are not certified by GitHub.
+# They are provided by a third-party and are governed by
+# separate terms of service, privacy policy, and support
+# documentation.
+
+name: Java CI with Maven
+
+on:
+ push:
+ branches: [ "main" ]
+ pull_request:
+ branches: [ "main" ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up JDK 17
+ uses: actions/setup-java@v4
+ with:
+ java-version: '17'
+ distribution: 'temurin'
+ cache: maven
+ - name: Build with Maven
+ run: mvn -B package --file pom.xml
+
+ # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
+ - name: Update dependency graph
+ uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
From 58458b1206a7b74cea0986c800aa82a8c8edc599 Mon Sep 17 00:00:00 2001
From: albertecos <144015396+albertecos@users.noreply.github.com>
Date: Tue, 16 Sep 2025 14:39:36 +0200
Subject: [PATCH 2/6] Update maven.yml
---
.github/workflows/maven.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 06b6aa027..1f51627e4 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -21,10 +21,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- - name: Set up JDK 17
+ - name: Set up JDK 23
uses: actions/setup-java@v4
with:
- java-version: '17'
+ java-version: '23'
distribution: 'temurin'
cache: maven
- name: Build with Maven
From b6a6c61ba8c217f955387588365d693ccc7eeced Mon Sep 17 00:00:00 2001
From: albertecos <144015396+albertecos@users.noreply.github.com>
Date: Tue, 16 Sep 2025 14:41:51 +0200
Subject: [PATCH 3/6] Update maven.yml
---
.github/workflows/maven.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 1f51627e4..45dfee13c 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -31,5 +31,5 @@ jobs:
run: mvn -B package --file pom.xml
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- - name: Update dependency graph
- uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
+ #- name: Update dependency graph
+ # uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
From bd47e663633a7aebfc4d3767052530cf95c9b8b3 Mon Sep 17 00:00:00 2001
From: Anya Ayob Mohamad <144019733+anya-ayob@users.noreply.github.com>
Date: Tue, 16 Sep 2025 14:50:24 +0200
Subject: [PATCH 4/6] Create .maven-settings.xml
Subtask 4 of [CILab] - Impact Continues Integration Lab
---
.maven-settings.xml | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 .maven-settings.xml
diff --git a/.maven-settings.xml b/.maven-settings.xml
new file mode 100644
index 000000000..b8d962409
--- /dev/null
+++ b/.maven-settings.xml
@@ -0,0 +1,36 @@
+
+
+
+ github
+
+
+
+
+ github
+
+
+ central
+ https://repo.maven.apache.org/maven2
+
+
+ github
+ https://maven.pkg.github.com/OWNER/REPOSITORY
+
+ true
+
+
+
+
+
+
+
+
+ github
+ USERNAME
+ TOKEN
+
+
+
From 25c98b77daa8dc190a417b90db5a128ce21fcac4 Mon Sep 17 00:00:00 2001
From: Anya Ayob Mohamad <144019733+anya-ayob@users.noreply.github.com>
Date: Tue, 16 Sep 2025 14:55:44 +0200
Subject: [PATCH 5/6] Update .maven-settings.xml
---
.maven-settings.xml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/.maven-settings.xml b/.maven-settings.xml
index b8d962409..0809eded1 100644
--- a/.maven-settings.xml
+++ b/.maven-settings.xml
@@ -17,7 +17,7 @@
github
- https://maven.pkg.github.com/OWNER/REPOSITORY
+ https://maven.pkg.github.com/Lalor19/JHotDraw
true
@@ -29,8 +29,8 @@
github
- USERNAME
- TOKEN
+ YOUR_GITHUB_USERNAME
+ YOUR_PERSONAL_ACCESS_TOKEN
From 5d7bf97883b3386339b5065bad2ca9a30f84e5aa Mon Sep 17 00:00:00 2001
From: albertecos <144015396+albertecos@users.noreply.github.com>
Date: Tue, 16 Sep 2025 15:38:25 +0200
Subject: [PATCH 6/6] update
---
.maven-settings.xml | 4 ++--
pom.xml | 7 +++++++
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/.maven-settings.xml b/.maven-settings.xml
index 0809eded1..42f63083f 100644
--- a/.maven-settings.xml
+++ b/.maven-settings.xml
@@ -29,8 +29,8 @@
github
- YOUR_GITHUB_USERNAME
- YOUR_PERSONAL_ACCESS_TOKEN
+ ${env.GITHUB_USERNAME}
+ ${env.GITHUB_TOKEN}
diff --git a/pom.xml b/pom.xml
index 5f6c7eef5..e6b509272 100644
--- a/pom.xml
+++ b/pom.xml
@@ -8,6 +8,13 @@
JHotDraw
+
+
+ github
+ GitHub Lalor19 Apache Maven Packages
+ https://maven.pkg.github.com/Lalor19/JHotDraw
+
+
github