Skip to content

Commit

Permalink
force args to mvn
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Sep 13, 2023
1 parent 53fbf00 commit 3f456ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,19 @@ jobs:
- name: 'cygnus-common Unit Tests (Java ${{ matrix.java-version }})'
run: |
cd "${GITHUB_WORKSPACE}"/cygnus-common
mvn -q test
mvn -q test -DargLine="-add-opens=java.base/java.util=ALL-UNNAMED"
# Build and install cygnus-common, this is necessary because it is a dependency for cygnus-ngsi and others
mvn -q clean compile exec:exec assembly:single
VERSION=$(cat pom.xml | grep version | sed -n '1p' | sed -ne '/<version>/s#\s*<[^>]*>\s*##gp' | sed 's/ //g')
mvn -q install:install-file -Dfile=target/cygnus-common-$VERSION-jar-with-dependencies.jar -DgroupId=com.telefonica.iot -DartifactId=cygnus-common -Dversion=$VERSION -Dpackaging=jar -DgeneratePom=true
- name: 'cygnus-ngsi Unit Tests (Java ${{ matrix.java-version }})'
run: |
cd "${GITHUB_WORKSPACE}"/cygnus-ngsi
mvn -q test
mvn -q test -DargLine="-add-opens=java.base/java.util=ALL-UNNAMED"
- name: 'cygnus-ngsi-ld Unit Tests (Java ${{ matrix.java-version }})'
run: |
cd "${GITHUB_WORKSPACE}"/cygnus-ngsi-ld
mvn -q test
mvn -q test -DargLine="-add-opens=java.base/java.util=ALL-UNNAMED"
# FIXME: placeholder for future cygnus-twitter tests
#- name: 'cygnus-twitter Unit Tests (Java ${{ matrix.java-version }})'
# run: |
Expand Down

0 comments on commit 3f456ce

Please sign in to comment.