Skip to content

Commit

Permalink
Introduce maven.config to unify/simplify the build arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell committed Sep 28, 2022
1 parent 0b87742 commit 44e2f05
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: Generated Meta data
run: mvn generate-sources -f m2e-maven-runtime -Pgenerate-osgi-metadata -Dtycho.mode=maven
run: mvn generate-sources -B -f m2e-maven-runtime -Pgenerate-osgi-metadata -Dtycho.mode=maven
- name: Build m2e-core
uses: GabrielBB/xvfb-action@v1
with:
run: mvn clean verify -B -Pits -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -Dtycho.surefire.timeout=7200
run: mvn clean verify -B -Pits -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true
- name: Upload Test Results
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<extension>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-pomless</artifactId>
<version>2.7.5</version>
<version>${tycho-version}</version>
</extension>
</extensions>
2 changes: 2 additions & 0 deletions .mvn/maven.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--fail-at-end
-Dtycho-version=2.7.5
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ pipeline {
}
stage('Build') {
steps {
sh 'mvn clean generate-sources -f m2e-maven-runtime/pom.xml -B -Dtycho.mode=maven -Pgenerate-osgi-metadata'
sh 'mvn clean generate-sources -B -f m2e-maven-runtime/pom.xml -B -Dtycho.mode=maven -Pgenerate-osgi-metadata'
wrap([$class: 'Xvnc', useXauthority: true]) {
sh 'mvn clean verify -f pom.xml -B -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -Peclipse-sign,its -Dtycho.surefire.timeout=7200 -Dtycho.debug.artifactcomparator=true'
sh 'mvn clean verify -B -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -Peclipse-sign,its -Dtycho.debug.artifactcomparator=true'
}
}
post {
Expand Down
4 changes: 1 addition & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<tycho-version>2.7.5</tycho-version>

<tycho.testArgLine>-Xmx800m</tycho.testArgLine>
<tycho.surefire.timeout>7200</tycho.surefire.timeout>
<tycho.surefire.timeout>900</tycho.surefire.timeout>
<tycho.surefire.useUIHarness>true</tycho.surefire.useUIHarness>
<tycho.surefire.useUIThread>true</tycho.surefire.useUIThread>
<jacoco.destFile>../target/jacoco.exec</jacoco.destFile>
Expand Down
2 changes: 1 addition & 1 deletion setup/m2e.setup
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
xsi:type="jdt:JRETask"
version="JavaSE-17"
location="${jre.location-17}"
name="JRE for JavaSE-11">
name="JRE for JavaSE-17">
<description>Define the JRE needed to compile and run the Java projects of ${scope.project.label}</description>
</setupTask>
<setupTask
Expand Down
2 changes: 1 addition & 1 deletion setup/tychoSnapshotSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- This Maven-settings file allows to test Tycho snapshots without the need to install them into the local Maven repository
and thus makes it possible to test snapshots of Tycho's extension in the CI.
To use it, add the following arguments to the Maven command: -s setup/tychoSnapshotSettings.xml -U -->
To use it, add the following line of arguments to the '.mvn/maven.config' file: -s setup/tychoSnapshotSettings.xml -U -->
<profiles>
<profile>
<id>tycho-snapshots</id>
Expand Down

0 comments on commit 44e2f05

Please sign in to comment.