diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml
deleted file mode 100644
index 4718a6ce5..000000000
--- a/.github/workflows/maven-build.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
-
-name: Java CI with Maven
-
-on:
- push:
- branches: [ main ]
- pull_request:
- branches: [ main ]
-
-jobs:
- build:
-
- runs-on: ubuntu-latest
- strategy:
- matrix:
- java: [ '17' ]
-
- steps:
- - uses: actions/checkout@v4
- - name: Set up JDK ${{matrix.java}}
- uses: actions/setup-java@v4
- with:
- java-version: ${{matrix.java}}
- distribution: 'adopt'
- cache: maven
- - name: Build with Maven Wrapper
- run: ./mvnw -B package
diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml
new file mode 100644
index 000000000..3b9f3892b
--- /dev/null
+++ b/.github/workflows/pull-request.yaml
@@ -0,0 +1,29 @@
+name: Pull Request Build
+on:
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ build-image:
+ environment: default
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - uses: actions/setup-java@v3
+ with:
+ distribution: 'temurin' # See 'Supported distributions' for available options
+ java-version: '17'
+ - name: Build and export
+ run: |
+ #!/bin/bash
+ mvn clean install -s settings.xml -B -Dmaven.repo.local=repo
+ docker run -v `pwd`/repo:/repo -v `pwd`/target:/target quay.io/mk-ci-cd/apheleia-processor:57570450fc78697661497b1b604d1bd2253be2fa /opt/jboss/container/java/run/run-java.sh analyse --maven-repo=/repo /target/hacbs-test.jar --sbom-path /target/sbom.json --build-sbom-path /target/build-sbom.json || true
+ - uses: actions/upload-artifact@v3
+ with:
+ name: sbom.json
+ path: target/sbom.json
+ - uses: actions/upload-artifact@v3
+ with:
+ name: build-sbom.json
+ path: target/build-sbom.json
diff --git a/pom.xml b/pom.xml
index cf47f8aa6..236d5e751 100644
--- a/pom.xml
+++ b/pom.xml
@@ -176,41 +176,6 @@
-
- org.apache.maven.plugins
- maven-checkstyle-plugin
- ${maven-checkstyle.version}
-
-
- com.puppycrawl.tools
- checkstyle
- ${checkstyle.version}
-
-
- io.spring.nohttp
- nohttp-checkstyle
- ${nohttp-checkstyle.version}
-
-
-
-
- nohttp-checkstyle-validation
- validate
-
- src/checkstyle/nohttp-checkstyle.xml
- ${basedir}
- **/*
- **/.git/**/*,**/.idea/**/*,**/target/**/,**/.flattened-pom.xml,**/*.class
-
- config_loc=${basedir}/src/checkstyle/
-
-
-
- check
-
-
-
-
org.graalvm.buildtools
native-maven-plugin
@@ -220,7 +185,7 @@
spring-boot-maven-plugin
-
build-info
@@ -378,7 +343,7 @@
-
org.eclipse.m2e
@@ -436,4 +401,4 @@
-
\ No newline at end of file
+
diff --git a/settings.xml b/settings.xml
new file mode 100644
index 000000000..8e7feaea1
--- /dev/null
+++ b/settings.xml
@@ -0,0 +1,37 @@
+
+
+
+
+ maven-default-http-blocker
+ external:http:*
+ Pseudo repository to mirror external repositories initially using HTTP.
+ http://nexus3-nexus.apps.sdouglas2.clusters.stonesoupengineering.com/repository/rebuilt-downloads/
+ false
+
+
+ others
+ *
+ Pseudo repository to mirror external repositories initially using HTTP.
+ http://nexus3-nexus.apps.sdouglas2.clusters.stonesoupengineering.com/repository/rebuilt-downloads/
+ false
+
+
+
+
+ demo
+
+ true
+
+
+
+ demo-demo_repo
+ http://nexus3-nexus.apps.sdouglas2.clusters.stonesoupengineering.com/repository/rebuilt-downloads/
+
+
+
+
+
+ demo
+
+
+