From 369b34f2fced064ab4c1facfba35ac551fe91d47 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Sat, 9 Jul 2022 10:21:36 +0200 Subject: [PATCH] Move the tycho-version into the maven.config and unify build arguments Move specification of the -Dmaven.test.error/failure.ignore=true properties to the build files again, so that local builds can fail. --- .github/workflows/maven.yml | 4 ++-- .mvn/extensions.xml | 2 +- .mvn/maven.config | 7 ++++--- Jenkinsfile | 2 +- m2e-parent/pom.xml | 1 - setup/tychoSnapshotSettings.xml | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index fc908ee8a..c1b993938 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -43,12 +43,12 @@ jobs: - name: Build m2e-core uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 # v1.0.1 with: - run: mvn clean verify -Pits -Dtycho.p2.baselineMode=failCommon --batch-mode + run: mvn clean verify --batch-mode -Pits -Dtycho.p2.baselineMode=failCommon -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true - name: Upload Test Results uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 with: name: test-results-${{ matrix.os }} - if-no-files-found: error + if-no-files-found: warn path: | ${{ github.workspace }}/**/target/surefire-reports/*.xml event_file: diff --git a/.mvn/extensions.xml b/.mvn/extensions.xml index c294ebc63..ff2889110 100644 --- a/.mvn/extensions.xml +++ b/.mvn/extensions.xml @@ -3,6 +3,6 @@ org.eclipse.tycho tycho-build - 4.0.4 + ${tycho-version} diff --git a/.mvn/maven.config b/.mvn/maven.config index d3993fab4..4bb387474 100644 --- a/.mvn/maven.config +++ b/.mvn/maven.config @@ -2,6 +2,7 @@ --errors --update-snapshots --no-transfer-progress --Dmaven.test.error.ignore=true --Dmaven.test.failure.ignore=true --Dtycho.target.pomDependencies=consider \ No newline at end of file +--fail-at-end +-Dtycho.localArtifacts=ignore +-Dtycho.target.pomDependencies=consider +-Dtycho-version=4.0.4 diff --git a/Jenkinsfile b/Jenkinsfile index 01b1221d0..57a4db166 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,7 +42,7 @@ pipeline { withCredentials([string(credentialsId: 'gpg-passphrase', variable: 'KEYRING_PASSPHRASE')]) { xvnc(useXauthority: true) { sh ''' - mavenArgs="clean verify -Dtycho.p2.baselineMode=failCommon --batch-mode" + mavenArgs="clean verify --batch-mode -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -Dtycho.p2.baselineMode=failCommon" if [[ ${BRANCH_NAME} == master ]] || [[ ${BRANCH_NAME} =~ m2e-[0-9]+\\.[0-9]+\\.x ]]; then mvn ${mavenArgs} -Peclipse-sign,its -Dgpg.passphrase="${KEYRING_PASSPHRASE}" -Dgpg.keyname="011C526F29B2CE79" else diff --git a/m2e-parent/pom.xml b/m2e-parent/pom.xml index 08ef804ed..c35f0d836 100644 --- a/m2e-parent/pom.xml +++ b/m2e-parent/pom.xml @@ -23,7 +23,6 @@ UTF-8 - 4.0.4 warn scm:git:https://github.com/eclipse-m2e/m2e-core.git diff --git a/setup/tychoSnapshotSettings.xml b/setup/tychoSnapshotSettings.xml index 8e1c5bb05..12a906968 100644 --- a/setup/tychoSnapshotSettings.xml +++ b/setup/tychoSnapshotSettings.xml @@ -2,7 +2,7 @@ xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> + To use it, add the following line of arguments to the '.mvn/maven.config' file: -s setup/tychoSnapshotSettings.xml -U --> tycho-snapshots