diff --git a/.github/workflows/sonarscan.yml b/.github/workflows/sonarscan.yml
index 338743faf..e591c3966 100644
--- a/.github/workflows/sonarscan.yml
+++ b/.github/workflows/sonarscan.yml
@@ -7,29 +7,12 @@ on:
push:
branches: [ main, feature/* ]
pull_request_target:
- branches: [ main, feature/* ]
+ branches: [ main, feature/* ]
jobs:
- #test:
- #name: Test - Unit and Integration
- #runs-on: ubuntu-latest
-
- #steps:
- #- uses: actions/checkout@v4
- #- name: Set up JDK 17
- # uses: actions/setup-java@v4
- # with:
- #java-version: 17
- #distribution: 'adopt'
- #- name: Maven Package
- # run: mvn -B clean package -DskipTests
- #- name: Maven Verify
- #run: mvn -B clean verify
-
sonar:
name: Test - SonarCloud Scan
runs-on: ubuntu-latest
-
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
@@ -37,17 +20,11 @@ jobs:
with:
java-version: 17
distribution: 'adopt'
- - name: Jacoco Scan
- run: |
- export MAVEN_OPTS="-Xmx10000m"
- export NODE_OPTIONS="--max-old-space-size=4096"
- mvn clean --settings server/wfprev-api/mvn_settings/settings.xml org.jacoco:jacoco-maven-plugin:0.8.12:prepare-agent -B verify org.jacoco:jacoco-maven-plugin:0.8.12:report -Drepo.login=${{ secrets.IDIR_AS_EMAIL }} -Drepo.password=${{ secrets.IDIR_PASSWORD }}
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: SonarCloud Scan
run: |
export MAVEN_OPTS="-Xmx10000m"
export NODE_OPTIONS="--max-old-space-size=4096"
- mvn clean --settings server/wfprev-api/mvn_settings/settings.xml -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage,sonar -Dsonar.projectKey=bcgov_nr-bcws-wfprev -Dsonar.login=${{ secrets.SONAR_TOKEN }} -Drepo.login=${{ secrets.IDIR_AS_EMAIL }} -Drepo.password=${{ secrets.IDIR_PASSWORD }}
+ mvn clean --settings server/wfprev-api/mvn_settings/settings.xml -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=bcgov_nr-bcws-wfprev -Drepo.login=${{ secrets.IDIR_AS_EMAIL }} -Drepo.password=${{ secrets.IDIR_PASSWORD }}
env:
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.gitignore b/.gitignore
index c41cc9e35..0f84cc9cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
-/target
\ No newline at end of file
+/target
+/.vscode
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 8b5400e99..5f582c168 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,91 +11,32 @@
server/wfprev-api
-
+ report-aggregate-module
- 3.10.0.2594
- 0.8.11
- target/site/jacoco-aggregate/jacoco.xml
+
+ ${project.basedir}/report-aggregate/target/site/
+ jacoco-aggregate/jacoco.xml
+
-
-
-
- org.jacoco
- jacoco-maven-plugin
- ${jacoco.version}
-
-
- org.sonarsource.scanner.maven
- sonar-maven-plugin
- ${sonar.version}
-
-
-
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.9
+
+
+ prepare-agent
+
+ prepare-agent
+
+
+
+
+
-
-
- coverage
-
- true
-
-
-
-
- org.jacoco
- jacoco-maven-plugin
-
-
- prepare-agent
-
- prepare-agent
-
-
-
-
-
-
-
-
- sonar
-
- https://sonarcloud.io
- bcgov-sonarcloud
- bcgov_nr-bcws-wfprev
- ${project.groupId}:${project.artifactId}
- ${aggregate.report.dir}
-
-
- false
-
-
-
-
- maven-surefire-plugin
-
- ${argLine}
-
-
-
- org.sonarsource.scanner.maven
- sonar-maven-plugin
-
-
- sonar
- verify
-
- sonar
-
-
-
-
-
-
-
-
-
-
+
diff --git a/report-aggregate-module/.gitignore b/report-aggregate-module/.gitignore
new file mode 100644
index 000000000..c41cc9e35
--- /dev/null
+++ b/report-aggregate-module/.gitignore
@@ -0,0 +1 @@
+/target
\ No newline at end of file
diff --git a/report-aggregate-module/pom.xml b/report-aggregate-module/pom.xml
new file mode 100644
index 000000000..21dc59e19
--- /dev/null
+++ b/report-aggregate-module/pom.xml
@@ -0,0 +1,42 @@
+
+
+ 4.0.0
+
+ ca.bc.gov.nrs.wfprev
+ wfprev-parent
+ 1.0.0-SNAPSHOT
+
+ ca.bc.gov.nrs
+ generate-aggregate-report
+ 1.0.0-SNAPSHOT
+ WFPREV Aggregate Coverage Report
+ Aggregate Coverage Report
+
+
+ ca.bc.gov.nrs
+ wfprev-api
+ ${project.parent.version}
+ system
+ ${basedir}\..\server\wfprev-api\target\wfprev-api-${project.parent.version}.war
+
+
+
+
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.8.9
+
+
+ report-aggregate
+ verify
+
+ report-aggregate
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/server/wfprev-api/pom.xml b/server/wfprev-api/pom.xml
index 228062a61..677f09694 100644
--- a/server/wfprev-api/pom.xml
+++ b/server/wfprev-api/pom.xml
@@ -10,7 +10,7 @@
ca.bc.gov.nrs
- wfprev
+ wfprev-api
1.0.0-SNAPSHOT
war
wfprev-api
@@ -30,8 +30,6 @@
17
- ${basedir}/../${aggregate.report.dir}
-