Skip to content

Commit 05d44cb

Browse files
authored
Merge pull request #4 from Laffini/attempt-to-fix-actions
Fix build issues
2 parents d9fe63d + ce0a97e commit 05d44cb

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed

.github/workflows/maven.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This workflow will build a Java project with Maven
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
33

44
name: Java CI with Maven
@@ -16,15 +16,17 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19-
- name: Set up JDK 1.8
20-
uses: actions/setup-java@v1
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v2
2121
with:
22-
java-version: 1.8
22+
java-version: '11'
23+
distribution: 'adopt'
24+
cache: maven
2325
server-id: github
2426
server-username: GITHUB_USER_REF
2527
server-password: GITHUB_TOKEN_REF
2628
- name: Build with Maven
2729
env:
2830
GITHUB_USER_REF: ${{ secrets.GH_PACKAGE_REPO_USERNAME }}
2931
GITHUB_TOKEN_REF: ${{ secrets.GH_PACKAGE_REPO_PASSWORD }}
30-
run: mvn clean install -s settings.xml -B package --file pom.xml -X
32+
run: mvn -s settings.xml -B package --file pom.xml

pom.xml

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
<name>GitHub OWNER Apache Maven Packages</name>
3535
<url>https://maven.pkg.github.com/Laffini/Java-Matching-Engine-Core</url>
3636
<releases>
37-
<enabled>true</enabled>
38-
</releases>
39-
<snapshots>
40-
<enabled>true</enabled>
41-
</snapshots>
37+
<enabled>true</enabled>
38+
</releases>
39+
<snapshots>
40+
<enabled>true</enabled>
41+
</snapshots>
4242
</repository>
4343
</repositories>
4444

@@ -69,8 +69,26 @@
6969
<build>
7070
<plugins>
7171
<plugin>
72-
<groupId>org.springframework.boot</groupId>
73-
<artifactId>spring-boot-maven-plugin</artifactId>
72+
<groupId>org.apache.maven.plugins</groupId>
73+
<artifactId>maven-surefire-plugin</artifactId>
74+
</plugin>
75+
<plugin>
76+
<groupId>org.apache.maven.plugins</groupId>
77+
<artifactId>maven-dependency-plugin</artifactId>
78+
<executions>
79+
<execution>
80+
<id>copy-dependencies</id>
81+
<phase>package</phase>
82+
<goals>
83+
<goal>copy-dependencies</goal>
84+
</goals>
85+
<configuration>
86+
<outputDirectory>${project.build.directory}</outputDirectory>
87+
<overWriteReleases>false</overWriteReleases>
88+
<overWriteSnapshots>true</overWriteSnapshots>
89+
</configuration>
90+
</execution>
91+
</executions>
7492
</plugin>
7593
</plugins>
7694
</build>

0 commit comments

Comments
 (0)