From 7932ebdccdd270c51b0cc29e86f453a216d267f2 Mon Sep 17 00:00:00 2001
From: Vanshika Singh <82269055+van-123-egg@users.noreply.github.com>
Date: Fri, 23 Jan 2026 21:11:12 +0530
Subject: [PATCH 1/4] added_sonar to pom xml
---
app/pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/app/pom.xml b/app/pom.xml
index e40aef0d1..28cc716a9 100644
--- a/app/pom.xml
+++ b/app/pom.xml
@@ -33,6 +33,7 @@ limitations under the License.
war
+ van-123-egg
4.0.1
2.2
1.2.0
From 0ceacb9fee15fcd6820946e4938341074eb85df4 Mon Sep 17 00:00:00 2001
From: Vanshika Singh <82269055+van-123-egg@users.noreply.github.com>
Date: Fri, 23 Jan 2026 21:20:13 +0530
Subject: [PATCH 2/4] Add SonarQube CI workflow for build and analysis
---
.github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 .github/workflows/build.yml
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 000000000..9fd1ab48d
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,36 @@
+name: SonarQube
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ types: [opened, synchronize, reopened]
+jobs:
+ build:
+ name: Build and analyze
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
+ - name: Set up JDK 17
+ uses: actions/setup-java@v4
+ with:
+ java-version: 17
+ distribution: 'zulu' # Alternative distribution options are available.
+ - name: Cache SonarQube packages
+ uses: actions/cache@v4
+ with:
+ path: ~/.sonar/cache
+ key: ${{ runner.os }}-sonar
+ restore-keys: ${{ runner.os }}-sonar
+ - name: Cache Maven packages
+ uses: actions/cache@v4
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+ - name: Build and analyze
+ env:
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
+ run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=van-123-egg_apache_roller
From dd94a24b99a3d90debd019fab90803e03d4c993e Mon Sep 17 00:00:00 2001
From: Vanshika Singh <82269055+van-123-egg@users.noreply.github.com>
Date: Fri, 23 Jan 2026 21:23:18 +0530
Subject: [PATCH 3/4] Add Sonar organization property to pom.xml
---
pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/pom.xml b/pom.xml
index 56f6a110f..1e33a188a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -40,6 +40,7 @@ limitations under the License.
+ van-123-egg
10.11.1.1
1.4.7
2.3.1
From b478df7ab536f5226717265f5c66ab271ab92c8e Mon Sep 17 00:00:00 2001
From: Vanshika Singh <82269055+van-123-egg@users.noreply.github.com>
Date: Fri, 23 Jan 2026 21:23:59 +0530
Subject: [PATCH 4/4] Remove sonar.organization property
Removed sonar.organization property from pom.xml
---
app/pom.xml | 1 -
1 file changed, 1 deletion(-)
diff --git a/app/pom.xml b/app/pom.xml
index 28cc716a9..e40aef0d1 100644
--- a/app/pom.xml
+++ b/app/pom.xml
@@ -33,7 +33,6 @@ limitations under the License.
war
- van-123-egg
4.0.1
2.2
1.2.0