diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 0e3dc4b..1fb4a17 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -1,4 +1,4 @@
-# This workflow will build a Java project with Maven
+# 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
@@ -16,10 +16,12 @@ jobs:
steps:
- uses: actions/checkout@v2
- - name: Set up JDK 1.8
- uses: actions/setup-java@v1
+ - name: Set up JDK 11
+ uses: actions/setup-java@v2
with:
- java-version: 1.8
+ java-version: '11'
+ distribution: 'adopt'
+ cache: maven
server-id: github
server-username: GITHUB_USER_REF
server-password: GITHUB_TOKEN_REF
@@ -27,4 +29,4 @@ jobs:
env:
GITHUB_USER_REF: ${{ secrets.GH_PACKAGE_REPO_USERNAME }}
GITHUB_TOKEN_REF: ${{ secrets.GH_PACKAGE_REPO_PASSWORD }}
- run: mvn clean install -s settings.xml -B package --file pom.xml -X
\ No newline at end of file
+ run: mvn -s settings.xml -B package --file pom.xml
diff --git a/pom.xml b/pom.xml
index 0828de6..c34d74d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -34,11 +34,11 @@
GitHub OWNER Apache Maven Packages
https://maven.pkg.github.com/Laffini/Java-Matching-Engine-Core
- true
-
-
- true
-
+ true
+
+
+ true
+
@@ -69,8 +69,26 @@
- org.springframework.boot
- spring-boot-maven-plugin
+ org.apache.maven.plugins
+ maven-surefire-plugin
+
+
+ org.apache.maven.plugins
+ maven-dependency-plugin
+
+
+ copy-dependencies
+ package
+
+ copy-dependencies
+
+
+ ${project.build.directory}
+ false
+ true
+
+
+